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

Re: [amibroker] Help with ApplyStop



PureBytes Links

Trading Reference Links

Possibly 
	AA->Settings->General->Positions 

is set to "Long", not "Long and Short"

-- 
	Nigel


On Tue, 1 Apr 2003 11:02 am, Tony/Dianne wrote:
> Hello,
> The following code,  which is part of a script, works well with all AA
> options. //Trade Rules
> Buy = Cross(H,LongBasePrice)  AND
>           Cross(H, UpBand)           AND
>           (LongBasePeriod >= LX-1);
> Sell = 0;
> ApplyStop(stopTypeTrailing,
>                 stopModePoint,
>                 TrailStop,
>                 True,
>                 True);
>
>
> The following code segment works in scan and exploration, but not optimize
> or backtest. //Trade Rules
> Short = Cross(ShortBasePrice,L)   AND
>              Cross(DownBand,L)          AND
>              (ShortBasePeriod >= LX-1);
> Cover = 0;
> ApplyStop(stopTypeTrailing,
>                  stopModePoint,
>                 TrailStop,
>                 True,
>                 True);
>
> What am I missing?
>
> Regards,
>
> Tony


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/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/