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

[amibroker] Use an indicator instead of alert



PureBytes Links

Trading Reference Links

I previously was given the AFL below which works fine .. but I think it
would work better as an indicator ... two horizontal lines plotted on the
price chart.  How do I plot this is an indicator ??  I copied it onto the
Custom Indicator section but it opened a new empty panel:

prevCl= ref(close,-1);

//buy if current close crosses above previous close rule...
Buy = Cross( close, prevCl+prevCl*0.35/100 );

//sell if current close crosses below previous close rule...
Sell = Cross(prevCl-prevCl*0.35/100, close);

AlertIf(Buy,"","BUY",0,15,1);
AlertIf(Sell,"","SELL",0,15,2);


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