[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Help on coding in Metastock



PureBytes Links

Trading Reference Links

Does anyone have any suggestions on how to simpify the following coding? Metastock seems not able to handle it with limited memory or buffer.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

Buf:=30;
L1:=14290;
L2:=14120;
L3:=14070;
L4:=13880;
L5:=13690;
L6:=13530;
L7:=13480;
L8:=13330;
L9:=13220;
L10:=13150;
L11:=12970;
L12:=12820;
L13:=12610;
L14:=12430;
L15:=12360;

If(Prev=-1 and Cross(REF(H,-1),L1+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L2+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L3+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L4+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L5+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L6+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L7+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L8+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L9+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L10+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L11+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L12+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L13+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L14+Buf),1,
If(Prev=-1 and Cross(REF(H,-1),L15+Buf),1,
If(Prev=1 and Cross(L1-Buf,L),-1,
If(Prev=1 and Cross(L2-Buf,L),-1,
If(Prev=1 and Cross(L3-Buf,L),-1,
If(Prev=1 and Cross(L4-Buf,L),-1,
If(Prev=1 and Cross(L5-Buf,L),-1,
If(Prev=1 and Cross(L6-Buf,L),-1,
If(Prev=1 and Cross(L7-Buf,L),-1,
If(Prev=1 and Cross(L8-Buf,L),-1,
If(Prev=1 and Cross(L9-Buf,L),-1,
If(Prev=1 and Cross(L10-Buf,L),-1,
If(Prev=1 and Cross(L11-Buf,L),-1,
If(Prev=1 and Cross(L12-Buf,L),-1,
If(Prev=1 and Cross(L13-Buf,L),-1,
If(Prev=1 and Cross(L14-Buf,L),-1,
If(Prev=1 and Cross(L15-Buf,L),-1,
PREV)))))))))))))));




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/