Correct way to use PositionPerf for increasing OrderSize

Forums ProRealTime English forum ProOrder support Correct way to use PositionPerf for increasing OrderSize

Viewing 9 posts - 1 through 9 (of 9 total)
  • #154699

    Hi,

    what is the correct way to increase or change ordersize based on either loss or win from previous trade.  The below I created does not proceed to order anything when I do the probacktest.  Should this be embedded somewhere?

    can “OrderSize”  be stated “OrderSize[1]” meaning previous Ordersize same as notation of close, indicators, etc?

     

     

    #154807

    1. what size do you want to start with?

    2. what increment does it have to perform after a WIN?

    3. what decrement does it have to perform after a LOSS?

     

    #155836

    Hi Roberto, I was able to just copy the one in the manual – The Piquemouche.  Now I have a different issue.  It was working before but it is not woking after update to Ver11.  I posted it as another topic.

    #155839

    theo123 – I deleted that double post. Please pay attention to the forum rules.

    • Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
    #155843

    Please post the code and explain better any issue you have.

    #155850

    Here you go.  This works before v11 but now it does not after update.  Thanks for checking.

     

    #155866

    I think you need to utilize strategyprofit  and strategyprofit [1] to determine when the trade closed, and make the calculation of positionperf

    Example below:

     

    #155867

    Maybe better to directly try with your code,

    Btw,

    1) Your comment “If the last position was losing and there are more than 3 consecutive losses,” seems doesn’t tally with the code, why to mod with 3 and not >= 3?

    2) Using my example, I’m not sure if the ExitIndex still necessary, perhaps can be removed, otherwise I’m not sure if it will enter the condition when trade is closed by STOP LOSS or TARGET

    #157217

    Hi DowJones,

    Thanks for the reply.  Just able to check the reply today and will try your code and update.

    Actually the whole thing is copied from the PRT manual, so I am not really sure of the use of the MOD.

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

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