Download MetaTrader 5
To add comments, please log in or register
Interested in the Market activity? Come and track!
Harry Jannetta
81
Harry Jannetta 2015.10.05 17:20 

HI ALL

 

Is there an indicator that will comment last value of my simple moving averages on the screen?   I am new to the Metatrader and can't seem to find it.  I am not proficient enough yet to write it one.

 

 

Thanks in advance Harry  

Stuart Browne
5781
Stuart Browne 2015.10.06 04:23  
Hi Harry

Try the attached, it will print the MA values in the upper left corner. I didn't know if you wanted the current bar or the previous bar so I set it to print both. You'll see the code is pretty easy to understand so you could modify it yourself. Just make sure you set the inputs to be the same as the MA indicator on your chart (eg period, type of MA etc)

Both compiled version and plain code attached.

Cheers
Stu
Files:
MAValues.ex4 7 kb
MAValues.mq4 3 kb
Harry Jannetta
81
Harry Jannetta 2015.10.06 14:36  

Stuart Browne:
Hi Harry

Try the attached, it will print the MA values in the upper left corner. I didn't know if you wanted the current bar or the previous bar so I set it to print both. You'll see the code is pretty easy to understand so you could modify it yourself. Just make sure you set the inputs to be the same as the MA indicator on your chart (eg period, type of MA etc)

Both compiled version and plain code attached.

Cheers
Stu   

 

Thanks Stu

Exactly what I was looking for much appreciated.

 

Harry  

Muhamad Eskak
28
Muhamad Eskak 2015.10.06 15:06  
Stuart Browne:
Hi Harry

Try the attached, it will print the MA values in the upper left corner. I didn't know if you wanted the current bar or the previous bar so I set it to print both. You'll see the code is pretty easy to understand so you could modify it yourself. Just make sure you set the inputs to be the same as the MA indicator on your chart (eg period, type of MA etc)

Both compiled version and plain code attached.

Cheers
Stu
Good (y)
Stuart Browne
5781
Stuart Browne 2015.10.07 00:47  
Harry Jannetta:

Thanks Stu

Exactly what I was looking for much appreciated.

 

Harry  

Welcome mate :)
/
To add comments, please log in or register