PureBytes Links
Trading Reference Links
|
This would be how to write this if you want the close of today to cross
Buy = cross(c , ref(c,-1) + ref(c,-1)*0.35/100 );
Avg = ? is this (H+L+C*2)/4 or ? You will need to define it exactly.
Sell would be as Buy except a - instead of +
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: Richard Jay [mailto:lists@xxxxxxxxxxxxxxxxxx]
Sent: Sunday, 8 June 2003 7:11 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] AB Alerts & my first AFL attempt
I have a number of mechanical trading rules which I'd like to incorporate
into AB.
For example: Take PREV CLOSE, multiply by 0.35 then divide by 100. Add this
to PREV CLOSE and BUY when next day crosses above. Subtract this from PREV
CLOSE and SELL when next day crosses below.
Rather than doing all the math manually, I'd like to incorporate this into
AB as an alert. I have two formulae so far:
Buy = Cross( Avg, Close+Close*0.35/100 );
Sell = Cross( Avg, Close-Close*0.35/100 );
Does that "say" the same as my description above ?? If so, what do I do
next to incorporate this as an alert ?
R.
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/
------------------------ 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/
|