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

Re: [EquisMetaStock Group] Re: Trailing Stop - ATR - TradeSim



PureBytes Links

Trading Reference Links

Does this require data in MetaStock format, or what data is need for TradeSim?

rich

At 03:38 AM 4/12/2004 +0000, you wrote:
>TradeSim.dll is available from
>http://www.compuvision.com.au/index.htm
>by personal request.
>
>jose '-)
>
>
>--- In equismetastock@xxxxxxxxxxxxxxx, "Alfred Bendig" <alfred190@xxxx
> > wrote:
> > Hey,
> >
> > if I use this formula from
> >
> > users.bigpond.com
> >
> > {Triggers: Long (+1) & Short (-1) signals at
> > crossover of user-defined trailing stops}
> > {x23 faster than MetaStock's 4-PREV version}
> > {TradeSim.dll must be in
> > ...\MetaStock\External Function DLLs\ folder}
> > {©Copyright 2003 Jose Silva}
> > {josesilva22@xxxx}
> >
> > pds:=Input("ATR periods",1,252,10);
> > multi:=Input("ATR multiplier",0,10,2.5);
> > plot:=Input("plot:  trailing stop=1,  Long+Short=2,  signals=3",1,3,
>1);
> > adv:=Input("plot:  today's trailing stop=0,  tomorrow's stop=1",0,1,
>0);
> > delay:=Input("Entry and Exit signal delay",
> > 0,5,0);
> >
> > stopLong:=ExtFml("TradeSim.TrailingStop",
> > BAND,LONG,multi*ATR(pds),C,C);
> >
> > stopShort:=ExtFml("TradeSim.TrailingStop",
> > BAND,SHORT,multi*ATR(pds),C,C);
> >
> > In:=Cross(C,Ref(stopShort,-1));
> > Out:=Cross(Ref(stopLong,-1),C);
> > Init:=Cum(In+Out>-1)=1;
> > InInit:=Cum(In)=1;
> > flag:=BarsSince(Init OR In)
> > < BarsSince(Init OR Out)+InInit;
> > signals:=Ref((InInit AND Alert(InInit=0,2)
> > OR flag AND Alert(flag=0,2))
> > +(flag=0 AND Alert(flag,2))*-1,-delay);
> > stop:=Ref(If(flag=1,stopLong,stopShort),-1+adv);
> >
> > If(plot=1,stop,
> > If(plot=2,Ref(stopLong,-1+adv),0));
> > If(plot=1,stop,
> > If(plot=2,Ref(stopShort,-1+adv),signals))
> >
> > I got an error like:
> >
> > ExtFml("TradeSim.TrailingStop"
> > This DLL does not exist in the MSX DLL folder.
> >
> > Where I can get it?
> > regards
> > alfred
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

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

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

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