Cumulate orders working in backtest but not live trading

Forums ProRealTime English forum ProOrder support Cumulate orders working in backtest but not live trading

Viewing 6 posts - 1 through 6 (of 6 total)
  • #45026

    I’ll copy and paste my code just in case I have something wrong here.. But I can’t work out what the problem is.

    I watch the backtest window work side-by-side the real window and they behave differently with the same code. The backtest opens cumulative orders but the live version does not… 🙁

     

    DEFPARAM CumulateOrders = true //

    // Conditions to enter long positions
    indicator1 = MACD[12,26,9](close)
    c1 = (indicator1 CROSSES OVER -1)

    IF c1 THEN
    BUY 1 PERPOINT AT MARKET
    ENDIF

     

    // Conditions to enter short positions
    indicator3 = MACD[12,26,9](close)
    c3 = (indicator3 CROSSES UNDER 1)

    IF c3 THEN
    SELLSHORT 1 PERPOINT AT MARKET
    ENDIF

     

    // Stops and targets
    SET STOP pLOSS 20
    SET TARGET pPROFIT 25

    #45027

    Just realized I posted this in the wrong section. Sorry.. hopefully it can be moved 🙁

    #45029

    spreads are the same ?

    1 user thanked author for this post.
    #45030

    Hi,

    Yes don’t worry, I’ll move your post from ProScreener forum to ProOrder forum

    Please update your country flag by selecting a location in your profile settings. Thank you.

    Please use the “<>” (insert PRT code) button in the message editor toolbar when adding code to a message. Thank you.

    1 user thanked author for this post.
    #45033

    Just a mistake I made before that caused a similar problem. When you start your strategy live you must enter how many contracts the strategy is allowed to open. If this is for example is set to 1 your strategy will only open 1 contract and not cumulate even if you have activated it in your code.

    1 user thanked author for this post.
    #45037

    Just a mistake I made before that caused a similar problem. When you start your strategy live you must enter how many contracts the strategy is allowed to open. If this is for example is set to 1 your strategy will only open 1 contract and not cumulate even if you have activated it in your code.

    This must be it! Thanks a lot.

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

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