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

[EquisMetaStock Group] Re: Reverse Val



PureBytes Links

Trading Reference Links

Sath,

Make these changes.

end:=TroughBars( 1,C,5)=0;
start:=PeakBars( 1,C,5)=0;

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, -sAThya- <prassathya@xxx> 
wrote:
>
> Preston,
> this code just for my research only ,, and as you suggestion i will 
not used for trading.
> anyway... i ve tried to change the variabel but still got error,
> i just rechange the position the variabe as seen
> start:=(flag=2)*(Alert(flag,0) OR end*Cum(end)=1);
> end  :=flag*(Alert(flag=0,2) OR start*Cum(start)=1);
> its working but , when the price going up the signal become flat 
not 0
> pls kindly fix it up the error coding.
> Rgds
> SATH
> 
> 
> ----- Original Message ----
> From: pumrysh <no_reply@xxxxxxxxxxxxxxx>
> To: equismetastock@xxxxxxxxxxxxxxx
> Sent: Monday, July 28, 2008 10:43:30 AM
> Subject: [EquisMetaStock Group] Re: Reverse Val
> 
> 
> Sath,
> 
> The code uses Peak and Trough.
> 
> These are dynamic... meaning that the values are not consistent. 
They 
> are not reliable and should not be used in trading!
> 
> To show the reverse simply change the start and end variables.
> 
> Preston
> 
> --- In equismetastock@ yahoogroups. com, -sAThya- <prassathya@ ...> 
> wrote:
> >
> > hi Preston
> > how to make reverse style of this code below ,
> > its given a signal acc value when the price rising and if the 
> price going down its just give "0" signal
> > i would like to change to be when the price going up the 
signal "0" 
> and when the price going down its given the dist value as show an 
> indicator. it just reverse of what is code run as usual.
> > start:=TroughBars( 1,C,5)=0;
> > end:=PeakBars( 1,C,5)=0;
> > init:=Cum(IsDefined (start+end) )=1;
> > flag:=ValueWhen( 1,start-end< >0 OR init,start);
> > start:=flag* (Alert(flag= 0,2) OR start*Cum(start) =1);
> > end:=(flag=0) *(Alert(flag, 2) OR end*Cum(end) =1);
> > value:=V;
> > acc:=Cum(flag* value);
> > accVal:=acc- ValueWhen( 1,end,acc) ;
> > accVal;
> > start-end;
> > Rgds
> > SATH
> >
>



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

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/