Download MetaTrader 5

iMACD

To add comments, please log in or register
Trade like successful traders - subscribe to their signals!
al-amili
13
al-amili 2015.04.06 11:26 

Hi everyone;

double  iMACD(
   string       symbol,           // symbol
   int          timeframe,        // timeframe
   int          fast_ema_period,  // Fast EMA period
   int          slow_ema_period,  // Slow EMA period
   int          signal_period,    // Signal line period
   int          applied_price,    // applied price
   int          mode,             // line index
   int          shift             // shift
   );


How could I access the value of shift e.g

Print("This is the value of shift: ", iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);

Many Thanks


whroeder1
13590
whroeder1 2015.04.06 12:16  
Print("This is the value of shift: ", iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);

Question makes no sense. You are the one specifying the shift as one.

Use SRC for code.

al-amili
13
al-amili 2015.04.06 16:04  
WHRoeder:

Question makes no sense. You are the one specifying the shift as one.

Use SRC for code.

how could I access the value of shift which is not the same as 1.

the value 1 in the following the Print("This is the value of shift: ", iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1); is not 1. it means the pervious bar value.

whroeder1
13590
whroeder1 2015.04.06 18:20  
The value of the shift is one. The value of the macd for bar 1 ("the previous bar") is iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1).
al-amili
13
al-amili 2015.04.06 18:51  
WHRoeder:
The value of the shift is one. The value of the macd for bar 1 ("the previous bar") is iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1).
thanks
/
To add comments, please log in or register