PureBytes Links
Trading Reference Links
|
Jim,
This works on my machine:
col = IIf( Close > Ref( Close, -1 ), colorBrightGreen,colorRed );
Vol= Volume;
Avg=MA(Volume,20);
VA=Vol/Avg;
Plot(VA,"Volume", col, styleHistogram );
Line = 1;//IIf( High > Low, 1,0 );
Plot(Line,"1",colorBlue,styleLine);
Anthony
----- Original Message -----
From: "wd" <wdjd@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 02, 2004 6:29 PM
Subject: [amibroker] Code help
> I'm new to AB and in need of some code help. I looked through the help
> section, online tutorials, archives, etc. and cannot find anything about
my
> problem.
> I'm trying to simply plot a line at "1". I've tried everything I can think
> of and nothing worked, so I just forced the code using
> Line = IIf( High > Low, 1,0 );
> This does work, but there must be a better way. Below is the indicator I
> want...and it does work in it's own crude way.
> Can anyone help with this?
> Thanks
> Jim
>
> col = IIf( Close > Ref( Close, -1 ), colorBrightGreen,colorRed );
> Vol= Volume;
> Avg=MA(Volume,20);
> VA=Vol/Avg;
> Plot(VA,"Volume", col, styleHistogram );
> Line = IIf( High > Low, 1,0 );
> Plot(Line,"1",colorBlue,styleLine);
>
>
>
>
>
> 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
>
>
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
------------------------ 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/
|