gann hilo in mql5 need help

 
hi, need help to convert from mql4 to mql5 : please
 
TIMisthebest:
hi, need help to convert from mql4 to mql5 : please

I already change your indicator...Please check this..

int OnInit()
  {
//--- indicator buffers mapping
   SetIndexBuffer(0,ssl,INDICATOR_DATA);
   ssl_handle=iMA(NULL,0,Lb,0,MODE_SMA,PRICE_CLOSE);
   ssl_handle_h=iMA(NULL,0,Lb,0,MODE_SMA,PRICE_HIGH);
   ssl_handle_l=iMA(NULL,0,Lb,0,MODE_SMA,PRICE_LOW);  
   PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0);
//---
   return(0);
  }
Files:
 
biantoro:

I already change your indicator...Please check this..

thank you very much.
 
TIMisthebest:
thank you very much.

HI THANK YOU , BUT THERE IS A DIFFERENT BETWEEN MT4 & MT5

I MARK IT 

CAN YOU PLEASE CHECK IT

Files:
MT5.png  27 kb
mt4.gif  18 kb
 
TIMisthebest:

HI THANK YOU , BUT THERE IS A DIFFERENT BETWEEN MT4 & MT5

I MARK IT 

CAN YOU PLEASE CHECK IT

Sorry, I already make a mistake, please check this..
Files:
 
biantoro:
Sorry, I already make a mistake, please check this..

hi , and thank you

but for that , the last 10 candle is missed

i change this and it be ok :

for(int i=0; i<rates_total;i++)  is ok 

and

for(int i=0; i<rates_total-Lb;i++)  is not ok

-----------------------------------------

and for complete the indicator i add arrow

and i want to have only the first arrow for every change direction of trend

and play a sound.

like the picture attached

i send them

would you please check it

Files:
 
Please check this
Files:
 

excuse me , but that is incorrect

even the base line( gold color ) is moved

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Web Colors
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Web Colors - Documentation on MQL5
Files:
mt4.gif  17 kb
mt5.gif  18 kb
 

I'm not sure if this correct, because I don't understand what do you mean about the base line.
Files:
Reason: