This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Indicator Line


Back to topics list
avatar
60
EmeraldKing 2005.03.09 03:28 
Hello,

How do I convert my custom indicator (MySignal) into iMySignal? just like the sample EA MACD uses the iMACD version of the MACD?

Thank you for your Time
EK
avatar
240
MartinCooney 2005.03.09 04:11 
Emerald King,

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


Calculates the Custom indicator and returns it's value.

Parameters

symbol - Symbol on that data need to calculate indicator. NULL means current symbol.
timeframe - Time frame, by default used current chart period. It can be any one of Time frame enumeration values.
name - Custom indicator compiled program name.
... - Parameters set (if needed).
mode - Line index. Can be from 0 to 7.
shift - Shift relative to the current bar (number of periods back), where the data is to be taken from.

Sample

double val;
val = iCustom(NULL, 0, "SampleInd",13,1,0);


Cheers
Martin
avatar
60
EmeraldKing 2005.03.09 04:43 
Hello Martin,

Thanks for the Info that really helps now I can work it out :)

Have a Great Day
EK
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets