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

Re: [amibroker] Oddity with ApplyStop



PureBytes Links

Trading Reference Links

Owen,

It was exaplained in the past, by specifying price you don't specify the timing.

Timing of stops is specified by settings "ActivateStopsImmediatelly"
setting. And there are few supported 'scenarios'.

Everythign is described crearly in the docs.

Please read them:
http://www.amibroker.com/f?applystop

Read very carefully four "Scenarios" described there.
This is what is supported.

If you are entering on close and exiting on next day open there
is completely no sense in setting up ANY stop 
(if you are trading regular hours only).


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Owen Davies" <owen5819@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, December 17, 2004 6:06 PM
Subject: [amibroker] Oddity with ApplyStop


> 
> I've been experimenting with exits and have encountered something I may 
> not understand. As a reference for evaluating other exits, I told 
> Automatic Analysis to close trades on the following open:  
> Sell=Ref(Buy,-1); SellPrice=O; and the obvious equivalent for Short 
> trades.  I did this after experimenting with another exit and 
> inadvertently left a profit-taking stop in place:  
> ApplyStop(1,2,N*TickSize);  The odd thing is that, even when entering on 
> the close of one bar and exiting on the next open, the N in the 
> ApplyStop function changes the trading results.  If this file included 
> after-hours data, I'd assume the stop was reacting to it, but that is 
> not the case.
> 
> The only explanation I can think of is that ApplyStop is incompatible 
> with any exit other than on the close.  It is ignoring the Exit-on-Open 
> and finding its profit later in the day.  Thus, only the days that never 
> offer a profit of N*TickSize are being closed correctly, and my trading 
> results are garbage.  And the same thing happens in "real" exits that 
> are supposed to exit on the Open if the trade has gone on too long 
> without either taking a profit or being closed at a loss.
> 
> Does this make sense to anyone?  And is my only recourse to write my own 
> exits using loops?
> 
> Thanks.
> 
> Owen Davies
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/