PureBytes Links
Trading Reference Links
|
Thankyou Jayson, your code works perfectly.
However now I discover that the "math" is wrong !! I want to plot this on
an intraday chart, but the "prevCl" should be yesterdays closing price ...
is this possible?? This all works fine if I just view the daily chart, but
that's not the point of the exercise :)) Can I force AB to look at
yesterdays close when working on intraday data ?? If so, how ?
R
----- Original Message -----
From: Jayson
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, June 11, 2003 5:30 PM
Subject: RE: [amibroker] Use an indicator instead of alert
Richard,
OK this uses the last value of your buy/sell to plot a line (not the cross
of the price and condition but the condition its self.
prevCl= Ref(Close,-1);
Buy = prevCl+prevCl*0.35/100;
Sell = prevCl-prevCl*0.35/100;
Plot(C,"",4,64);
Plot(LastValue(Buy),"buy",5,1);
Plot(LastValue(Sell),"Sell",4,1);
this creates a custom indicator. If you want to add this to your regular
proce plot just copy it to the top of the built in price indicator omitting
the line that says ...
Plot(C,"",4,64);
Regards,
Jayson
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|