Help ! - Vertical Lines Separating Hours

casoni

Well-Known Member
#11
Hello Mastermind ,
is there any way ,to divide market hours into 4 or 5 equal parts ,
Than kyou
 

mastermind007

Well-Known Member
#12
Hello Mastermind ,
is there any way ,to divide market hours into 4 or 5 equal parts ,
Thank you
Casoni

Yes!,

For example, consider NSE 9:15 AM to 3:30 PM. lets assume we want to visual separators at 10AM, 12PM and 2pm.

tn = int(TimeNum() / 10000);
marker = (tn != Ref(tn, -1)) AND ((tn % 2) == 0);
Plot(marker,"",colorBlack,styleHistogram |styleOwnScale|styleNoLabel,0,1);

If you wanted to visually carve out every new hour, it would be.
th = int(TimeNum() / 10000);
marker = (th != Ref(th, -1));
Plot(Marker,"",colorBlack,styleHistogram |styleOwnScale|styleNoLabel,0,1);

Granularity of data in tn will change based on your plotted timeframe ...
 

yasu222

Active Member
#14
Hi I want vertical lines after every 15 minutes from 9:15 to 3:30
Code:
_SECTION_BEGIN("M15_Seperator ");
tn = (int(TimeNum() / 100)) % 100;
Mark1 = ((tn==00) OR (tn == 15) OR (tn == 30)OR (tn == 45) OR (tn!==60));
Plot(Mark1,"",colorLightGrey,styleHistogram |styleDashed |styleOwnScale|styleNoLabel,0,1);
_SECTION_END();
 
Last edited:

Similar threads