Displays currency pair in chart

 

I'm using MT4.
I would like to display trading currency pair on the top right corner in chart as follows


Is this kind of mq4 indicator available?
Or would you please tell me the script for this?

I found Currency.mq4.
http://www.forex-ex.com/indicators/indicators/Currency.mq4

However, this displays the symbol on the left corner. I want it on the top right.

Note: The text label doesn't change the pair name automatically when switch currency pairs.

 

'Comment' AFAIK always puts stuff in lines down from top left.

You'll need to experiment with the Object functions (ObjectCreate etc) & pay special attention to ObjectSet with index OBJPROP_CORNER

Maybe do a search of this site; https://www.mql5.com/en/articles/1503 looks interesting

 

Thanks. I read your link, but, I gave up. I don't understand how to use those Object type identifiers.

BTW, I found this mq4 file.

_Signal_Bars_v1.mq4

http://www.minibahnfx.com/indicators/others/_Signal_Bars_v1.gif/view

This displays the price on the right top. I don't know how to put symbol here instead of price though.

 

i assume u need to replace Bid with Symbol()

 
qjol:

i assume u need to replace Bid with Symbol()


How? or Where?
 
PRC1 = Symbol();

Instead of

PRC1 = DoubleToStr(Price1,Digits);
 
Thanks. It worked. I didin't know MQL4 needs compiling.
 
angelluo:

I'm using MT4.
I would like to display trading currency pair on the top right corner in chart as follows

Like this ??

Files:
 
mate41:

Like this ??



Yea, but I wanted it on the right top in chart window.
 
Can you please share modified one.  Would be good to have.
Reason: