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

Re: [amibroker] Use an indicator instead of alert



PureBytes Links

Trading Reference Links

Hi Jayson,

Thanks for your help.

I do want a HORIZONTAL LINE plotted so I can easily see when the price moves
through the calculated price.  I don't want alerts anymore ....  adding the
text you suggested to the code I already have just opened a newer window
below which is not right.

R.
----- Original Message -----
From: Jayson
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, June 11, 2003 4:57 PM
Subject: RE: [amibroker] Use an indicator instead of alert


Richard,
In order to plot an indicator you must use the Plot() command. You asked for
horizontal lines but did you mean vertical lines to match the alertif
signals?? Ff so simply add this to your code...

Plot(IIf(Buy,1,0),"Buy",5,2);
Plot(IIf(Sell,1,0),"Sell",4,2);


Regards,
Jayson
-----Original Message-----
From: Richard Jay [mailto:lists@xxxxxxxxxxxxxxxxxx]
Sent: Wednesday, June 11, 2003 8:27 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Use an indicator instead of alert


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



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 the Yahoo! Terms of Service.

Yahoo! Groups Sponsor



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 the Yahoo! Terms of Service.


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