Hi,
I'm trying to create an indicator but having problem on this part
Basically i have few rules
------------------------------------------------------------------
if i want to use the H1_MACD and M30_MACD, i set true and i will get the indication. I know the && is wrong. i tried google to use the correct Operations.
Thank you
I'm trying to create an indicator but having problem on this part
Basically i have few rules
Inserted Code
input bool D_MACD = false;//DAILY MACD input bool H4_MACD = false;//H4 MACD input bool H1_MACD = false;//H1 MACD input bool M30_MACD = false;//M30 MACD input bool M15_MACD = false;//M15 MACD input bool M5_MACD = false;//M5 MACD input bool M1_MACD = false;//M1 MACD
------------------------------------------------------------------
Inserted Code
if( (D_MACD && iMACD(_Symbol,PERIOD_D1,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_D1,Time[i]))>0.0) && (H4_MACD && iMACD(_Symbol,PERIOD_H4,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_H4,Time[i]))>0.0) && (H1_MACD && iMACD(_Symbol,PERIOD_H1,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_H1,Time[i]))>0.0) && (M30_MACD && iMACD(_Symbol,PERIOD_M30,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_M30,Time[i]))>0.0) && (M15_MACD && iMACD(_Symbol,PERIOD_M15,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_M15,Time[i]))>0.0) && (M5_MACD && iMACD(_Symbol,PERIOD_M5,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_M5,Time[i]))>0.0) && (M1_MACD && iMACD(_Symbol,PERIOD_M1,macd_fast,macd_slow,macd_sma,macd_price,MODE_MAIN,iBarShift(_Symbol,PERIOD_M1,Time[i]))>0.0) && ) {ArrDnBuffer[i]=iLow(_Symbol,_Period,i)+10*pix_y();}
if i want to use the H1_MACD and M30_MACD, i set true and i will get the indication. I know the && is wrong. i tried google to use the correct Operations.
Thank you