I need a help.
I want to plot yesterdays close(daily) and todays(daily) open horizontal lines on my intraday charts..
just those two.. earlier lines I don't want.
I tried.. "indaily / timeframe expand/compress / timeframe set" etc
but somehow its not working.
can some one make this afl ( just for those two line.. no price chart needed) so I can drag and remove whenever I want.
I am using amibroker 5.40
thanks in advance.
I want to plot yesterdays close(daily) and todays(daily) open horizontal lines on my intraday charts..
just those two.. earlier lines I don't want.
I tried.. "indaily / timeframe expand/compress / timeframe set" etc
but somehow its not working.
can some one make this afl ( just for those two line.. no price chart needed) so I can drag and remove whenever I want.
I am using amibroker 5.40
thanks in advance.
Code:
TimeFrameSet(inDaily);
q=Ref(C,-1);
to=Ref(O,0);
TimeFrameRestore();
Plot(TimeFrameExpand(q,inDaily,expandFirst),"Previous day close",colorGreen,styleDots);
Plot(TimeFrameExpand(to,inDaily,expandFirst),"Today open",colorRed,styleDots);