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!
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.
EQUITYFRAME
Hopefully one day PRT will add something similar to ProOrder.
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.