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

[amibroker] Writing a "trading system"



PureBytes Links

Trading Reference Links




Hello,
 
I´m trying to write a simple trading system to get 
my feet wet with AB´s backtest ability.
 
I want to buy when the high is higher than the 
highest high of the last 25 days and sell and the low is lower then the last 10 
days.
 
On the short side, I want to short when the low is 
lower than the lowest low ofthe preceeding 25 days and cover the position when 
the high is higher than the highest high ofthe last 10 days.
 
Why does this NOT work:
 

Buy=<FONT 
face="Courier New" color=#000000>High<FONT face="Courier New" 
color=#6600aa>>HHV<FONT 
face="Courier New" color=#6600aa>(<FONT face="Courier New" 
color=#000000>High<FONT face="Courier New" 
color=#6600aa>,25<FONT 
face="Courier New" color=#6600aa>);<FONT face="Courier New" 
color=#000000>
Sell=<FONT 
face="Courier New" color=#000000>Low<FONT face="Courier New" 
color=#6600aa><LLV<FONT 
face="Courier New" color=#6600aa>(<FONT face="Courier New" 
color=#000000>Low,<FONT 
face="Courier New" color=#ff00ff>10<FONT face="Courier New" 
color=#6600aa>);
Short=<FONT 
face="Courier New" color=#000000>Low<FONT face="Courier New" 
color=#6600aa><LLV<FONT 
face="Courier New" color=#6600aa>(<FONT face="Courier New" 
color=#000000>Low,<FONT 
face="Courier New" color=#ff00ff>25<FONT face="Courier New" 
color=#6600aa>);
Cover=<FONT 
face="Courier New" color=#000000>High<FONT face="Courier New" 
color=#6600aa>>HHV<FONT 
face="Courier New" color=#6600aa>(<FONT face="Courier New" 
color=#000000>High<FONT face="Courier New" 
color=#6600aa>,10<FONT 
face="Courier New" color=#6600aa>);






Yahoo! Groups Sponsor


  ADVERTISEMENT  









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.