[amibroker] MetaStock language to AFL

2010-05-05 Thread Vinay Gakkhar.
Can senior members please translate for me the following from MetaStock language to the AFL ?I want to have the enter & exit arrows also.Thank you.vgakkharWriteIf(F1:=ValueWhen(1,HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));a:=Cross(H,F1);b:=Cross

[amibroker] MetaStock language to AFL

2010-05-05 Thread Vinay Gakkhar.
Can senior members please translate for me the following from MetaStock language to the AFL ?I want to have the enter & exit arrows also.Thank you.vgakkharWriteIf(F1:=ValueWhen(1,HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));a:=Cross(H,F1);b:=Cross

[amibroker] MetaStock language to AFL

2010-05-07 Thread Vinay Gakkhar.
Can senior members please translate for me the following from MetaStock language to the AFL ?I want to have the entry & exit arrows also.Thank you.vgakkharWriteIf(F1:=ValueWhen(1,HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));a:=Cross(H,F1);b:=Cross

[amibroker] MetaStock language to AFL

2010-06-03 Thread Vinay Gakkhar
Can senior members please translate for me the following from MetaStock language to the AFL ?I want to have the enter & exit arrows also.Thank you.vgakkharWriteIf(F1:=ValueWhen(1,HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));a:=Cross(H,F1);b:=Cross

[amibroker] MetaStock language to AFL

2010-06-03 Thread Vinay Gakkhar.
Can senior members please translate for me the following from MetaStock language to the AFL ?I want to have the enter & exit arrows also.Thank you.vgakkharWriteIf(F1:=ValueWhen(1,HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2));a:=Cross(H,F1);b:=Cross

Re: [amibroker] MetaStock language to AFL

2010-05-06 Thread Mubashar Virk
It is very simple. / F1=ValueWhen(HRef(L,-2) AND Ref(L,-1)>Ref(L,-2) AND Ref(L,-3)>Ref(L,-2) AND Ref(L,-4)>Ref(L,-2),Ref(L,-2),1); a=Cross(H,F1); b=Cross(F2,L); state=IIf(BarsSince(a)Ref(state,-1); Sell = state Can senior members please translate for me the