Yesterday I had MT4 and on it I had a simple indicator that showed me both the 14 day ATR and the current range of today's price action in numbers in a 'Comment' in the top left corner of the chart. The code I used was this-
Comment("\n14 day ATR = ",My_ATR," Todays Range = ",todays_range);
As you can see it is very simple and displays the extent of my coding skills perfectly!
Today I have MT5 and decided I would like to show the same information in my charts. I have spent the last 5 hours trying to work out MT5 coding and have failed miserably. I have got to the stage where I have lost the will to live! I am sure that the MT5 coding is far more reliable and versatile than its MT4 predecessor but........................it ain't for simple folk!
Can someone convert my little bit of code to the MT5 equivalent for me please along with all the bits and pieces that need to be declared, talked about, eluded to etc?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi All
Yesterday I had MT4 and on it I had a simple indicator that showed me both the 14 day ATR and the current range of today's price action in numbers in a 'Comment' in the top left corner of the chart. The code I used was this-
double My_ATR=iATR(NULL,1440,periods,1);
double todays_range=iHigh(NULL,1440,0)-iLow(NULL,1440,0);
Comment("\n14 day ATR = ",My_ATR," Todays Range = ",todays_range);
As you can see it is very simple and displays the extent of my coding skills perfectly!
Today I have MT5 and decided I would like to show the same information in my charts. I have spent the last 5 hours trying to work out MT5 coding and have failed miserably. I have got to the stage where I have lost the will to live! I am sure that the MT5 coding is far more reliable and versatile than its MT4 predecessor but........................it ain't for simple folk!
Can someone convert my little bit of code to the MT5 equivalent for me please along with all the bits and pieces that need to be declared, talked about, eluded to etc?
Thanks in advance.
Regards
Paul Eamonn