I think that I know how to store the entry point and the exit point but I don't know how to get the middle point maximum profit between the entry point and the exit point.
That is what I'm thinking for now:
if ([entry condition])
entry.add();
if (Close(i) == entry[0])
exit.add();
???
middlePoint = entry[0] ??? exit[0]
maximumProfit = ((entry[0] + ???) / ticksize);
So, how to do this measurement?
Comment