PureBytes Links
Trading Reference Links
|
John,
could we go thru your piece of art step by step? It´s really a little over
my head!!!
Why did you use z1=BarsSince(z==0); instead of z==1? Didn´t you want to
detect where the 3D low occurred?
Otherwise, I don´t get what you try to accomplish with Cc=ValueWhen(z1,L,1)!
Which point is z1==1 in your ExRem argumenton the chart ? What happens there
in terms of lows/gifhs being taken out????
"z" is the point where the low of Z is the lowest of the minimum of three
days (including z itself), okay. Whereas z1 could take it the low of two or
one or none day(s). Why is that of importance?
I feel without yet fully being able to understand your work that you´re
getting very close to what I´ve been trying to code for weeks. Are you a
swing trader as well??
(If I see that the code is "correct" later on and I would like to have AB
draw "my" swings, can I do this in Exploration mode, or only in Guru
commentary or scan mode (latter one can only be used for testing WHOLE
systems with buy and sell conditions, right?)).
Thanks for your time AND your patience!!!
Markus
----- Original Message -----
From: "nirvana1x" <nirvanaiam@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, June 19, 2002 5:03 AM
Subject: [amibroker] Re: Help needed
Hi markus.
is this what you meant by the order of the hhv and llv.
place it as a indi or in AA explorer to test if the order in this
code is what you want.
z=IIf(L<=LLV(Low,3),1,0);
Y=IIf(H>=HHV(High,3),1,0);
z1=BarsSince(z==0);
y1=BarsSince(y==0);
Cc=ValueWhen(z1,L,1);
dd=ValueWhen(y1,H,1);
ff=ExRem(z1==1,y1==1);//l
Hh=ExRem(y1==1,z1==1);//h
Hh1=ExRem(Hh,ff);//l
ff1=ExRem(ff,Hh);//h
kk=ValueWhen(ff1==1,L,1);//l
Ll=ValueWhen(Hh1==1,H,1);//h
mm=Cross(Hh1,0.1);//h
mmm=IIf(Cross(Hh1*1.001,1.00),4,2);//h
nn=Cross(ff1,0.1);//l
nnn=IIf(Cross(ff1*1.001,1),6,2);//l
Plot(kk ,"",6,4);//l
Plot(Ll,"",4,4);//h
Plot(C,"",1,64);
//Plot(L,"",1,64);
//Plot(H,"",1,64);
Plot(nn+L-1,"",nnn,6);//l
Plot(MM+H-1,"",mmm,6);//h
AddColumn(z,"z");
AddColumn(y,"y");
AddColumn(Hh1,"hh1");
AddColumn(ff1,"ff1");
AddColumn(kk,"kk");
AddColumn(Ll,"ll");
Buy=C;
Filter=1;
cheers: john.
--- In amibroker@xxxx, "IVA GmbH" <funnybiz@xxxx> wrote:
> Yeah,
>
> I´ll try to reword it a little bit:
>
> You were correct by saying that from the left to the right, it
looks like
> W,X,Y,Z (like in the alphabet).
>
> What I´m trying to accomplish is basically to determine swing
extremes that
> eventually will become tops and bottoms of x value (minimum of 3
days for
> instance) and show me a market structure of a desired timeframe.
>
> That means: I´d like to detect where the low took (first) out at
least the
> low of three consecutive prior days (i.e. llv(low,e). I label this
point Z.
>
> Back from Z, I´m in search of the FIRST instance where a high takes
out at
> least the highs of three consecutive prior highs. This will be
labeled Y
> (this could of course be on the same day as the low Z occured in
case of an
> outside day!).
>
> Back from Y, I´m in search again of the low that takes out at least
three
> consecutive prior lows. This low will become X.
>
> Back from X, I´m again in search of the high that took out at least
the
> highs of three consecutive prior highs. This will become W.
>
> I could go like this "forever" into the past to detect highs and
lows of
> like value.Connecting the highs and lows will bring up the swings.
I could
> then go ahead and demand that the swings have to have a desired
relationship
> to another. For instance. each swing has to press higher than the
previous
> one etc.
>
> I need some sort of date function to make sure that the highs and
lows above
> apear in a certain order, i.e. first the low Z then the high Y then
the lowX
> and then the high W, right?!
>
> I assume that if I only require highestsince (hhv(high,3),high,1),
> lowestsince(llv(low,3),low,1), highestsince(hhv(high,3),high,2) and
> lowestsince(llv(low,3),low,2) and so on, AB will detect those highs
and lows
> but the could be in any order.
>
> I want to make sure they appear in the order stated above
(otherwhise, they
> wouldn´t result in the swings I tried to detect).Therefore, I have
to make
> sure that Z has the "latest" date, Y the seconed latest, X the
third latest
> and W the fourth latest (or just the other way around: first comes
W, then X
> then Y and then Z).
>
> I don´t use the ZigZag function since there, I can "only" specify
that the
> tops and bottoms have to show a distance of a certain percentage to
each
> other (if I get the concept right). This is only part of what I try
to
> analyze.
>
> I want to find out:
>
> 1./ where the highs and low occur (i.e. their date).
> 2./ which exact value the extreme (high or low) had
> 3./ what the exact difference between the tops or bottoms were, not
in
> percent but in USD or else.
>
> And at last, I´d like to be able to modify the swing length easily
(which
> could be accomplished by modifying the numbers in the llv(low,x) and
> hhv(high,x) functions.
>
> Geez, have you any idea what I mean, John, after all those lenghty
> explanations above??
>
> ;-)
>
> Markus
>
>
> ----- Original Message -----
> From: "nirvana1x" <nirvanaiam@xxxx>
> To: <amibroker@xxxx>
> Sent: Tuesday, June 18, 2002 3:49 AM
> Subject: [amibroker] Re: Help needed
>
>
> hi markus,
> could you post a clearer explaination as i dont understand what you
> mean.
> when you stated you want z on the last bar ,when x and w are
> previous values and cannot be placed after z.
> do you want the last instance z was true ,then have the others in
> the order you state, but for the instance they were true before z.
> so if looking at a chart the order from left to right would be
> w,x,y,z.
>
> cheers: john.
>
>
>
>
>
> --- In amibroker@xxxx, "IVA GmbH" <funnybiz@xxxx> wrote:
> > Folks,
> >
> > have you ever run into something like this:
> >
> > I´d like to specify points/extremes in a swing chart of a given
> swing length. I go something like this:
> >
> > Z=valuewhen(Low==llv(low,3),low,1)
> > Y=valuewhen(high==hhv(high,3),1)
> > X=valuewhen(low==llw(low,3),2)
> > W=valuewhen(high==hhv(high,3),2)
> >
> > ... and so forth.
> >
> > How can I assign them an order of my choice? DATENUM function
> doesn´t seem to help here or I´m too dumb!
> >
> > I would like that Z happened at the last bar, then Y then X and
> then W.
> >
> > Any idea ?
> >
> > Markus
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|