europe
Posts: 2 since Dec 2016
Thanks Given: 0
Thanks Received: 0
|
HI All,
I was wondering if someone could help me. I have some code Below( that counts the number of upticks real-time) is there anyway to make this show historical ticks..(i.w plot the historical ticks of last bar ,.say if it was a hour bar)
would be great if someone could show me how to do this.
vars:
IntraBarPersist Last_Tick ( 0 ) ,
IntraBarPersist MyCurrentBar ( 0 ) ,
IntraBarPersist Count ( 0 ) ;
if islastbar[0] then begin
begin
if CurrentBar > MyCurrentBar then
begin
Up_Ticks = 0 ;
Count = 0 ;
end ;
if Close > Last_Tick then
Count = Count + 1 ;
Last_Tick = Close ;
MyCurrentBar = CurrentBar ;
end ;
Up_Ticks = Count ;
|