Avrei bisogno di un aiuto per tradurre questo indicatore di metastock
Grazie anticipatamente.
loss:=Input("Loss",0,1000,2);
If(
C=PREV,
PREV,
If(
((Ref(C,-1)<PREV)AND (C<PREV)),
Min(PREV,C*(1+loss/100)),
If(
(Ref(C,-1)>PREV) AND (C>PREV),
Max(PREV,C*(1-loss/100)),
If(
C>PREV,
C*(1-loss/100),
C*(1+loss/100)
)
)
)
)
Grazie anticipatamente.
loss:=Input("Loss",0,1000,2);
If(
C=PREV,
PREV,
If(
((Ref(C,-1)<PREV)AND (C<PREV)),
Min(PREV,C*(1+loss/100)),
If(
(Ref(C,-1)>PREV) AND (C>PREV),
Max(PREV,C*(1-loss/100)),
If(
C>PREV,
C*(1-loss/100),
C*(1+loss/100)
)
)
)
)