Postby RockHardTen » Thu Jul 23, 2009 1:06 am
This is the piece that he adds to other indi's to eliminate the opening gap and this way you don't have to wait for the mkt to settle down. trying to figure how to incorporate this into your TRO_Bull_Bear_Bal.
thanks again
// gapless day transitions - John McCormick May 2008
Vars:
RelO(0), // Relative Open
RelH(0), // Relative High
RelL(0), // Relative low
RelC(0), // Relative Close
gap(0), // the opening gap (modified by the gap coefficient)
GapCoef(1.0), // Gap Coefficient
Accum(0); // The sum of all the daily gaps
if date<>date[1] then
begin
gap = GapCoef*(O-C[1]);
Accum = Accum+gap;
end;
RelO = O-Accum;
RelC = C-Accum;
RelH = H-Accum;
RelL = L-Accum;
// Gapless - end