3 swings % $ Plot this indicator on top of the price chart. The last leg of each swing is dynamic. Per1:=Input("1st swing",1,50,5); Per2:=Input("2nd swing",2,50,9); Per3:=Input("3rd swing",3,50,15); D:=Input("Decimal point",.001,100.0,1.0); PD:= Input("1= % 2= $",1,2,1); A:= If( Rally(), HIGH, If( Reaction(), LOW, If( Outside(), If( Ref(Rally(),-1), HIGH, LOW ), If( Inside(), If( Ref(Rally(),-1), Ref(HIGH,-1)-0.001, Ref(LOW,-1)+0.001 ), P )))); S1:=If(PD=1,Zig(A,(Per1*D),%), Zig(A,(Per1*D),$)); S2:= If(PD=1,Zig(A,(Per2*D),%), Zig(A,(Per2*D),$)); S3:= If(PD=1,Zig(A,(Per3*D),%), Zig(A,(Per3*D),$)); S1; S2; S3;