Be-nParticipant
Average
Hello everyone !
A small diagram is better than a long speech! 😉 Here is this diagram attached. I increment a loop that I reset to 0 according to the conditions. Inside each loop, I take positions.
I would like to determine my profit (or loss) for each loop (profit 1, profit 2, profit 3 …). I’m struggling. Could you enlighten me?
Thank you for your help !!
FOR i = 0 to firstloop DO
profitintermediate = strategyprofit [0] -strategyprofit [i]
NEXT
Without conviction …
Firstly you must know when each group starts and ends, otherwise it’s impossible to determine.
Secondly, once you know that one group start, say 60 bars ago, and ends 35 bars ago, then you don’t need a FOR…NEXT loop, simply compute the difference between STRATEGYPROFIT[35] and STRATEGYPROFIT[60].
What are those numbers on the paper, 0…8, then 0 again (why again?)…3, and so on? Bars are numbered sequentially from 0 to the current one which ca be number 63856, there is no other bar identified by 0 than the very first one!
Be-nParticipant
Average
Thx for all robertogozzi ! 😉 I will post my solution soon !