同花顺公式源码概况:

指标类别: 同花顺公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

同花顺变色k线指标公式

ma5:MA(CLOSE,5),ColorCCCCCC;

MA10:MA(CLOSE,10),Color00BBBB;

MA21:MA(CLOSE,21),Color00AA00;

MA30:MA(CLOSE,30),Color990099;

MA60:MA(CLOSE,60),Color000088;

MA120:MA(CLOSE,120),Color777700;

买线:=ZIG(3,10);

卖线:=MA(买线,3);

BU:=CROSS(买线,卖线);

SEL:=CROSS(卖线,买线);

DRAWTEXT(bu,L*0.99,'买'),linethick1,color00aaff;

DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;

DRAWTEXT(X09A.T0,L*0.99,'B'),linethick1,colorFFffff;

DRAWTEXT(X09A.T10,L*0.99,'B'),linethick1,color0000ff;

STICKLINE(买线=卖线,LOW,HIGH,0.1,0),color0000CC;

STICKLINE(买线=卖线,CLOSE,OPEN,7,0),color0000CC;

STICKLINE(买线卖线,CLOSE,OPEN,7,0),colorCCCC00;

STICKLINE(买线卖线,LOW,HIGH,0.1,0),colorCCCC00;

STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;

STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;

绿色: sma(close,2,1),colorgreen,linethick2;

var4:=(low+high+close)/3;

操作: ma(var4,5),linethick2,colorwhite;

拉升:hhv(操作,13),colorred,linethick1;

压力:hhv(操作,60),colorred;

买卖:llv(操作,13),linethick1,color00ff00;

底部支撑: llv(low,60)*1.02,color00ccff;

顶部: hhv(high,60)*0.98,colorffffcc;

stickline(操作ref(操作,1),操作,操作+0.018,5,0),coloryellow,linethick4;

stickline(拉升ref(拉升,1),拉升,拉升+0.018,5,0),coloryellow,linethick2;

stickline(拉升=ref(拉升,1),拉升,拉升,1,1),colorred;

stickline(买卖=ref(买卖,1),买卖,买卖,1,1),colorred;

stickline(买卖ref(买卖,1),买卖,买卖+0.028,4,1),colorf00ff0,linethick2;

stickline(顶部=ref(顶部,1),顶部,顶部,7,1),colorred;

stickline(压力=ref(压力,1),压力,压力,7,1),colorred;

stickline(底部支撑=ref(底部支撑,1),底部支撑,底部支撑,1,1),colorred;

{drawgbk(date900101,strip(rgb(0,150,130),rgb(0,0,0),0));}

买线:=ema(c,2);

卖线:=ema(slope(c,21)*20+c,42);

bu:=cross(买线,卖线);

sel:=cross(卖线,买线);

drawtext(bu,low,'b买'),colorred,linethick3;

drawtext(bu,low,' ̄'),color208fff,linethick3;

drawtext(sel,high,' ̄'),colorffff00,linethick3;

drawtext(sel,high,'s卖'),colormagenta,linethick3;

stickline(买线=卖线,low,high,0.1,1),colorred;

stickline(买线=卖线,close,open,8,1),colorred;

stickline(买线卖线,close,open,8,0),color00ff00;

stickline(买线卖线,low,high,0.1,1),color00ff00;

stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),colorffff00

image.png

 同花顺涨停k线变色公式

M21:MA(C,21),colorwhite;

M55:MA(C,55),coloryellow;

MA72:MA(CLOSE,72),ColorFFFfff,linethick1;

MA98:MA(CLOSE,98),Color00Ffff,linethicK1;

MA250:MA(CLOSE,250),Color00ff00,linethick1;

x1:=(C+L+H)/3;

x2:=EMA(x1,6);

x3:=EMA(x2,5);

STICKLINE(x2x3 AND CEMA(x1,13),LOW,HIGH,0.1,1),colorred;

STICKLINE(x2x3 AND CEMA(x1,13),CLOSE,OPEN,5,1),colorred;

STICKLINE(x2x3 AND CEMA(x1,13),LOW,HIGH,0.1,1),colorffff54;

STICKLINE(x2x3 AND CEMA(x1,13),CLOSE,OPEN,5,0),colorffff54;

gr1:=BARSLAST(BETWEEN(bias.bias2(6,13,24),0,5));

gr2:=EMA(x1,13)EMA(x1,21) AND

EMA(x1,21)EMA(x1,34) AND EMA(x1,13)REF(EMA(x1,13),1);

gr3:=COUNT(bias.bias2(6,13,24)10 AND H=HHV(H,gr1),gr1);

gr4:=H=HHV(H,gr1);

gr5:=macd.macd(12,26,9)REF(macd.macd(12,26,9),1);

gr6:=gr2 AND gr3 AND gr4;

gr7:=gr2 AND gr3 AND gr4 AND gr5;

gr8:=gr6 AND gr7;

LC := REF(CLOSE,1);

RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

换手:=100*V/CAPITAL;

bb13:=ATAN(EMA(x1,13)-REF(EMA(x1,13),1))*3.1416*10;

ema8:=EMA(C,8);

DRAWTEXT(FILTER(bb131 AND EMA(x1,13)REF(EMA(x1,8),1),10),

ema8,'45度上升'),colorwhite;

了结:EMA(EMA(EMA(HIGH,5),5),4)*1.15,colorgreen;

风险: EMA(EMA(EMA(HIGH,5),5),4)*1.1,colorblue;

回档: EMA(EMA(EMA(HIGH,5),5),4)*1.05,colorcyan;

平衡: EMA(EMA(EMA(HIGH,5),5),4),coloryellow;

反弹: EMA(EMA(EMA(HIGH,5),5),4)*0.95,colormagenta;

超跌: EMA(EMA(EMA(HIGH,5),5),4)*0.9,colorred;

HH:=HHV(HIGH,5);

LL:=LLV(LOW,5);

HH1:=BARSLAST((HH  REF(HH,1)));

LL1:=BARSLAST((LL  REF(LL,1)));

STICKLINE((HH1  LL1),CLOSE,OPEN,8,0),colorred;

STICKLINE((HH1  LL1),HIGH,LOW,0,0),colorred;

STICKLINE((HH1  LL1),CLOSE,OPEN,8,0),COLOR00FF00;

STICKLINE((HH1  LL1),HIGH,LOW,0,0),COLOR00FF00;

image.png

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