check comments from TJ under 
http://www.amibroker.com/guide/afl/afl_view.php?name=ApplyStop

regards,

paolo

--- In [email protected], Radek Simcik <radek.sim...@...> wrote:
>
> ok,
> 
> Thank you, I think I understood now but one question is still unanswered:
> 
> What would happen if both happened during the day and my trailing stop is %4.
> -the price went up more than %4 and
> -low more than 4%.
> 
> It seems to me that I am going to experience gain every time although
> we cannot say for 100% what
> happened inside the bar.
> 
> Thank you,
> 
> Radek
> 
> On Fri, Mar 20, 2009 at 12:58 PM, Radek Simcik <radek.sim...@...> wrote:
> > Hi,
> >
> > could anybody explain to me how trailing stop works?  I have below
> > setting in my system ( I short on open and exit the same day on
> > close):
> >
> > ApplyStop(stopTypeTrailing,stopModePercent,4 ,1);
> > SetOption ("ActivateStopsImmediately", True);
> >
> > in that case it seems to me that stop starts to trail to protect my
> > gain only if the gain is more than 4%. I thought that the trade would
> > be exited if price fell more than 4% below low.
> >
> > What would happen if both happened during the day: the price went up
> > more than %4 and low more than 4%. It seems to me that I am going to
> > experience gain every time although we cannot say for 100% what
> > happened inside the bar.
> >
> > Could somebody explain me how ApplyStop(stopTypeTrailing,3,4 ,1);
> > work? It gave me just unbelievable results.
> >
> > Thank you,
> >
> > Radek
> >
>


Reply via email to