以下是同花顺四色谱公式

同花顺四色谱公式

M3:MA(CLOSE,3),colorred,LINETHICK;

M13:MA(CLOSE,13),colorred,LINETHICK;

M34:MA(CLOSE,34),colorred,LINETHICK;

X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));

IF(M34<REF(M34,1),M34,DRAWNULL),colorgreen,LINETHICK;

STICKLINE(M3>=M13 AND M34>=REF(M34,1) ,H ,L ,0.1 ,0 ),colorred;

STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),colorred;

STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,0 ),colorred;

STICKLINE(M3<M13 AND M34>=REF(M34,1) ,H ,L ,0.1 ,0 ),coloryellow;

STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),coloryellow;

STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,0 ),coloryellow;

STICKLINE(M3<M13 AND M34<REF(M34,1) ,H ,L ,0.1 ,0 ),colorgreen;

STICKLINE(M3<M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),colorgreen;

STICKLINE(M3<M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,0 ),colorgreen;

STICKLINE(M3>=M13 AND M34<REF(M34,1) ,H ,L ,0.1 ,0 ),colormagenta;

STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,1 ),colormagenta;

STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,0 ),colormagenta;

{DRAWTEXT(X,MA(C,120)-0.13,’牛股‘),colorred,LINETHICK3;};
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。