Forums › ProRealTime English forum › ProOrder support › Strategy HSI-M1-ReverseAngleLong › Reply To: Strategy HSI-M1-ReverseAngleLong
06/01/2020 at 9:00 PM
#134105
And I don’t understand this part of your code
|
1 2 3 4 5 6 7 8 9 |
if resetafterlost then positionsize = startingsize elsif doublestepdown then positionsize = positionsize - stepsize * 2 else positionsize = positionsize - stepsize endif wincount = 0 endif |
Because I think you decrement position size when position perf is negative but resetafterlost is always at 0 and doublestepdown too.
Does something mis as a count on loss trades ?
Thanks