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

RE: [amibroker] entry selection



PureBytes Links

Trading Reference Links

1) you can use either Exrem or ExremSpan

2)use cum 
Positive = Cond1 > 0; 
Count = Cum(Positive); 

3)This can be a starting point for you 
Money = Cum( SellPrice - BuyPrice); 
AvgReturn = Money/Count; 

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia 

-----Original Message-----
From: bmx888 [mailto:bmx888@xxxxxxxxx] 
Sent: Monday, 3 November 2003 12:40 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] entry selection


I am trying to code this in Amibroker to screen entry conditions.

Suppose BuyCond is met, how to calculate the return in 20 days, 
maximum risk point, maximum profit point etc.

(C-ref(C, -20))/ref(C, -20)*BuyCond should be the return of 20 days 
of position holding. The questions are:

1) Now how to avoid repetitive counts of BuyCond suppose day 1 
buycond is met, the second day it's still met. This happens all the 
time in trend following systems.
2) How to calculate the probability by positive return/number of 
events.
3) how to calculate average return by total return/number of events...

Is it possible in AFL to calculate the number of events and generate 
a table to check once BuyCond is met, the return in 1 day, 5 days, 20 
days etc, its probability, maximum risk, maximum profit...




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

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/xlw.sC/XP.FAA/3jkFAA/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/