Running Two Instruments at the same time

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

    I’m Running Two instruments at the same time during testing and plan on combining them into one soon. My problem is : I have set DEFPARAM CumulateOrders = False but when I run both instruments on the same pair AUD/USD it creates a buy and sell during the same period so its’ like Hedging .. but if I add the below, will this stop the existing trade as both instruments are opposed one is BUY and one is SELL ? or will it cause issues , or are all instruments treated as unique trades

    If NOT LONGONMARKET or NOT SHORTONMARKET AND c1 and C11 then
    Buy BuyPrice Contract at Market
    Set Target Profit 0.0015
    Set Stop Price Startprice
    Endif

    Thank you

    Capture.jpg Capture.jpg
    #220109 quote
    robertogozzi
    Moderator
    Master

    Hedging is not allowed within the same strategy, so if you place two opposite orders at the same time, the latter will always override the other.

    You have two separate systems hedging (like it seems in your pic), as they ignore each other, provided you have set the option FORCE OPEN (with IG).

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

Running Two Instruments at the same time


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
crankbuddy @crankbuddy Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/31/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...