display reason entry & exit in the order list

Forums ProRealTime English forum ProRealTime platform support display reason entry & exit in the order list

Viewing 7 posts - 1 through 7 (of 7 total)
  • #97335

    Is it possible in the the orderlist (and the closed positions list?) from a backtest to display why the trade exits if they are custom programmed?

    That would be use-full information, perhaps as an extra column.

     

     

    #97342

    from a backtest to display why the trade exits

    Sounds good! I’m intrigued.

    What would be an example reason?

     

     

    #97346

    The reason why a strategy exits is always the same – because your strategy sent an order to the market!

    The easiest way to find out which order is to run a back test version of the strategy which sets a flag every time an exit condition is met and then GRAPH the result.

    For pending orders you have to work out if they were hit.

    If you use SET TARGET PROFIT then you need to similarly check to see if your exit price was ever hit.

    To make it more accurate you really need to include some sort of spread in the calculations.

    #97348

    In the charts I can see why it exits and your suggestion is also nice!

     

    But the purpose for the request is to have it displayed in the orderlist, just like the built-in exit profit/stoplos/trailing are displayed.

    If the strategy has 6 custom reasons to exit, those reasons would be nice to have a name in the orderlist. Not just “exit”.

     

    Although something minor I still thought worth mentioning.

    #97353

    But what if you had 100 reasons to exit? What if 50 of these reasons to exit were true at the time of exit? Would they need to add 100 columns? How would they know what conditions were met without you coding something into each strategy to say this is reason 1, this is reason 2…… this is reason 100?

    Often when I code a strategy I will add code that counts how many exits can be allocated to each reason and how much profit each reason would have made. This helps you see how over optimized each exit is.

    1 user thanked author for this post.
    #97383

    only one column was needed, or none if it was done like the built-in sl/pt/ts.

    But I see your point! If more exits where true it would be a problem.

    Thanks for the feedback!

     

    #98042

    What we need is a textual log journal, it would be much easier to debug and understand the orders behavior! 🙂

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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