tp:=
Input("time periods",1,100,14);
Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp)
 
- Ok to close the Indicator Editor.
- New to open the Indicator Editor
 for a new indicator.
-  
tp:=
Input("time periods",1,100,14); Sum(Abs(L-Ref(H,-1)),tp)/ Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp)   - Ok to close the Indicator Editor.
- Ok to close Indicator Builder
   - Tools > the New
- Buy Order tab and enter the
 following formula.
 
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
bset:=cross(vip,vim);
cross(h,valuewhen(1,bset,h))
 
- Order Type to Limit or Stop Price and
 enter the following formula:
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
bset:=cross(vip,vim);
valuewhen(1,bset,h)
 
- Sell Order tab and enter
 the following formula.
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
sset:=cross(vim,vip);
cross(valuewhen(1,sset,L),L)
 
- Order Type to Limit or Stop Price and
 enter the following formula
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
sset:=cross(vim,vip);
valuewhen(1,sset,L)
 
- Sell Short Order tab and
 enter the following formula.
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
sset:=cross(vim,vip);
cross(valuewhen(1,sset,L),L)
 
- Order Type to Limit or Stop Price and
 enter the following formula:
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
sset:=cross(vim,vip);
valuewhen(1,sset,L)
 
- Buy to Cover Order tab and
 enter the following formula.
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
bset:=cross(vip,vim);
cross(h,valuewhen(1,bset,h))
 
- Order Type to Limit or Stop Price and
 enter the following formula
 
tp:= 14;
vip:=Sum(Abs(H-Ref(L,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
vim:=Sum(Abs(L-Ref(H,-1)),tp)/
Sum(Max(H,Ref(C,-1))-Min(L,Ref(C,-1)),tp);
bset:=cross(vip,vim);
valuewhen(1,bset,h)
 
- OK to close the system editor.
 
William Golson
MetaStock Support