Dear FF gurus
I have an issue with EA programming and i cant figure it out.
I'm trying to call a value from a external indicator using the iCustom command each time the candle closes
I can confirm the value are passed correctly and updates every candle close to my EA when I display the variable values when the variable is NOT within a nested IF command. As soon I display the values in a nested IF command then the values DONT update with every new candle. Why??
Please refer to my comments section within the code below
Eg.
HELP!!1
I have an issue with EA programming and i cant figure it out.
I'm trying to call a value from a external indicator using the iCustom command each time the candle closes
I can confirm the value are passed correctly and updates every candle close to my EA when I display the variable values when the variable is NOT within a nested IF command. As soon I display the values in a nested IF command then the values DONT update with every new candle. Why??
Please refer to my comments section within the code below
Eg.
Inserted Code
RSIPreviousFormedBar = iCustom(Symbol(),0,"LC-RSI_Histo3",13,0,0,0,2,2); Comment("RSIPreviousFormedBar: " +RSIPreviousFormedBar ); //this updates properly and is ok for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()) { if(OrderType()==OP_BUY) { Comment ("nothing!"); } else { if(RSICurrentFormedBar >= -9.9){ Comment(RSICurrentFormedBar); //this doesn't update with every new candle and gets stuck on only one figure return(0); } } } return(0); }
HELP!!1