PureBytes Links
Trading Reference Links
|
Jsayson,
I found my mistake: I had to add for whatever
reason lastvalue(...).
But I still can´t find the respective cum valuer by
using
Valuewhen(condition,cum(1),1)
Why is that?
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
IVA GmbH
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, April 08, 2003 6:17
PM
Subject: Re: [amibroker] Re: Plotting an
interval´s condition
Jayson,
interestingly, I don´t seem to be able to get the
HHV value itself, let alone the respective cum value!!!??? It may be my
ignorance or something else>VBG<.
Please have a look with me at the attached
chart.
I have circled the high I´m after. In the
indicator windows below, called linechangeup and linechangedown, you see green
and red bars, one of each being circled yellow as well.
Now, the high value (and it´s resoective cum
value I´m also after in a separate step) are right between a green bar of
linechangeup and a red bar of linechangedown as you can see.
Let´s say the circled red bar has the cum value
of "test" and the circled green bar has the cum value of "test4".
Then, the highest high in between should
be
hhv(high,(test1-test4)+1) which is shifted from
the last bar to the left by the factor of lastvalue(cum(1)-test1,
thus:
<FONT face=Arial
size=2>Ref(hhv(high,(test1-test4)+1),-(lastvalue(cum(1)-test1))
But this gives me another result for whatever
reason!!!!!
Where´s my flaw???????
Appreciate it a lot!
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=jcasavant@xxxxxxxxxxxx
href="">Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, April 08, 2003 4:21
PM
Subject: RE: [amibroker] Re: Plotting
an interval´s condition
<SPAN
class=789361814-08042003>Markus,
<SPAN
class=789361814-08042003>
<SPAN
class=789361814-08042003>Once you know your HHV just use
valuewhen.
<SPAN
class=789361814-08042003>
<SPAN
class=789361814-08042003>x=your criteria to find cond1
<SPAN
class=789361814-08042003>
<SPAN
class=789361814-08042003>valuewhen(x,cum(1));
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: <A
href="">funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Tuesday, April 08, 2003 10:10
AMTo: <A
href="">amibroker@xxxxxxxxxxxxxxxSubject:
Re: [amibroker] Re: Plotting an interval´s
conditionDimitris,I thought of something
different and thus try ti reqord what I´m after.Please look at the
accompanying chart:I´m after the highest high between the two red
bars (bar number 542 and606).Once I´ve foudn the value for the
highest high (here: bar # 575 and a valueof 2.92), I´d like to get the
bar´s cum() value.By using a plot, I´d like to get a simple
histogram bar in a separate chartwindow.Do you know what I
mean?Thanks for your assistance!Markus----- Original
Message -----From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxxxxxxx>To:
<amibroker@xxxxxxxxxxxxxxx>Sent: Tuesday, April 08, 2003 1:07
PMSubject: [amibroker] Re: Plotting an interval´s
condition--- In amibroker@xxxxxxxxxxxxxxx, "IVA GmbH"
<funnybiz@xxxx> wrote:> Dimitris,>> dat´s
neat!>> 1./ May I ask how come that the second solution works
though thereis no IIF> command?? I looked up the plot function
but still can´t figure outwhich> paert of the function it refers
to.>> 2./ Now, that you´ve defined a certain range to be
plotted for me:how would> I then instruct AB to plot (in a
separate window) a historic barfor the> highest high in that
range??? I thought about highestsincebarsfunction but> somehow I
can´t get it worked out.k=Cum(1)>=607 AND
Cum(1)<730;Plot(H,"H",k,1);Plot(LastValue(Highest(k*H)),"period
HIGHEST",4,8);>> Markus> ----- Original Message
-----> From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>> To:
<amibroker@xxxxxxxxxxxxxxx>> Sent: Tuesday, April 08, 2003 8:52
AM> Subject: [amibroker] Re: Plotting an interval´s
condition>>> > There are two alternatives>
> a. Plot(IIf(Cum(1)>=607 AND Cum(1)<730,H,-1e10),"H",1,8);>
> plots ONLY the requested bars and> > b.
Plot(H,"H",Cum(1)>=607 AND Cum(1)<730,8);> > It is better,
perhaps, because you see the scaling of the noncolored> >
bars.> > DT> >> > --- In
amibroker@xxxxxxxxxxxxxxx, "IVA GmbH"
<funnybiz@xxxx>wrote:> > > Hello,> >
>> > > I thought that> > >> > >
Plot(ValueWhen(Cum(1)>=607 AND Cum(1)<730,High,1),"cum value
1.> > swing top",7,2)> > >> > > would
plot the high for the interval >=607 and <730, but> >
apparently, it plots even beyond that (i.e. bar number > 730).Why
is> > that?> > >> > > How would I have
to formulate the AFL command if it were to plot> > JUST WITHIN
this range, please?> > >> > > Markus>
>> >> >> > Send BUG REPORTS to
bugs@xxxx> > Send SUGGESTIONS to suggest@xxxx> >
-----------------------------------------> > Post AmiQuote-related
messages ONLY to: amiquote@xxxxxxxxxxxxxxx> > (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)>
> --------------------------------------------> > Check group
FAQ at:> <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html>
>> > Your use of Yahoo! Groups is subject to<A
href="">http://docs.yahoo.com/info/terms/>
>> >Send BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at:<A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.htmlYour
use of Yahoo! Groups is subject to <A
href="">http://docs.yahoo.com/info/terms/Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS
to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|