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

[amibroker] help with trading system



PureBytes Links

Trading Reference Links

hi,

I need some basic help with trading systems. I am so used to an other 
programming language and can't seem to find out how to fully utilise 
AB in similar ways.

as an example I want to find out how to program a simple system

1) say I got my "buy" array defined.

2) now I want to sell in the following days at the close whenever the 
price has increased by 2% or more.

3) I sell with a loss at the close whenever the price decreases by 4% 
or more.

4) and I sell at the close price when the number of trading days 
exceeds 5 and the stock is still in possesion.

How could I use AFL in the best way. Do I need to use loopings?

thanks in advance,

Ed


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