Quote:
Originally Posted by kermut
thanks for the reply cja, but I just don't get it.
My ma on the chart are ema, but in the ma candles indicator, there is no option to actually set the ema as sma, ema or lwma. Also, my ma are not shifted in anyway. My settings in the indicator are MA1 = 34 MA2 = 150, and the rest are all zeros. What am I not doing right?
Thanks in advance.
Regards,
K.
|
You have pointed out the problem the rest should not be all zeros
MODE_SMA = 0 Simple moving average,
MODE_EMA = 1 Exponential moving average,
MODE_SMMA = 2 Smoothed moving average,
MODE_LWMA = 3 Linear weighted moving average.
PRICE_CLOSE = 0 Close price.
PRICE_OPEN = 1 Open price.
PRICE_HIGH = 2 High price.
PRICE_LOW = 3 Low price.
PRICE_MEDIAN = 4 Median price, (high+low)/2.
PRICE_TYPICAL = 5 Typical price, (high+low+close)/3.
PRICE_WEIGHTED = 6 Weighted close price, (high+low+close+close)/4.
You need to change the MA1_MODE & MA2_MODE to 1
extern string IIIIIIIIIIIIIIIIIIIII=">>> MA Settings >>>>>>>>>>>>>>>>>";
extern int MA1 = 34;
extern int MA2 = 150;
extern int MA1_MODE = 1;
extern int MA2_MODE = 1;
extern int MA1_PRICE = 0;
extern int MA2_PRICE = 0;
extern int MA1_SHIFT = 0;
extern int MA2_SHIFT = 0;
After you change the MAs to EMAs you will notice that the Comments on the top left of the chart also change to reflect those settings
cja