Ademola Temenu / Publications
Forum
Please i need to add an extra condition to this filter
//MACD Filter double macd_main = iMACD(a_symbol_0,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1); double macd_sig = iMACD(a_symbol_0,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1); if ((a_cmd_8==OP_BUY)&&(macd_main<0)) { return(0); } if ((a_cmd_8==OP_SELL)&&(macd_main>0)) { return(0); } can you fix this code so that if