
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Does it work if you add instead of multiplying ? If yes then your issue is probably invalid price and you could try normalize double. (assuming based on that the first one passes the rest don't)
Also check the volume limits and the volume step (i'm not checking for volume step in the code) since you are multiplying
Cheers
PS :
If i recall how the volume step works , you can do this :
The strategy tester does not show any problems with invalid volumes, prices or stops. It seems to be a problem with my loop.
The strategy tester does not show any problems with invalid volumes, prices or stops. It seems to be a problem with my loop.
shouldn't these be NextPrice instead of positionOpenPrice and NextVolume instead of positionVolume ? I assume you are on a hedging account and not a netting one