calling osMA custom indicator

 

I want to call osMA indicator in my EA.

Can anybody help me what changes I need to make to my EA to call a signal from osMA.

 

See iCustom()

 

Phy thanks for your prompt reponse as usual.

I have already looked into iCustom, but I am getting some errors about buffers.

Is there a way to get step by step instructions on how to call a custom indicator in an EA. What modifications do the program code need????

 

Study iCustom()

You include the name of the indicator, you have to include ALL of the "inputs" to the indicator (if any), and specify which of the 8 index buffers ( the mode parameter) you will take the data from.

.

.

//+------------------------------------------------------------------+
//| OsMA.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| https://www.metaquotes.net// |
//+------------------------------------------------------------------+
//

#property indicator_buffers 1

//---- indicator parameters
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;

.

.

.

Therefore, a valid iCustom call is:

double iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)

double valueOfIndex0ofOsMA = iCustom(Symbol(), 0, "OsMA", 12, 26, 9, 0, 0)

Reason: