Forums › ProRealTime English forum › ProOrder support › DAILY Reseting postionperf to ZERO. › Reply To: DAILY Reseting postionperf to ZERO.
01/04/2018 at 4:16 PM
#57257
Try to count the number of positions that you have openend every day. For example, set a parameter np to 0 every day at 0:00. When you open a new position, increase np by 1.
Then you can consider positionperf only for the number that np is currently showing.
For example, when np is 2, and a position is open, you consider only positionperf and positionperf(1). When no position is open, you consider only positionperf(1) and positionperf(2).