Indicators: Fibo Bar MT5 - page 2

 
Good day! I downloaded your indicator, but when compiling it gives three errors, please tell me how to deal with this?))))
 
streloc15:
Good day! I downloaded your indicator, but when compiling it gives three errors, how can I fight it?))))

There are new standard functions iHigh, iLow, iTime in MT5.
That's why the compiler swears.

You can simply delete strings from the indicator:

datetime iTime(string symbol,ENUM_TIMEFRAMES timeframe,int index)
   {
   if(index < 0) index=0;
   if(CopyTime(symbol, timeframe, index, 1, ArrDate)>0) return(ArrDate[0]);
   else return(-1);
   }
double iLow(string symbol,ENUM_TIMEFRAMES timeframe,int index)
   {
   if(index < 0) return(-1);
   if(CopyLow(symbol, timeframe, index, 1, ArrDouble)>0) return(ArrDouble[0]);
   else return(-1);
   }

double iHigh(string symbol,ENUM_TIMEFRAMES timeframe,int index)
   {
   if(index < 0) return(-1);
   if(CopyHigh(symbol, timeframe, index, 1, ArrDouble)>0) return(ArrDouble[0]);
   else return(-1);
   }

then the functions built into MT5 will be used.


or replace, according to the text:

  • all iHigh to iHigh2
  • all iLow to iLow2
  • all iTime to iTime2

in this case the same functions in the indicator will be used.

 
Taras Slobodyanik:

MT5 has new standard functions iHigh, iLow, iTime.
That's why the compiler swears.

You can simply delete strings from the indicator:

then the functions built into MT5 will be used.


or replace, according to the text:

  • all iHigh to iHigh2
  • all iLow to iLow2
  • all iTime to iTime2

in this case the same functions will be used in the indicator.

Thank you! Everything worked out)))

 
Taras Slobodyanik:

MT5 has new standard functions iHigh, iLow, iTime.
That's why the compiler swears.

You can simply delete strings from the indicator:

then the functions built into MT5 will be used.


or replace, according to the text:

  • all iHigh to iHigh2
  • all iLow to iLow2
  • all iTime to iTime2

in this case the same functions will be used in the indicator.

It is better to update the code taking into account new functions and send it for republishing.

 
Vladimir Karputov:

You'd better update the code taking into account the new features and send it for republishing.

of course I will update it, but can I use these features already?
MT5 release is out?

 
Taras Slobodyanik:

of course I will update, but can I use these functions already?
MT5 release is out?

It's been out for a while. I have 1881, and the release was a few builds earlier.

 
It looks very nice! 
Instead of adding the fibo on the last bar, how to  leave to user choose specif bar interval manually?
 

Hello

Is it possible to replace the bar with the zigzag indicator?

Regards,

 
Rogerio Borges:

Hello

Is it possible to replace the bar with the zigzag indicator?

Regards,

Yes, of course, it is possible. You can write me a private message.

Hello.

 

syntax error: type expected    Fibo_Bar.mq5    100    14

I couldnt complie the indicator line 100 error