I tried to make RCI (Rank Correlation Index) indicator with updown color (file: RCI in Color). Based on the file "RCI_1Line," by using iCustom.
Though there are no errors in Meta Editor, it does not draw any lines on my chart.
Does anybody help to solve this problem?
I 'm just a beginner learing MQL.
There is no particular problem.
Although it is correctly displayed on my MT4, try to fix it as follows.
Add this one in line 9.
Fix as follows line 57 to 58.
//if (counted_bars>0) counted_bars--;
//limit = Bars - counted_bars;
if (counted_bars == 0)
limit = Bars - RCIPeriod;
limit = Bars - counted_bars;
Thank you for your advice, Naguisa.
Now, the problem is completely fixed and the line is drawn correctly on my chart!