- Use the debugger or print out your variables, including prices and find out why.
- There is no need to open an order and then set the stops. Simplify your code -
do it in one step. TP/SL on OrderSend has been fine for years.
Build 500 2013.05.09 № 9
Need help me mql4 guru add take profit to this EA - Take Profit - MQL4 programming forum -
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the MQL4 section,
(bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.

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 have spend months learning MQL4 and have just finished writing my first EA, or so I hoped. Unfortunatly when I go to test it in the strategy tester, nothing happens, it takes no trades, shows no results, and doesn't run through the chart. I was hoping someone here could help me locate my issue as I am unable to find the problem. Thanks!
I have based the trigger function on an indicator that I made that correctly shows the signals as intended so I do not think that is the error though I could be wrong.