Originally Posted By: Dalla
What are you trying to achieve with this line of code

if (WinTotal < 0*PIP)

0*PIP will always be 0


If the sum of all trades are in a lossg then open a trade.
If the trade is still losing at 5 or more trades then open trade at 2 units and so on and so forth.
Thats all I want t o achieve.

So practically I just want to open trades and increase the lots as I continue losing. A sort of martingale that follows this pattern or similar( 1,1,1,1,2,2,2,2,2,5,5,5,5) it doesnt really matter as far as there is an increase after a certain amount of trades, as far as the sum is still a loss.