Is it possible to format charts cursor: Date and time info?

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 721 times
Been thanked: 222 times

Is it possible to format charts cursor: Date and time info?

Postby arjfca » 27 Nov 2015

Hello

When mouse is over a bar, it display the date and time of the bar.

Is it possible to format the info so it display also the day of the week

Snap picture:
Edit: Error on the text put on the picture: I want the day of the week, not the week of the day... :)
http://screenpresso.com/=NWWKf

Martin

OZ Trade
Posts: 39
Joined: 08 Nov 2013
Has thanked: 11 times
Been thanked: 18 times

Re: Is it possible to format charts cursor: Date and time in  Topic is solved

Postby OZ Trade » 02 Dec 2015

There is no way to customize the x-axis label of the crosshair pointer as far as I know

quick indicator for you..

first click of the mouse plots the day of the week for the bar in the middle of the screen, second click makes it disappear.. next click shows day of week again.. next click disappear etc etc..

Code: Select all

Vars: recalcpersist flipper (0);

[ProcessMouseEvents = True]

If MouseClickPrice > 0 then begin

flipper= flipper + 1;

if flipper= 1 then begin

text_new_dt(MouseClickdatetime, (GetAppInfo(aiHighestDispValue) - GetAppInfo(aiLowestDispValue))/2 + GetAppInfo(aiLowestDispValue),

text(DayOfWeekFromDateTime(MouseClickdatetime):1:0));

End;

if flipper= 2 then begin

text_delete(text_getactive);

flipper = 0;

End;

End;


Return to “User Contributed Studies and Indicator Library”