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

RE: [amibroker] to download amibroker code published in Stock & Commodities



PureBytes Links

Trading Reference Links

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
>
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/