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

ZIG Error



PureBytes Links

Trading Reference Links


I get an error on this MS formula- How canI change 
it?
 
Thanks in Advance,
Brian
 

perc = Input<FONT 
size=1>("Percent"<FONT 
size=1>,0.2,<FONT 
color=#ff00ff size=1>100,<FONT color=#ff00ff 
size=1>10);
Z = Zig<FONT 
size=1>(Close,perc,%);
Last = ValueWhen<FONT 
size=1>(1<FONT 
size=1>,(Z>Ref<FONT 
size=1>(Z,-1)AND 
Ref(Z,-<FONT 
color=#ff00ff size=1>1) < <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1)) OR (Z < <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1) AND <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1) > <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>2)), <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1));
pc = (Close-Last)*100<FONT 
size=1>/Last;
pc = abs(pc);
SD = (z>Ref<FONT 
size=1>(Z,-1)AND 
Ref(Z,-<FONT 
color=#ff00ff size=1>1) > <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>2)) OR (Z < <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1) AND <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>1) < <FONT color=#0000ff 
size=1>Ref(Z,-<FONT color=#ff00ff 
size=1>2));
res = If(pc>=perc , 1<FONT 
size=1>,0);
If(Alert(res,2) 
AND SD,1<FONT 
size=1>,res);