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

[EquisMetaStock Group] Re: Chaos Fractal Indicator



PureBytes Links

Trading Reference Links


We could remove the forward referencing:

---8<----------------

{ Periodicity doesn't change plot at all }
pds:=Input("Smoothing periods",1,252,100);

{ 2-bar forward referencing removed }
High1:=Ref(H,-4);
High2:=Ref(H,-3);
High3:=Ref(H,-2);
High4:=Ref(H,-1);
High5:=H;

Low1:=Ref(L,-4);
Low2:=Ref(L,-3);
Low3:=Ref(L,-2);
Low4:=Ref(L,-1);
Low5:=L;

UpFR:=High3+Mov((H-L)/3,pds,S);
LoFR:=Low3-Mov((H-L)/3,pds,S);

{ Generator & Paint Fractal }
FR:=If((High3>High1)
 AND (High3>High2)
 AND (High3>=High4)
 AND (High3>=High5),
 UpFR,0);

FR:=If((Low3<Low1)
 AND (Low3<Low2)
 AND (Low3<=Low4)
 AND (Low3<=Low5),
 If(FR =UpFR,0,LoFR),FR);

{ Generator level }
UpFR:=If(FR=UpFR,High3,PREV);
LoFR:=If(FR=LoFr,Low3,PREV);

{ Paint level }
UPLevel:=Ref(UpFR,-1);
LOLevel:=Ref(LoFR,-1);

{ Plot on price chart }
uplevel;lolevel

---8<----------------


Regards,
jose


--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
> 
> Here's the code...but it is somewhat useless due to the forward 
> references [ref(low,1) etc.] that it uses.
> 
> Preston 
> 
> 
> 
> High1 := Ref(HIGH,-2); High2 := Ref(HIGH,-1); 
> High3 := Ref(HIGH,0); High4 := Ref(HIGH,1); 
> High5 := Ref(HIGH,2); 
> 
> Low1 := Ref(LOW,-2);Low2 := Ref(LOW,-1); 
> Low3 := Ref(LOW,0); Low4 := Ref(LOW,1); 
> Low5 := Ref(LOW,2); 
> 
> UpFR:= high3 + Mov((HIGH-LOW)/3,100,S); 
> LoFR:= Low3 - Mov((HIGH-LOW)/3,100,S);
> 
> {Generator & Paint FRACTAL}
> FR:= If((High3 > High1) AND (High3 > High2)
> AND (High3 >= High4)
> AND (High3 >= High5), UpFR, 0);
> 
> FR:= If((Low3 < Low1) AND (Low3 < Low2) 
> AND (Low3 <= Low4)AND (Low3 <= Low5), 
> If(FR = UpFR, 0 , LoFR), FR);
> 
> {generator LEVEL}
> UPFR:= If( FR = UpFR, High3, PREV);
> LoFR:= If( FR = LoFr, Low3, PREV);
> 
> {Paint LEVEL}
> UPLevel:= Ref(UPFR, -1);
> LOLevel:= Ref(LoFR, -1);
> uplevel;lolevel 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "mrtraderx" <mrtraderx@xxxx> 
> wrote:
> > 
> > 
> > Can someone post the code to this indicator?
> > 
> > here is the code in Visual Trading language:
> > 
> >  High1 := Ref(HIGH,-2); High2 := Ref(HIGH,-1); 
> >   High3 := Ref(HIGH,0); High4 := Ref(HIGH,1);  
> >   High5 := Ref(HIGH,2);  
> > 
> >   Low1 := Ref(LOW,-2);Low2 := Ref(LOW,-1);   
> >   Low3 := Ref(LOW,0); Low4 := Ref(LOW,1);    
> >   Low5 := Ref(LOW,2);    
> > 
> >   UpFR:= high3 + mov((high-low)/3,100,S); 
> >   LoFR:= Low3 - mov((high-low)/3,100,S);
> > 
> >  {Generator & Paint FRACTAL}
> >   FR:= If((High3 > High1) AND (High3 > High2)
> >   AND (High3 >= High4)
> >   AND (High3 >= High5), UpFR, null);
> > 
> >   FR:= If((Low3 < Low1) AND (Low3 < Low2)             
> >   AND (Low3 <= Low4)AND (Low3 <= Low5),            
> >   If(FR = UpFR, null , LoFR), FR);
> > 
> >   {generator LEVEL}
> >   UP_FR:= If( FR = UpFR, High3, PREV);
> >   Lo_FR:= If( FR = LoFr, Low3, PREV);
> >   
> >   {Paint LEVEL}
> >   UPLevel:= REF (UP_FR, -1);
> >   LOLevel:= REF (Lo_FR, -1);





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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/