Download MetaTrader 5
To add comments, please log in or register
How to launch your trading signal and become a provider
Mehrdad Shiri
4332
Mehrdad Shiri 2012.03.29 21:31 
hi, need help to convert from mql4 to mql5 : please
Biantoro Kunarto
13823
Biantoro Kunarto 2012.03.30 08:39  
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:
Mehrdad Shiri
4332
Mehrdad Shiri 2012.03.30 19:05  
biantoro:

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

thank you very much.
Mehrdad Shiri
4332
Mehrdad Shiri 2012.03.30 19:44  
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
Biantoro Kunarto
13823
Biantoro Kunarto 2012.03.31 03:05  
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:
Mehrdad Shiri
4332
Mehrdad Shiri 2012.03.31 11:07  
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:
mt4.gif 18 kb
Biantoro Kunarto
13823
Biantoro Kunarto 2012.04.03 09:18  

Please check this
Files:
Mehrdad Shiri
4332
Mehrdad Shiri 2012.04.03 12:13  

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
Biantoro Kunarto
13823
Biantoro Kunarto 2012.04.04 03:29  

I'm not sure if this correct, because I don't understand what do you mean about the base line.
Files:
/
To add comments, please log in or register