Amibroker - help needed please

#1
Hello All,

I wonder how to get Close of the previous day and Open of current day of 15 minutes candles chart. The code I have already written did not work properly. Anyone can help? Can you please code it using ValueWhen? Thanks in advance.

TimeFrameSet(inDaily);
YeserdaysClose=Ref(Close, -1);
TodaysOpen=Open;
TimeFrameRestore(in15Minute);
 
#3
prostitutos

try this

Plot(C,"",colorBlack,styleCandle);
TO = TimeFrameGetPrice("O", inDaily); // current day open
YC = TimeFrameGetPrice("C", inDaily, -1); //yesterday close
Plot(TO,"Today Open",colorRed,styleLine);
Plot(YC,"Yesterday Colse",colorGreen,styleLine);

vidyasagar
 

Similar threads