Coding a profitable EA - page 2

 
kjsanjeewa: robot enters a position long and while that position is still open the robot gets an opposite signal short robot to exit the long and enter the short
You have posted this at least five times. STOP.
 
Hello guys i want to build an indicator 
 

I have published an expert in the codebase that works with moving averages https://www.mql5.com/en/code/20113 You could start with that and modify the entry signal to suit your purposes. To use a custom indicator in your strategy you would use the iCustom function https://docs.mql4.com/indicators/icustom

MA Cross Studies
MA Cross Studies
  • www.mql5.com
This EA was created to study the effects of various trade and money management strategies applied to a simple system, using only a Moving Average for bias. With this program you can implement a Moving Average trading system that switches between buying and selling automatically. You may also implement a scaling in strategy with options to...
Reason: