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

[amibroker] entry selection



PureBytes Links

Trading Reference Links

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/