iMACD

Back to topics list To post a new topic, please log in or register
avatar
3
al-amili 2015.04.06 13: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



avatar
13009
WHRoeder 2015.04.06 14: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.

avatar
3
al-amili 2015.04.06 18: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.

avatar
13009
WHRoeder 2015.04.06 20: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).
avatar
3
al-amili 2015.04.06 20: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
Back to topics list  

To add comments, please log in or register