Simple Indicator question, but cant seem to find an answer

 

So have a fairly simple question but I've searched the forums and googled but can't seem to find the answer. When coding an indicator into an ea, how do you know the parameters to set?

IE:

``For an ma you would do double ema=iMA(NULL,0,50,0,MODE_EMA,PRICE_CLOSE,0); so, symbol, timeframe, period, ma shift, type of ma, when on bar to calc the ema, and shift

``How would you know iMA(NULL,0,50,0,MODE_EMA,PRICE_CLOSE,0) corresponds to symbol, timeframe, period, ma shift, type of ma, when on the bar to calc the ema, and shift without google or otherwise?

``I understand I can google or search this site/forums for most included indicators but wouldn't help for custom indicators if any I would want to use. Looking more for learning purposes rather than posting indicators and having some tell me what to put, I'd like to know how to know what to put.

Thanks,

Kocher

 

ref MT EA editer's help file, all you need in there.

or https://docs.mql4.com//

when on bar to calc the ema ? on every time when price changed.

ma shift =0, which not used in EA.

symbol, timeframe, period, can get from functions of MT

symbol, timeframe, period, type of ma also can set as EA's parameter, see "extern" keyword in help file

 
DxdCn:

ref MT EA editer's help file, all you need in there.

or https://docs.mql4.com//

when on bar to calc the ema ? on every time when price changed.

ma shift =0, which not used in EA.

symbol, timeframe, period, can get from functions of MT

symbol, timeframe, period, type of ma also can set as EA's parameter, see "extern" keyword in help file


Heh, well, I was searching the docs etc and apparently I was over complicating my search. As soon as I typed in icustom it gave me what I was looking for...