using symbols other than metatrader predefined symbol

 

Hi

I want to write an indicator. But I do not want to use predefined symbols.

for example as you see in the definition of iMA indicator:

double  iMA(
   string       symbol,           // symbol
   int          timeframe,        // timeframe
   int          ma_period,        // MA averaging period
   int          ma_shift,         // MA shift
   int          ma_method,        // averaging method
   int          applied_price,    // applied price
   int          shift             // shift
   );


the first argument is SYMBOL which is one the metatrader predefined symbols.

Now, I want to use a newly-defined symbol like (EURUSD-USDCHF) or (EURUSD*USDCHF)

Can I use this type of symbol as an argument.

IF not , How can I use a new symbol in my mql4 code if I want to use predefined metatrader and mql4 indicators.

 
(EURUSD-USDCHF) or (EURUSD*USDCHF) are not symbols. You will have to create your own values in a buffer and then use the MT5 equivalent of iMAOnArray
Reason: