System that rotates between two instruments

Forums ProRealTime English forum ProOrder support System that rotates between two instruments

Viewing 3 posts - 1 through 3 (of 3 total)
  • #164788

    Good morning everyone,

    I’d like to know if it’s possible to code a system that does the following thing:

    every last day of the month it calculates the ratio between instrument A and instrument B. If the ratio is above its 10 day moving average, the system invests in ETF XXX for the following month. If the ratio is below its 10 day moving average, the system invests in ETF YYY for the following month.

    Do you think it’s possible? Maybe combining 2 strategies in one system?

     

    Thank you and have a nice day!

    #164791

    No it is not possible. A strategy can only reference the instrument that it is applied to and no other instrument.

    In ProScreener it is possible for a screener code to reference different instruments using the EQUITYFRAME instruction.

    https://www.prorealcode.com/documentation/equityframe/

    Hopefully one day PRT will add something similar to ProOrder.

    #164793

    No, it’s not possible to compare different instruments within a strategy. One strategy, one instrument.

    We all hope this will be supported in a future major release, though.

     

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login