- Experts: Stop & Limit Bots
- Create a distance of 10 pips between positions
- Question on working with stops: classic on limiters + stops integrated into position
Borrow the AllProfit function from here https://www.mql5.com/en/code/9156
And when the Profit is negative to the amount of your stop loss, use the CloseAll functions in this https://www.mql5.com/en/code/8714
NB - you will have to convert currency to pips for each symbol
Good Luck
-BB-
Borrow the AllProfit function from here https://www.mql5.com/en/code/9156
And when the Profit is negative to the amount of your stop loss, use the CloseAll functions in this https://www.mql5.com/en/code/8714
NB - you will have to convert currency to pips for each symbol
Good Luck
-BB-
Thanks this is very helpful .One question though. You use the OrderMagicNumber function and compare it with the iMagic variable you created. I don't understand why you conduct this test.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use