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

[EquisMetaStock Group] Re: trailing stop



PureBytes Links

Trading Reference Links

I have exits by c<ref(LLV(c,20),-1) and no exit by trailing stops.


--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> Vahagn,
> 
> Are you getting any output or do you get an error message?
> 
> You must have the Power Pivots DLL.
> 
> I do not see an arguement for condition1.
> 
> Henry1224 on the Equis Forum may be able to help you more with this.
> 
> 
> Preston
> 
>  
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, Vahagn Kocharyan <vahag75@> 
> wrote:
> >
> > Help me, please. I'd like to program a trailing stop. It seems 
> everything is OK, but it does't work. What did I wrong? The code is  
> > 
> > PP:=Simulation.CurrentPositionProfit / 
> Simulation.CurrentPositionValue;
> > condition1:=  PP<0.1;
> > condition2:= (PP>= 0.1 and PP<0.3);
> > condition3:= (PP>= 0.3 and PP<0.5);
> > condition4:= (PP>= 0.5 and PP<0.7);
> > condition5:= (PP>= 0.7 and PP<0.9);
> > condition6:= PP>= 0.9;
> > c<ref(LLV(c,20),-1) or 
> > (if(condition6,
> >             PP<0.75,
> > if(condition5,
> >             PP<0.5,
> > if(condition4,
> >             PP<0.3,
> > if(condition3,
> >             PP<0.1,
> > if(condition2,
> >             PP<0.05,PP<-0.1))))))
> >
>



------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

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

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