|
Convert From VT To MT4
hello
I am trying to convert from VT to MT4
Have I done this correctly?
MT4
if (h>h1 && l>=l1 && h-l>h1-l1 && c==h-l*0.5+l && c>c+1 && h>=h+1 && v<v1 && v<v2 && NoDemand2)Order = NoDemand4;
if (l<l1 && h<=h1 && h-l>h1-l1 && c==h-l*0.5+l && c<c+1 && l>=l+1 && v<v1 && v<v2 && NoSupply2)Order = NoSupply4;
VT
NoDemand4:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>ref((H-L),-1) and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and NoDemand2=0,1,0);
NoSupply4:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>ref((H-L),-1) and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and NoSupply2=0,1,0);
Cheers
Beno
|