马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
通达信(潘)金莲怯步【千余指标精选之三】源码公式:
【说明】
源码是用来看的
附件是用来下的
原创是用来引的
喜欢是用来顶的
MA5:MA(C,5),COLORYELLOW;
MA10:MA(C,10),COLORFF00FF;
MA15:MA(C,15),COLOR00FF00;
MA30:MA(C,30),COLORFFCCCC;
B1:=REF(C,1);B2:=REF(C,2);
SS:=IF(C>REF(C,1)ANDREF(C,1)=REF(C,2),1,IF(CREF(C,1)ANDREF(C,1)=REF(C,2),-1,IF(CREF(C,2)ANDREF(C,2)REF(C,1),2,IF(CREF(C,2)ANDREF(C,2)REF(C,1),-2,0))));
SM:=IF(REF(SS,1)!=0,REF(SS,1),IF(REF(SS,2)!=0,REF(SS,2),IF(REF(SS,3)!=0,REF(SS,3),IF(REF(SS,5)!=0,REF(SS,5),IF(REF(SS,6)!=0,REF(SS,6),IF(REF(SS,7)!=0,REF(SS,7),0))))));
STICKLINE(SS=1ORSM=1ANDSS=0,B1,C,3,0),COLORRED;
STICKLINE(SS=-1ORSM=-1ANDSS=0,B1,C,3,0),COLORFFCC66;
STICKLINE(SS=2,B2,C,3,0),COLORRED;
STICKLINE(SS=-2,B2,C,3,0),COLORFFCC66;
STICKLINE((SS=-1ORSS=-2)ANDSM0,B2,B1,3,0),COLORRED;
STICKLINE((SS=1ORSS=2)ANDSM0,B2,B1,3,0),COLORFFCC66;
AA:=CLOSEREF(CLOSE,1)ANDREF(CLOSE,1)REF(CLOSE,2)ANDREF(CLOSE,1)REF(CLOSE,3)ANDIF(REF(CLOSE,3)REF(CLOSE,4),1,IF(REF(CLOSE,4)REF(CLOSE,5),REF(CLOSE,1)REF(CLOSE,4)OR(REF(CLOSE,2)REF(CLOSE,4)ANDREF(CLOSE,3)=REF(CLOSE,5)),IF(REF(CLOSE,5)REF(CLOSE,6),1,REF(CLOSE,6)REF(CLOSE,7))));
BB:=CLOSEREF(CLOSE,1)ANDREF(CLOSE,1)REF(CLOSE,2)ANDREF(CLOSE,1)REF(CLOSE,3)ANDIF(REF(CLOSE,3)REF(CLOSE,4),1,IF(REF(CLOSE,4)REF(CLOSE,5),REF(CLOSE,1)REF(CLOSE,4)OR(REF(CLOSE,2)REF(CLOSE,4)ANDREF(CLOSE,3)=REF(CLOSE,5)),IF(REF(CLOSE,5)REF(CLOSE,6),1,REF(CLOSE,6)REF(CLOSE,7))));
DRAWICON(AAANDCLOSEREF(OPEN,2),0.99*LOW,1);
DRAWICON(BBANDCLOSEREF(CLOSE,2),HIGH*1.01,2);
DRAWTEXT(AAANDCLOSEREF(OPEN,2),LOW*0.98,/红/),COLORYELLOW;
DRAWTEXT(BBANDCLOSEREF(CLOSE,2),HIGH*1.02,/绿/),COLOR00FF00;
|