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

[amibroker] Re: ApplyStop values.



PureBytes Links

Trading Reference Links

Rick,

Don't you need a call to Equity(1) in there somewhere to update the
cover array with the stop information?

For #2, what "this" are you plotting - the ATR function or TrailStop?
TrailStop is delayed by a bar because of the Ref( ,-1).

GP


--- In amibroker@xxxxxxxxxxxxxxx, Rick Osborn <ricko@xxx> wrote:
>
> Anybody....
> 
> 
> --- ricko8294_98 <ricko@xxx> wrote:
> 
> > I am using the following Applystop code
> > 
> > ATRSet = Optimize("ATRset",40,10,70,5);
> > ATRMult = Optimize("AtrMult",4,2,8,1);
> > TrailStop = Ref(ATR(ATRSet ) * ATRMult ,-1);
> > ApplyStop(stopTypeTrailing, stopModePoint,
> > TrailStop, True, True); 
> > 
> > and want to print out on my chart when the stop
> > kicked in and what 
> > the stopped out price was using the If(cover ==4)...
> > construct.
> > 
> > 1.- Can anyone tell me what the stop value is
> > called? CoverPrice does 
> > not give the same answer that the Backtester gives.
> > 
> > 2.- Also, plotting this on the chart shows up one
> > day before the date 
> > shown in the backtester too.  Why is that?
> > 
> > Thanks to anyone for some clarification
> > 
> > Rick
> > 
> > 
> > 
> > 
> 
> 
> Rick Osborn
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/