First look at the MACD sample EA code.
Subsitute the imacd(....etc....) with icustom(...your indicator...)
The rest of the logic should easily follow. e.g. I have a buy and indicator says sell so close current trade.
Next time around indicator still says sell no trades so places a sell trade and visa versa.

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
I have an indicator that I want to trade like an EA. I want it to open trade when the buy signals appears on the screen. The EA should exit buy when a sell signal appears. Afterwards the sell signal should now replace the buy signal. The process continues. Buy, then exit buy when we have sell signal, start selling immediately, then exit sell when we have buy.The should have take profit, trailing stop and lot size. Can someone help me with the code