Is there a way to put system A on hold if system B is ion the market?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #190873 quote
    Lucky1
    Participant
    New

    I have strategies that are highly correlated to each other and progressively add to positions that account for more than 50% account equity.

    Therefore, there is a risk that strategy (asset/instrument) A could be in a trade at the same time as strategy B, with a chance that both strategies would require more than 50% capital at the same time.

    This would be a disaster, the only way around it in my mind is for strategy A(B) to be on hold if strategy B(A) is currently on market.

    Is there any way to perform this in PRT?

    Thanks for the help.

    #190874 quote
    robertogozzi
    Moderator
    Master

    No, each strategy is unaware of other strategies. They cannot communicate with one another.

    The solution, since you don’t want to have both of them trading at the same time, is to assemble them so to make a single strategy with multiple sub-strategies (entry points, each with different setups).

    You can read an example here https://www.prorealcode.com/topic/max-positions-per-strategy-in-multi-strategy-code/#post-171793.

    Lucky1 thanked this post
    #190875 quote
    robertogozzi
    Moderator
    Master

    You only need to change line 1, setting it to FALSE

    DEFPARAM CumulateOrders = FALSE
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Is there a way to put system A on hold if system B is ion the market?


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
Lucky1 @lucky1 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 10 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 03/31/2022
Status: Active
Attachments: No files
Logo Logo
Loading...