Updating Risk amount
-
Hi,
I am trying to program my EA as to increase the risk by 1% after a trade hits it's take profit level. I am trying to do this by incrementing a variable 'RISK' by ++1 each time a trade is closed on TP. Once Risk == 5%, the variable is to change back to 1%. If a SL is hit, the variable should be 1%.
No matter how I seem to attempt to program it, I can not seem to modify the value of variable 'RISK' in order for it to change the volume size when I am backtesting.Attached is a screen shot of my latest attempt. Could you kindly have a look and advise me where I am going wrong? This screen shot is taken on the 'ON TRADE' screen.
Thanks for your help.......
Capture.PNG -
"Formula" #26 now works like this: Result26 = RISK + 1
But I'm pretty sure that you don't need a global variable named "Result26". Try with "RISK" instead.
-
Perfect, thanks