Thank you both for your answer,
I found that this metastock code is actually pretty interesting, perhaps something
that move novicer can learn.
Just a one more question, I found explorer pretty nice to look at certain techical event at one eye for so many stocks. I wrote this code meaning in explorer it would simply plot +1 if Cross 14RIS30 has occured or +1 if Cross 70RSI14 has occured.
Could one tell me what´s wrong with this code - I received error message "column `A` expected", but help didn´t recognice or adviced this error more exact information.
Colunn A
a:=If Cross(RSI(14),30) AND Cross(70,RSI(14)) ,1,-1);
a;
I would not prefer to split buy&sell signal for 2 different columns (A and B),
is this possible at all ?
Exactly the same way as
Filter CoiB
ColumnB
filter CoiB
long>
{colB: Buy}
EL:=Cross(Stoch(14,1),20);
CL:=Cross(80,Stoch(14,1))
OR Stoch(14,1)<20;
ES:=Cross(80,Stoch(14,1));
CS:=Cross(Stoch(14,1),20)
OR Stoch(14,1)>80;
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL
AND PREV=1) OR (CS AND PREV=-1),0,PREV))));
State=1
AND Ref(State,-1)<1
short>
{colB: Sell} EL:=Cross(Stoch(14,1),20);
CL:=Cross(80,Stoch(14,1))
OR Stoch(14,1)<20;
ES:=Cross(80,Stoch(14,1));
CS:=Cross(Stoch(14,1),20)
OR Stoch(14,1)>80;
State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL
AND PREV=1) OR (CS AND PREV=-1),0,PREV))));
State=-1
AND Ref(State,-1)>-1