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

[EquisMetaStock Group] Re: Chaos Fractal Indicator



PureBytes Links

Trading Reference Links


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 --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/