Create EA through Custom Indicator.

 

Hi everybody, please how can i do this  ?


i have an custom indicator which gives Buy arrow (Blue Color) and Sell arrow (red color), but how i create auto trade buy/sell when arrow appear on chart with take profit and SL.

My Indicator shared with you.

Files:
 
I downloaded your indicator and open it in MetaEditor and I see the real name of this indicator: ADXcrosses.
Someone renamed this indicator to arrow-buy-sell.
 

And this is EA using ADXcrosses indicator (for MT5)

Exp_ADXCrossing - expert for MetaTrader 5
Exp_ADXCrossing
Exp_ADXCrossing
  • www.mql5.com
A trade decision is made when a colored indicator dot appears. This Expert Advisor requires the compiled indicator file ADXCrossing.ex5 in order to run. Place it in \MQL5\Indicators. Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take...
 

You should use the function

iCustom(NULL,timeframe,Indicatorname,buffer,index);

timeframe: 1 ... 43200

Indicatorname: Filename of indi

buffer: arrow up=0; arrow dn=1

index: 0 or 1 (it depends when the arrow appears. 0=current bar; 1=previous bar