System that rotates between two instruments

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #164788 quote
    FabiusMorFabiusMor
    Participant
    Junior

    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 quote
    VonasiVonasi
    Moderator
    Master

    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.

    #164793 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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)
  • 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

System that rotates between two instruments


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
FabiusMor @fabiusmor Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
5 years, 6 months ago.

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