_SECTION_BEGIN("KPL vlines");
segments = IIf(Interval() < in15Minute, Hour(), IIf(Interval() < inDaily, Day(), Month() ) );
segments = segments != Ref( segments , -1 );
Plot(segments, "", colorGold, styleHistogram | styleOwnScale );
_SECTION_END();
Save above as vlines.afl file and then drag drop on price chart.
Warning: may not work on log scale charts
See in action
5 min charts: separator is now the hour
15 min charts: separator is now the day
Daily charts: separator is now the month
No comments:
Post a Comment