![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
right but what are you setting SL to? try 10, 100, 1000, and see how it looks in the strategy tester visual mode. One pip size in EURJPY is 0.01 I think, and the SL has to be set accordingly
I tried all numbers 10 to 1000 I still get invalid stops instead of using my pips function I assumed that might be the problem
switched to "_point" function but I still encounter the same problem invalid stops so that's not the problem.
I tried using Round to tick size but I still get invalid stops why is this?
Use ASK for modifying buy positions, use BID for modifying sell positions. You have it the other way around here. The Ask price is the available buy price. The Bid is the price you sell at. switch it around (even though it might not resolve this issue)
I don't use this function "SelectByIndex", try this instead:
Use ASK for modifying buy positions, use BID for modifying sell positions. You have it the other way around here. The Ask price is the available buy price. The Bid is the price you sell at. switch it around (even though it might not resolve this issue)
I don't use this function "SelectByIndex", try this instead:
Don't you count down when looping? I tried using position get ticket and I still get invalid stops
Don't you count down when looping? I tried using position get ticket and I still get invalid stops
I still get invalid stops even when checking stop levels