PureBytes Links
Trading Reference Links
|
Hi again - just read my own mail - I think I read your question backwards.
If you only wany it to plot when outside the +/- 1% range, try this one:
YestClose = ref( close, -1 );
PctYestClose = YestClose * 0.01;
RangeLow = YestClose - PctYestClose;
RangeHigh = YestClose + PctYestClose;
OutsideRange = DailyS1 < RangeLow or DailyS1 > RangeHigh;
Plot( IIf( OutsideRange, DailyS1, Null), "DailyS1", 1, 1, 1.4 );
----- Original Message -----
From: "Steve Dugas" <sjdugas@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, April 04, 2004 4:42 PM
Subject: Re: [amibroker] Plot Problem
> Hi - I think this should work...
>
> Steve
>
>
> YestClose = ref( close, -1 );
> PctYestClose = YestClose * 0.01;
> RangeLow = YestClose - PctYestClose;
> RangeHigh = YestClose + PctYestClose;
> WithinRange = DailyS1 > RangeLow and DailyS1 < RangeHigh;
> Plot( IIf( WithinRange, DailyS1, Null), "DailyS1", 1, 1, 1.4 );
>
>
> ----- Original Message -----
> From: "John" <jea55129@xxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, April 04, 2004 3:41 PM
> Subject: [amibroker] Plot Problem
>
>
> > Here is a line of code that I have
> > Plot(IIf(DailyS1<=Ref(C,-1),DailyS1,Null),"DailyS1",1,1,1.4);
> >
> > Instead of plotting only when dailyS1 <= ref(c,-1) I want it to plot
> > only when it's within lets say +-1% of ref(c,-1)
> >
> > Any ideas?
> >
> > tia
> >
> > John
> >
> >
> >
> >
> > 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
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> 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
> Yahoo! Groups Links
>
>
>
>
>
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|