PureBytes Links
Trading Reference Links
|
KK,
Is it your intention to reference the future with this code:
Ref(Fdw,2)
Ted
----- Original Message -----
From: <kk2628@xxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, February 05, 2003 12:50 AM
Subject: [amibroker] Re: plotshapes
> Jason,
>
> Thank you for your reply. Unfortunately, this does not solve my
> problem. In your formula, it is actually plotted on the current bar
> when the x condition is met. What I intend to do is to plot on the
> previous desinated bar when the condition is met. I use the ref
> function, plotshapes correctly plotted on the previous bar, however,
> it also plot on bars since the designated bar until the right most
> bar i.e. the last bar if the condition still true.
>
> Thanks
> KK
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > KK,
> >
> > I get a little confused with the plotshapes syntax as well but I
> think this
> > is what you were asking for..... this is for low closes, change
> the C to L
> > for Lows
> >
> >
> > x=Ref(C,-4)>Ref(C,-3) AND Ref(C,-2)<Ref(C,-3) AND Ref(C,-1) >Ref(C,-
> 2) AND
> > Ref(C,-1)<C;
> > Plot(C,"",4,styleCandle);
> > PlotShapes(x, colorBrightGreen, 0,L-ATR(1) );
> >
> >
> > Jayson
> > -----Original Message-----
> > From: kk2628 [mailto:kk2628@x...]
> > Sent: Wednesday, February 05, 2003 12:28 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] plotshapes
> >
> >
> > Hi,
> >
> > I encounter a problem here, following is the AFL, and what I want
> to achieve
> > is to plot a small triangle on the bar which is the lowest than the
> two
> > preceding bars and two following bars. The problem I have is
> somehow the
> > triangle was also ploted on the two following bars. I attached a
> gif as the
> > example. Any help is much appreciated.
> >
> > Fdw=Ref(L,-2)<L AND Ref(L,-2)<Ref(L,-1) AND Ref(L,-2)<=Ref(L,-3) AND
> > Ref(L,-2) <=Ref(L,-4);
> > PlotShapes( IIf(Ref(Fdw,2), 5 + shapePositionAbove, shapeNone),
> > colorRed,0,L,10 );
> >
> > thanks
> > KK
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> > 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.
>
>
> 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 http://docs.yahoo.com/info/terms/
>
>
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 http://docs.yahoo.com/info/terms/
|