Need Help in This :-
The expert mentioned below created by me and my friend Onkar for Metastock. we want to make it perfect .
please look in to it .. and any suggestion and modification for the same will be helpful to all users and beginner.
please also suggest back testing for same after modification that will be helpful to me .
Code :-
SP BUY
d:=If(PDI(10)>MDI(10),If(Cross( Stoch(8,3),40),Min(L,Ref(L,-1)),If(MDI(10)>PDI(10),If(Cross( 60,Stoch(8,3)),Max(H,Ref(H,-1)),PREV),PREV)),PREV);
a:=Cross(C,d);
b:=Cross(d,C);
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1)
-------------------------------------------------------
SP SELL
d:=If(PDI(10)>MDI(10),If(Cross( Stoch(8,3),40),Min(L,Ref(L,-1)),If(MDI(10)>PDI(10),If(Cross( 60,Stoch(8,3)),Max(H,Ref(H,-1)),PREV),PREV)),PREV);
a:=Cross(C,d);
b:=Cross(d,C);
state:=If(BarsSince(a)<BarsSince(b),1,0);
state<Ref(state,-1)
--------------------------------------------------------------------
Regards
Manoj
Get Rich Slowly and Quietly