STRATEGYPROFIT when cumulating= true

Forums ProRealTime English forum ProOrder support STRATEGYPROFIT when cumulating= true

Viewing 15 posts - 1 through 15 (of 24 total)
  • #77226

    Hello all,

    STRATEGYPROFIT doesn’t seem to return the correct values when a system cumulates positions…is this a known issue?

    Ta

     

    #77227

    It’s impossible to talk about something without having the full code and history.

    I suggest that you add

    in your strategy and then debug it, before entering and after exiting a trade, using the ProBackTest variable’s window.

     

    #77234

    I assume you are aware that STRATEGYPROFIT’s value will only be updated when the positions are closed?

    #77259

    Yes, it works fine for strategies that don’t cumulate orders, but for cumulating strategies, its not correct…

    #77262

    but for cumulating strategies, its not correct…

    In what way not correct? I have never noticed any issues and most of my strategies accumulate positions.

    #77267

    when i graph strategyprofit for a non-cumulating strategy, it matches the equity curve perfectly, as you would expect. When I graph it for a cumulating strategy, it does not match the equity curve of the strategy…the graph rises and falls at the right points, but not by the right amounts

     

    #77271

    A picture paints a thousand words!

    The equity curve will show all the draw downs while a graph of STRATEGYPROFIT won’t as it just shows the difference in overall profit at a candles close and will only change if positions are closed and the value altered.

    #77274

    Here is an image with STRATEGYPROFIT + 10000 graphed (£10000 was the starting capital). You can see that the value of STRATEGYPROFIT is only updated when all positions are closed.

    Screenshot_1

     

    #77285

    yes i understand that. I’m saying that it seems that my graph updates the wrong totals when positions close when a strategy is cumulating orders…

    #77288

    A picture paints a thousand words! use something like ‘Lightshot’ to take a screen shot so we can see the differences.

    Are you closing all of the positions at the same time with a SELL AT MARKET or using partial closure? If you have SET instructions for a stop loss or take profit with accumulating positions then it will be partial closure.

    #77292

    Im using SELL AT instructions to close… you can the strategyprofit rises and falls in the right places, but the totals are off… over this period the strategy lost -56, but the strategyprofit says +472

    #77303

    Difficult to confirm without zooming in (which you can do for us) but you also have SET stop loss exits in there and it seems these are not being shown in the strategy profit.

    Screenshot_3

    #77308

    Just a thought – is your graph instruction the last line in your code?

    #77311

    GRAPH is the last line…

    When you say SET instructions, do you mean anything other than a SELL at MARKET? I do have defined stop losses in place (eg SELL AT breakevenLevel STOP), and you are right that these don’t seem to be included in strategy profit..well spotted..

    Is there a way I can include them? strategyprofit isn’t much use without them…. its weird this only happens for cumulating strategies

    #77320

    STOP and LIMIT orders are the same as SET in the sense that they close a position mid candle and it seems this is not being included in the calculation so you may have discovered a bug with the new PRT engine. I would send a help request report into PRT via your platform and in the description direct them to this topic. You may also want to post in the Platform Support section a quick description of the problem and a link to here as PRT only monitor that section of the forums. Mention that you have sent a report or they will just ask you to send one!

    I have had some issues with accumulating strategies recently – mainly the optimize results window showing all the same results when variable position size is used. PRT may have one or two bugs to iron out.

Viewing 15 posts - 1 through 15 (of 24 total)

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