Indicators: DarvasBoxes_System_HTF

 

DarvasBoxes_System_HTF:

The DarvasBoxes_System indicator with the timeframe selection option available in input parameters.

Fig.1. The DarvasBoxes_System_HTF indicator

Author: Nikolay Kositsin

 

Hi!

Do you know why it cant be tested with input 1 day, and chart 1 hour?

 

Hi!

Can anybody help me with this error?

if(CopyTime(Symbol_,TimeFrame,iTime[bar],1,IndTime)<=0) return(RESET);

      //---

      if(iTime[bar]>=IndTime[0] && iTime[bar+1]<IndTime[0])

        {

         LastCountBar[Numb]=bar;

         double Arr[1];

         //--- êîïèðóåì âíîâü ïîÿâèâøèåñÿ äàííûå â ìàññèâ Arr

         if(CopyBuffer(IndHandle,BuffNumb,iTime[bar],1,Arr)<=0) return(RESET);

expression not boolean DarvasBoxes_System_HTF.mq5 211 70

expression not boolean DarvasBoxes_System_HTF.mq5 218 72

expression not boolean DarvasBoxes_System_HTF.mq5 262 70

expression not boolean DarvasBoxes_System_HTF.mq5 269 74

expression not boolean DarvasBoxes_System_HTF.mq5 270 74

 
Mario Hugo Achucarro Pillat: expression not boolean DarvasBoxes_System_HTF.mq5 211 70
#define RESET 0       // Êîíñòàíòà äëÿ âîçâðàòà òåðìèíàëó êîìàíäû íà ïåðåñ÷åò èíäèêàòîðàbool CountIndicator(… // Íîìåð ôóíêöèè CountLine ïî ñïèñêó â êîäå èíäèêàòîðà (ñòàðòîâûé íîìåð - 0)
   ⋮
      if(…) return(RESET);

Your function returns a bool. You are returning an int, expression not boolean.

 
William Roeder:

Your function returns a bool. You are returning an int, expression not boolean.

Thank you!

Reason: