strategy profit splitted for long and short

Forums ProRealTime English forum ProOrder support strategy profit splitted for long and short

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

    Hi everybody,

    is there any simple way to have the STRATEGYPROFIT result only for long and for short trades within the same strategy ???

    Many thanks in advance for your advise !!

    #216388

    Not tested:

     

    #216389

    The last GRAPH should match the ProBacktest calculations, updated to the last closed trade.

     

    #216392

    dear Roberto, many thanks for your reply and code.

    Is there any simplest and shortest way to reach the same results?

    I’m afraid I’ll not be able to insert it into a strategy.

    #216393

    Roberto,

    I’d like to put it into a strategy and not just a graph or indicator.

    I think that from your code is missing the second part, i.e. the one to use it as variable for deciding if increase or decrease the q.ty based on the previous success of the strategy.

    #216396

    That’s not meant for GRAPHING, that’s to have a single  STRATEGYPROFIT split into LONG and SHORT data, so that you can decide how to use those split data. There are two variables, you can use them for what you need.

    Isn’t that what you asked in your first post?

     

     

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