Hello I am porting my EA from MT4 to MT5. One thing I am having trouble grasping is how to implement pyramiding of orders w/each order having a unique stop in MT5. I understand that I need to use one position and add to that position but am uncertain how to execute the dynamic stops. Does anyone have any code or suggestions on how to do this? Thanks
- Flexible MetaTrader 5 trading system with all order types
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- MetaTrader 5 for your employees
andrew.potter77:
Hello I am porting my EA from MT4 to MT5. One thing I am having trouble grasping is how to implement pyramiding of orders w/each order having a unique stop in MT5. I understand that I need to use one position and add to that position but am uncertain how to execute the dynamic stops. Does anyone have any code or suggestions on how to do this? Thanks
Instead of using .sl field of MqlTradeRequest for placing stops, open pending order on the opposite direction with the same volume at the stopped price.
Hello I am porting my EA from MT4 to MT5. One thing I am having trouble grasping is how to implement pyramiding of orders w/each order having a unique stop in MT5. I understand that I need to use one position and add to that position but am uncertain how to execute the dynamic stops. Does anyone have any code or suggestions on how to do this? Thanks
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
- www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
Thank you fireflies!
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