当前位置:首页 > 同花顺公式 > 内容

同花顺归真K线指标公式源码

作者:公式网   更新时间:2023-06-07   点击:
均线:=(MA(C,3)+MA(C,5)+MA(C,8)+MA(C,13)+MA(C,21))/5, colorliblue;
均线XMA:=(XMA(C,3)+XMA(C,5)+XMA(C,8)+XMA(C,13)+XMA(C,21))/5, colorliblue;
DIFF:=均线XMA*2-均线, colorred,nodraw;
DEA:均线,LINETHICK1,colorred;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,colorgreen,LINETHICK1;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,1.5,0),colorred;
STICKLINE(TJ,O,C,5,1),colorred;
STICKLINE(TJ1 AND TJ,H,L,1.5,0),colorred;
STICKLINE(TJ1 AND TJ,O,C,5,1),colorred;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,13);
VAR1:=REF(CLOSE,1)-REF(ATR,1);
多空分界:HHV(VAR1,21),LINETHICK1,colorliblue,nodraw;
STICKLINE(DIFF<=多空分界,H,L,1.5,0),COLORFFDE00;
STICKLINE(DIFF<=多空分界,O,C,5,1),COLORFFDE00;
DRAWTEXT(CROSS(DIFF,多空分界) ,DEA,'多'),colorred;
DRAWTEXT(CROSS(多空分界,DIFF) ,DIFF,'空'),colorblack;
PARTLINE(DEA,DEA>=REF(DEA,1),colormagenta,
DEA<REF(DEA,1),colorFFDE00),LINETHICK1;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(BU,OPEN,CLOSE,5,0),coloryellow;
STICKLINE(SEL,OPEN,CLOSE,5,0),colorblue;

 

资源下载

相关文章

热门推荐

移动端首页 | PC端

© by gszx.com.cn Mobile Web