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

[amibroker] Re: Confused ...



PureBytes Links

Trading Reference Links

Thanks D - 

Is it possible to have 3 applystop commands in the AFL code? One 
that takes you out as an initial maxloss if the position goes bad 
from the start, one that trails and one that takes you out if the 
price reaches a profit target?

Andy

--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> The different values you see are:
>  
> Sell == 1   Sell generated by other than Applystop
> Sell == 2   Stopped out by max. loss
> Sell == 3   Stopped out by profit target
> Sell == 4   Stopped out by trailing stop
> 
> Have you run a backtest and seen and entry in the trade column 
like:
> "Short (max loss)"?
>  
> The max loss is there because AB detected a 2 in the Sell array.
>  
> d
> 
> -----Original Message-----
> From: Andrew Smith [mailto:andy_kovacs@x...] 
> Sent: Friday, May 09, 2003 11:33 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Confused ...
> 
> 
> Hi folks - 
>  
> I found this code in the help file: Plot(Sell==4,"ApplyStop
> Sell",colorRed,1|styleOwnScale);
>  
> I thought buy/sell/cover/short could only have 0 or 1 values. I 
assume
> if sell can have value 4 cover can too, and also 2 and 3 ... what 
do
> these values mean? I assume 1 is a trading system defined stop, 4 
must
> me applystop ... but 2 and 3?
>  
> 
> Thanks
>  
> Andy
> 
> 
> Yahoo! Groups Sponsor	
>  
> 
<http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1
705
> 632198:HM/A=1564416/R=0/*http://www.netflix.com/Default?
mqso=60164797&pa
> rtid=3170658> 	
>  
> <http://us.adserver.yahoo.com/l?
M=251812.3170658.4537139.1261774/D=egrou
> pmail/S=:HM/A=1564416/rand=243872133> 	
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
> <http://docs.yahoo.com/info/terms/> .


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/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/