Wednesday, March 11, 2009

Tick To Minutes Histogram EL Code

if (BarType = 0) then begin { tick bars } 
end;
if date = date[1] then begin 
value1 = (TimeToMinutes(time)-TimeToMinutes(time[1])); 

if value1<=15 then plot1(value1,"tick time"); 
if value1>15 then plot2(15,"15"); 
plot3(5,"5");
end; 

{to not distort the chart, any reading higher than 15 mins gets set to 15-minutes -- so really slow markets will be slightly overstated 'down' to 15 minutes}