Thursday, February 14, 2008

FTH/FTL + <>yest TS indicator





Heres a quick indicator to help see the FTH/L type stuff.
- puts a dot on each FTH/FTL
- alerts FTH/FTL past 10:30 EST
- puts brighter dot when low < yest or high > yest (and alerts that)

Hopefully this helps someone. Code follows.

//ShowMe _GT_TickHiLo

Variables:
tickHigh(0),
tickHighY(0),
tickLow(0),
tickLowY(0);

if BarType < 2 then begin
if Date <> Date[1] then begin
tickHighY = tickHigh;
tickHigh = High;
tickLowY = tickLow;
tickLow = Low;
end
else if High > tickHigh then begin
Plot1(High);
tickHigh = High;
if time > 1030 then
Alert("FTH");
end
else if Low < tickLow then begin
Plot3(Low);
tickLow = Low;
if time > 1030 then
Alert("FTL");
end;
end;

if tickHigh crosses over tickHighY then begin
Plot2(High - 40);
Alert("Tick > yest");
end;

if tickLow crosses under tickLowY then begin
Plot4(Low + 40);
Alert("Tick < yest");
end;

No comments: