生命线兰顶二炮权拳主图指标公式[同花顺公式]
相关标签:
原理解析:
源码:
ED1:=(-2*REF(C,2)+REF(C,1)+2*C);
ED2:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C);
ED3:=(-0.8*REF(C,4)-0.8*REF(C,3)-0.2*REF(C,2)+0.8*REF(C,1)+2*C);
JF1:=SMA(SMA(ED1,3,1),3,1);
JF2:=SMA(SMA(ED2,4,1),3,1);
JF3:=SMA(SMA(ED3,4,1),4,1);
生命线:EMA(JF1,18,2),LINETHICK1,Color3375FF;
牛熊线:EMA(JF2,40,2),LINETHICK1,Color0000D9;
STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),Color9933FF;
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),ColorFFFFFF;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,12,0),ColorACACAC;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0),ColorBEBEBE;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),ColorD9D9D9;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0),ColorFFFFFF;//白
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,12,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0 ),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0 ),COLOR0033FF;//红
黄底:=(SMA(HIGH,19,2) * 1.06);
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,12,0),ColorB5005A;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,10,0),ColorD9006C;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,8,0),ColorF9007C;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),ColorFF208F;//紫
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0.8,0),Color33FFFF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 黄底)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0.8,0),ColorFF208F;
F:=100*(C-REF(C,1))/REF(C,1);
p1:=IF(C<REF(O,1) AND f<0,1,0);
p2:=IF(C<REF(O,2) AND f<0,1,0);
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,12,0),Color00B7B7;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,10,0),Color00D5D5;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,8,0),Color00FBFB;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,4,0),Color33FFFF;//黄进STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1
攻击线:=SMA(二炮,4,2),colorred,LINETHICK2;
PARTLINE(攻击线,攻击线>REF(攻击线,1),RGB(210,0,105),攻击线<=REF(攻击线,1),RGB(30,250,30)),LINETHICK2;
GJZX:=(H+L+2*C)/4;
blx1:=FORCAST(GJZX,18)-FORCAST(GJZX,4);
blx2:=FORCAST(GJZX,4)-blx1*2;
波浪线:=MA(SLOPE(blx2,3)*0.5+blx2,3),colormagenta;
PARTLINE(波浪线,波浪线>REF(波浪线,1),RGB(250,30,250),波浪线<=REF(波浪线,1),RGB(0,114,227)),LINETHICK2;
VAR1:=4*SMA((CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100,4,1)-
3*SMA(SMA((CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100,4,1),3.2,1);
VAR2:=7;
CC:=CROSS(VAR1,VAR2);
DRAWTEXT(CC,L*0.98,''),Color00FFFF;
卖出:=CROSS(72,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);
DRAWTEXT(卖出,H*1.10,'◆'),ColorFFFFFF;
BDGD:=CROSS(0.8,H=HHV(H,6));
GDSJ:=BARSLAST(BDGD)+1;
波峰:=REF(H,GDSJ),Color1EFF1E;
BDDD:=CROSS(0.8,L=LLV(L,6));
DDSJ:=BARSLAST(BDDD)+1;
波谷:=REF(L,DDSJ),Color7400E8;
STICKLINE(GDSJ<=8,波峰,波峰,8,0),ColorFFFF11,LINETHICK02;
STICKLINE(DDSJ<=8,波谷,波谷,8,0),Color3375FF,LINETHICK02;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容