2009.03.13 BULLS AND BEARS

free & uncensored discussion arena for TheRumpledOne

Moderator: moderators

User avatar
RockHardTen
rank: <50 posts
rank: <50 posts
Posts: 29
Joined: Thu Jun 18, 2009 8:31 pm
Reputation: 0
Gender: Male

Postby RockHardTen » Thu Jul 23, 2009 1:01 am

TheRumpledOne wrote:This is an MT4 indicator. Are you using MT4 for stocks?


Right TRO, this one's an mt4, but there is one called TRO_BullBear_Bal on TS. I'm trying to incorporate a piece of code from someone on that forum to eliminate the gap on session open. I'm using it to watch some sectors. Any clues? Thanks

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
RockHardTen
rank: <50 posts
rank: <50 posts
Posts: 29
Joined: Thu Jun 18, 2009 8:31 pm
Reputation: 0
Gender: Male

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


Return to “TheRumpledOne”