[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AFL Help



PureBytes Links

Trading Reference Links

brian it seems like nenapacwanfr has posted the formula.

Thanks for a more detailed explanation. theres more rules than i 
thought.

I was curious about some of the lines in in nenapacwanfr's code, 
now i understand why.


cheers: john.

--- In amibroker@xxxx, "brian_35m" <cadvantag@xxxx> wrote:
> John,
> 
> "so what happens if the green buy count is at 4 when a sell hapens 
> and this count actually gets to 9 , is it included in the 9th 
consec 
> count or does the count have to start fresh from 1 to 9 after the 
> sell day"
> --The way I see the graphs (Figures 1-4) Is the when a Buy is 
> Triggered (Red 13) that the Green Numbers are on Top Counting the 
> Upward Trend. The closer it gets to a Red 13 the more likely the 
> trend is exhausted. A Green 9 (Buy) shows the possbility of a small 
> tech bounce and then the trend resumes the downtrend and a new set 
of 
> Green numbers resets. 
> 
> Here is from the articel:
> If the basic Countdown conidtions are fullfilled for bar 13 but the 
> qualifying conditions are not, then the occurance of bar 13, the 
> final bar of Countdown, is "deferred". A "plus" sign (+) is placed 
> over a sell Countdown bar or below a Buy Countdown bar to identify 
> this deferred status.
> The Combo Countdown diffeers from the sequential Countdown in that 
it 
> has 3, rather than just 1, necessary condition. Once a Combo Sell 
> setup has completed, the study starts a Setup bar 1 (vs. Setup bar 
9 
> for sequential) to determine if these 3 conditions exist.
> Each Combo Countdown price bar for a Sell Setup must have
> 1) a close > or = to the high two bars earlier
> 2) a high > than the previous bars high
> 3) a close > than the close of the previous bars close
> (Because Combo Countdown bar 1, by definition, has no preceding 
> Countdown bar close, this condition is not needed for Countdown bar 
> 1) These conditions are reversed for a Combo Buy Countdown. 
> When 13 Countdown bars with these conditions have appeared, as 
shown 
> in figure 2, price tends to stop trending and reverse direction. 
The 
> Combo indicator will, by its nature, complete a 13 Countdown at the 
> highest close of a Sell COuntdown or the lowest close of a Buy 
> Countdown.
> Because of its more stringent requirements, there are less Combo 
> trade opportunities than Sequential. However, Combo nevertheless 
adds 
> value by highlingthing trend exhaustion zones, whether 
independently 
> or in conjunction with sequential.
> 
> John- Does that help?
> 
> Cheers,
> Brian
> --- In amibroker@xxxx, "nirvana1x" <nirvanaiam@xxxx> wrote:
> > brian.
> > my reply to the ?? below is 
> > "....the green buy count does not start until a sell. so if 
another 
> > buy setup happens does it only start 
> > count after the actual sell."
> > --This is Not True: a Buy Set up Starts over or resets- (Figure 1 
> > shows a reset of Green Buy Numbers- with the Red Numbers 
Beginning 
> on 
> > the first Green 9 and going past the second set of Green 1-9 
> numbers)
> > 
> > i can see from the diagram that the green count continues once 
the 
> > red count has been triggered, but these would not be useful, it 
> would 
> > only be of use after a sell,
> > so what happens if the green buy count is at 4 when a sell 
> hapens 
> > and this count actually gets to 9 , is it included in the 9th 
> consec 
> > count or does the count have to start fresh from 1 to 9 after 
the 
> > sell day . 
> > 
> > cheers: john.
> > 
> > 
> > --- In amibroker@xxxx, "brian_35m" <cadvantag@xxxx> wrote:
> > > Hi John,
> > > 
> > > "so basically ( for the buy setup)if the green consecutive 
count 
> of 
> > a 
> > > downtrend ==9 then for the green count to be valid it needs to 
> have 
> > > the low of bars 8 or 9 to be below the low of bars 6 and 7 ."
> > > --This is True
> > > 
> > > "so if the above is true the red count starts when the close of 
> > > current bar is <= to the low of the 2 previous bars (not 
> > consecutive)"
> > > --This is True
> > > 
> > > "....the green buy count does not start until a sell. so if 
> another 
> > > buy setup happens does it only start 
> > > count after the actual sell."
> > > --This is Not True: a Buy Set up Starts over or resets- (Figure 
1 
> > > shows a reset of Green Buy Numbers- with the Red Numbers 
> Beginning 
> > on 
> > > the first Green 9 and going past the second set of Green 1-9 
> > numbers)
> > > 
> > > "Question??? can it include days that are true before the sell 
> e.g. 
> > > (what if the green count of the downtrend was 4 at the sell). 
can 
> > it 
> > > include this in the count or does it have to start fresh after 
> the 
> > > sell.( all of the above is only for the buy setup) it doesnt 
> > include 
> > > the count for the sell."
> > > --John this question I didnt follow- Did I answer it on the 
above 
> > > answer or can you ask it in another way.
> > > 
> > > Cheers,
> > > Brian
> > > --- In amibroker@xxxx, "nirvana1x" <nirvanaiam@xxxx> wrote:
> > > > brian,
> > > > so basically ( for the buy setup)if the green consecutive 
count 
> > of 
> > > a 
> > > > downtrend ==9 then for the green count to be valid it needs 
> to 
> > > have 
> > > > the low of bars 8 or 9 to be below the low of bars 6 and 7 .
> > > > 
> > > > so if the above is true the red count starts when the 
close 
> of 
> > > > current bar is <= to the low of the 2 previous bars (not 
> > > consecutive)
> > > > and when the red count starts the green buy count does not 
> start 
> > > > until a sell. so if another buy setup happens does it only 
> start 
> > > > count after the actual sell .
> > > > 
> > > > Question??? can it include days that are true before the sell 
> > e.g. 
> > > > (what if the green count of the downtrend was 4 at the sell). 
> can 
> > > it 
> > > > include this in the count or does it have to start fresh 
after 
> > the 
> > > > sell.( all of the above is only for the buy setup) it doesnt 
> > > include 
> > > > the count for the sell.
> > > > 
> > > > 
> > > > 
> > > > cheers: john.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --- In amibroker@xxxx, "brian_35m" <cadvantag@xxxx> wrote:
> > > > > Hi John,
> > > > > 
> > > > > I am not a subscriber- I have the this months edition. I 
will 
> > try 
> > > > to 
> > > > > summarize the next 2 pages of the article
> > > > > Setups: For Buys must have 7 consecutive days of lower 
closes 
> > > > > compared to four days prior - if on the seventh day it is a 
> > > higher 
> > > > > close the count do a price flip and the count restarts- 
Only 
> > when 
> > > > > pattern reaches a minimum of 9 consecutive bars can the 
> > analysis 
> > > > move 
> > > > > forard. For a Buy setup to qualift the low of 8 or 9 must 
be 
> > > below 
> > > > > the lows of both bars 6 & 7 (vice versa on Sell side). The 
> next 
> > > > step 
> > > > > is the TD countdown- final phase. It can begin as early as 
> the 
> > > 9th 
> > > > > day - the setup requires the close of the current bar to be 
> > less 
> > > > than 
> > > > > or equal to the low of the bar two bars earlier . Countdown 
> > bars 
> > > > are 
> > > > > denoted by red numbers below the price bars (Figure 1 & 2) 
> for 
> > a 
> > > > Buy 
> > > > > Countdown - above the price bars for Sell Countdown. A 
> complete 
> > > > > Countdown requires 13 bars - but they do not have to be 
> > > consecutive 
> > > > > days (nor are they usually). Once a Red 13 appears in a 
> > Countdown 
> > > > the 
> > > > > underlying trend is exhausted. Countdown requires a 
> qualifier - 
> > > for 
> > > > a 
> > > > > Sell Countdown the high of the bar 13 must be equal to or 
> above 
> > > the 
> > > > > close of bar 8, for a Buy Countdown the low of bar 13 must 
be 
> > > equal 
> > > > > to or less than the close of bar 8.. This qualifer ensures 
no 
> > > > overlap.
> > > > > 
> > > > > John let me know if you need me to type more from the 
> article. 
> > > If 
> > > > > you have a fax I can fax it to you. You can email me at 
> > > > > Brian_35M@xxxx
> > > > > 
> > > > > Thanks for your help John!
> > > > > Cheers, 
> > > > > Brian --- In amibroker@xxxx, "nirvana1x" <nirvanaiam@xxxx> 
> > wrote:
> > > > > > high brian,
> > > > > > 
> > > > > > heres the formula with the plotted valuelines. 
> > > > > > 
> > > > > > A=IIf(C<Ref(C,-4),7,IIf(C>Ref(C,-4),5,1));
> > > > > > A1=ValueWhen(A,C,1);
> > > > > > b=Sum(C<Ref(C,-4),9)==9;
> > > > > > b0=IIf(BarsSince(b==0)==1,-5,0);
> > > > > > b1=ValueWhen(b0,C,1); 
> > > > > > Aa=IIf(C>Ref(C,-4),5,1);
> > > > > > bb=Sum(C>Ref(C,-4),9)==9;
> > > > > > bb0=IIf(BarsSince(bb==0)==1,1,0);
> > > > > > bb1=ValueWhen(bb0,C,1);
> > > > > > Plot(b1,"",7,4);
> > > > > > Plot(bb1,"",6,4);
> > > > > > Plot(C,"",A+b0+bb0,64);
> > > > > > Plot(C,"",1,64);
> > > > > > 
> > > > > > these lines have the close values for when the cond of 
> the 
> > > 9th 
> > > > > > consecutive day was true 
> > > > > > blue for the c> ref(c,-4) 9th consec day
> > > > > > and yellow for the c< ref(c,-4) 9th consec day
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > whats the rule for the red count numbers to 13 , is it 
> l<ref
> > > (l,-
> > > > > 4) 
> > > > > > and a non consecutive count to 13 and starting when the 
> > green 
> > > > > count 
> > > > > > =9. 
> > > > > > as the imfo on the webpage doesnt explain.
> > > > > > 
> > > > > > looking at the diagram it looks like it also has lines 
> > plotted 
> > > > > when 
> > > > > > the green numbered bars count =1 not sure if you need 
> > these. 
> > > if 
> > > > > you 
> > > > > > are a subcriber to the mag could you post the other rules.
> > > > > > 
> > > > > > 
> > > > > > cheers: john.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --- In amibroker@xxxx, "brian_35m" <cadvantag@xxxx> wrote:
> > > > > > > Hi John,
> > > > > > > 
> > > > > > > Thanks for your reply & formula! I like the layout. 
Can 
> > you 
> > > > tell 
> > > > > > me 
> > > > > > > how to place the valuelines? 
> > > > > > > 
> > > > > > > Thanks,
> > > > > > > Brian
> > > > > > > 
> > > > > > > --- In amibroker@xxxx, "nirvana1x" <nirvanaiam@xxxx> 
> wrote:
> > > > > > > > hi brian,
> > > > > > > > i have read the article and so far i have the 9 bars 
> > lower 
> > > > > than 
> > > > > > > the 
> > > > > > > > close from 4 days ago.
> > > > > > > > each lower bar has a yellow outline and the white 
> > outlined 
> > > > bar 
> > > > > > is 
> > > > > > > > the 9th consecutive lower bar. 
> > > > > > > > the bars that are close is higher than the close 
from 
> 4 
> > > > days 
> > > > > > ago 
> > > > > > > > are in a green outline, and the blue outlined bar is 
> the 
> > > > > actual 
> > > > > > > 9th 
> > > > > > > > consecutive bar of the close higher than the close 
from 
> 4 
> > > > days 
> > > > > > ago.
> > > > > > > > 
> > > > > > > > 
> > > > > > > > A=IIf(C<Ref(C,-4),7,IIf(C>Ref(C,-4),5,0));
> > > > > > > > A1=ValueWhen(A,C,1);
> > > > > > > > b=Sum(C<Ref(C,-4),9)==9;
> > > > > > > > b0=IIf(BarsSince(b==0)==1,-5,0);
> > > > > > > > b1=ValueWhen(b0,C,1); 
> > > > > > > > Aa=IIf(C>Ref(C,-4),5,1);
> > > > > > > > bb=Sum(C>Ref(C,-4),9)==9;
> > > > > > > > bb0=IIf(BarsSince(bb==0)==1,1,0);
> > > > > > > > bb1=ValueWhen(bb0,C,1); 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > Plot(C,"",A+b0+bb0,64);
> > > > > > > > Plot(C,"",1,64);
> > > > > > > > 
> > > > > > > > you can plot the valuelines as well.
> > > > > > > > cheers: john.
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > --- In amibroker@xxxx, "brian_35m" <cadvantag@xxxx> 
> wrote:
> > > > > > > > > I was trying to create a formula that used the 
> > principles 
> > > > in 
> > > > > > the 
> > > > > > > > > following article.
> > > > > > > > > 
> > > > > > > > > http://www.activetradermag.com/glass.htm
> > > > > > > > > 
> > > > > > > > > I put this in indicator builder. It has a couple 
> errors 
> > > > that 
> > > > > I 
> > > > > > > cant 
> > > > > > > > > seem to fix. When it changes from one pattern and 
> > begins 
> > > > > > another 
> > > > > > > I 
> > > > > > > > > was trying to get it to change color but I was 
> > > unsuccessful 
> > > > > > > > (examples 
> > > > > > > > > are in Figure 1 & 2 in the article). Also, is it 
> > possible 
> > > > to 
> > > > > > get 
> > > > > > > > > numbers to post on the bars?
> > > > > > > > > 
> > > > > > > > > Thanks,
> > > > > > > > > Brian
> > > > > > > > > 
> > > > > > > > > Day1 = Ref( C, -1 ); 
> > > > > > > > > Day2 = Ref( C, -2 );
> > > > > > > > > Day3 = Ref( C, -3 ); 
> > > > > > > > > Day4 = Ref( C, -4 ); 
> > > > > > > > > Day5 = Ref( C, -5 ); 
> > > > > > > > > Day6 = Ref( C, -6 ); 
> > > > > > > > > Day7 = Ref( C, -7 ); 
> > > > > > > > > Day8 = Ref( C, -8 ); 
> > > > > > > > > Day9 = Ref( C, -9 ); 
> > > > > > > > > Day10 = Ref( C, -10 ); 
> > > > > > > > > Day11 = Ref( C, -11 ); 
> > > > > > > > > Day12 = Ref( C, -12 ); 
> > > > > > > > > Day13 = Ref( C, -13 ); 
> > > > > > > > > Day14 = Ref( C, -14 ); 
> > > > > > > > > Day15 = Ref( C, -15 ); 
> > > > > > > > > Day16 = Ref( C, -16 ); 
> > > > > > > > > Day17 = Ref( C, -17 ); 
> > > > > > > > > Day18 = Ref( C, -18 ); 
> > > > > > > > > Day19 = Ref( C, -19 ); 
> > > > > > > > > Day20 = Ref( C, -20 ); 
> > > > > > > > > Day21 = Ref( C, -21 ); 
> > > > > > > > > Day22 = Ref( C, -22 ); 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > barcolor = IIf( Day22 < Day18, 4, IIf( Day22 
>Day18, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day21 < Day17, 4, IIf( Day21 
>Day17, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day20 < Day16, 4, IIf( Day20 
>Day16, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day19 < Day15, 4, IIf( Day19 
>Day15, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day17 < Day14, 4, IIf( Day18 
>Day14, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day16 < Day13, 4, IIf( Day17 
>Day13, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day16 < Day12, 4, IIf( Day16 
>Day12, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day15 < Day11, 4, IIf( Day15 
>Day11, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day14 < Day10, 4, IIf( Day14 
>Day10, 
> 8, 
> > > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day13 < Day9, 4, IIf( Day13 >Day9, 
8, 
> > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day12 < Day8, 4, IIf( Day12 >Day8, 
8, 
> > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day11 < Day7, 4, IIf( Day11 >Day7, 
8, 
> > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day10 < Day6, 4, IIf( Day10 >Day6, 
8, 
> > > > 20 ) );
> > > > > > > > > barcolor = IIf( Day9 < Day5, 4, IIf( Day9 >Day5, 8, 
> > > 20 ) );
> > > > > > > > > barcolor = IIf( Day8 < Day5, 4, IIf( Day8 >Day4, 8, 
> > > 20 ) );
> > > > > > > > > barcolor = IIf( Day7 < Day3, 4, IIf( Day7 >Day3, 8, 
> > > 20 ) );
> > > > > > > > > barcolor = IIf( Day6 < Day2, 4, IIf( Day6 >Day2, 8, 
> > > 20 ) );
> > > > > > > > > barcolor = IIf( Day5 < Day1, 4, IIf( Day5 >Day1, 8, 
> > > 20 ) );
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > /* Colourized price bars drawn here */
> > > > > > > > > //Graph0BarColor = barcolor;
> > > > > > > > > Graph0Style = 2+4; // Bar Graph
> > > > > > > > > Graph0BarColor = barcolor;
> > > > > > > > > Graph0 = Volume;