how to plot pivot using first 15MINUTES data

#1
dear friends,
i am new to amibroker and so kindly please help me to draw pivot lines
from 9.30AM to 3.30PM using current day 1st 15MINUTES (ie. 9.15 candle) open,high,low,close..


kindly help to write codes....
 

casoni

Well-Known Member
#2
this formula will take 1 candle only , any timeframe

NewDay = Day()!= Ref(Day(), -1);

ndO=ValueWhen(NewDay,O,1);
ndh=ValueWhen(NewDay,H,1);
ndl=valuewhen(NewDay,L,1);
ndc=valuewhen(NewDay,C,1);
Plot((ndo+ndh+ndl+ndc)/4,"",2,24); //
 
Last edited:

Similar threads