PureBytes Links
Trading Reference Links
|
Jim,
You could use plotgrid()
PlotGrid(1,colorBlue);
or use Plot(1,"",colorblue,1)
plotgrid gives you the standard grid lines while Plot gives a solid line....
Regards,
Jayson
-----Original Message-----
From: wd [mailto:wdjd@xxxxxxxx]
Sent: Tuesday, March 02, 2004 6:29 PM
To: amibroker@xxxxxxxxxxxxxxx
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
------------------------ 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/
|