Long short in 2 different assets

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #92885 quote
    ricoTSricoTS
    Participant
    New

    Hi,

    Is there a way to create a rule on two différent assets for an indicator

    exemple

    a = Close(EURUSD)-Close(GBPUSD)
    RETURN a AS diff

    And is there a way to use this in backtest like

    IF Indicator > x THEN
    BUY y EURUSD SHARE AT MARKET AND SELLSHORT z GBPUSD SHARE AT MARKET
    ENDIF

    I don’t find any information to pair trade.

    Thank you,

    Rico

    #92896 quote
    VonasiVonasi
    Moderator
    Master

    Simple answer: No.

    It is not possible for a strategy or indicator to know what instrument it is applied to and it is not possible to use multiple instrument information in an indicator or strategy.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Long short in 2 different assets


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ricoTS @ricots Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by VonasiVonasi
7 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/05/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...