PureBytes Links
Trading Reference Links
|
Hello,
The following code, which is part of a script, works
well with all AA options.
//Trade Rules
Buy = <FONT
size=2>Cross<FONT
face=Arial>(H,LongBasePrice) <FONT
face=Arial>AND<FONT
size=2>
Cross(H,
UpBand)
AND<FONT
face=Arial>
(LongBasePeriod >=
LX-1<FONT
face=Arial>);
Sell = 0<FONT
face=Courier size=2>;
ApplyStop<FONT
face=Arial>(stopTypeTrailing,
<FONT
face=Arial>
stopModePoint,
<FONT
face=Arial>
TrailStop,
<FONT
face=Arial>
True,
<FONT
face=Arial>
True);
The following code segment works in scan and exploration,
but not optimize or backtest.<FONT face=Courier color=#008000
size=2>
//Trade Rules<FONT
face=Courier size=2>
Short = <FONT
face=Arial>Cross<FONT
face=Arial>(ShortBasePrice,L) <FONT
face=Arial>AND<FONT
face=Arial>
<FONT
face=Arial>
Cross<FONT
face=Arial>(DownBand,L)
AND<FONT
face=Arial>
<FONT
face=Arial>
(ShortBasePeriod >= LX-1<FONT
face=Courier size=2>);
Cover = <FONT face=Arial
size=2>0;
ApplyStop<FONT
face=Courier size=2>(stopTypeTrailing,
<FONT
face=Arial>
stopModePoint,
<FONT
face=Arial>
TrailStop,
<FONT
face=Arial>
True,
<FONT
face=Arial>
True);
What am I missing?
Regards,
Tony
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|