No error but no draw

To add comments, please log in or register
Udetama
224
Udetama  

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.

Files:
Naguisa Unada
525
Naguisa Unada  

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.

#property strict

Fix as follows line 57 to 58.

   //if (counted_bars>0) counted_bars--;
   //limit = Bars - counted_bars;
   if (counted_bars == 0)
      limit = Bars - RCIPeriod;
   else
      limit = Bars - counted_bars;
Udetama
224
Udetama  

Thank you for your advice, Naguisa.

Now, the problem is completely fixed and the line is drawn correctly on my chart!

To add comments, please log in or register