Download MetaTrader 5

Comment last moving average's value

To add comments, please log in or register
Harry Jannetta
83
Harry Jannetta  

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
6246
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
Files:
MAValues.ex4 7 kb
MAValues.mq4 3 kb
Harry Jannetta
83
Harry Jannetta  

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  
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
6246
Stuart Browne  
Harry Jannetta:

Thanks Stu

Exactly what I was looking for much appreciated.

 

Harry  

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