Simple EA

 

I started to learn to code but I suck at it totally. 

I am trying to code an EA that enters a trade above (below for sell) the candle that changed color (babon candles based on babon slope indicator), and reverses the trade if the price goes below that candle inside x amount of candles. Can anybody help me out? 

Files:
 
  1. Help you with what? You haven't stated a problem. Show us your attempt and state the nature of your problem.

  2. Just get the value of the indicator into the EA and do what you want with it. You should encapsulate your iCustom calls to make your code self-documenting.
              Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum