- Check your return codes and find out why. What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles Print out your variables, and find out why.
- Requirements and
Limitations in Making Trades - Appendixes - MQL4 Tutorial
Thank you so much : ).
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
Hi,
I'm studying how to implement EA with MQL4 to trade Forex with Meta Tader 4.
My broker is ActivTrades.
I could not understand very well how to use the OrderSend function.
EA will need to send market orders with Stop Loss and Take Profit.
Stop Loss, Take Profit and Volume will be in the double type variables, with values calculated by EA.
I did some testing and sometimes did not work.
I have to take some additional precautions to use OrderSend function?
Also, depending on what happens with the price, the EA should modify the Stop Loss and Take Profit of the original order. How to do this?
Thanks : )