生命线操盘图主图指标公式[同花顺公式]
相关标签:同花顺分时主图指标 、 同花顺支撑主图指标 、 同花顺多空主图指标 、 同花顺expma主图指标 、 同花顺生命线主图指标 、 同花顺主图买卖指标 、 同花顺主图指标钻石 、 同花顺布林线主图指标 、 同花顺主图选股指标 、 同花顺主图源码公式 、 同花顺bs主图公式 、 同花顺主图波段公式 、 同花顺成交量主图公式 、 同花顺获利盘主图公式 、 同花顺神奇线主图指标 、
原理解析:
来源:程序化99( WWW.CXH99.COM )
源码:
VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,4) - CLOSE)) / (HHV(HIGH,4) - LLV(LOW,4))),21));
DRAWTEXT(CROSS(VAR1,MA(VAR2,4)),(LOW * 0.934),'B '),colorred;
DRAWTEXT(CROSS(MA(VAR2,4),VAR1),(HIGH * 1.085),'S '),colorgreen;
操作线:MA(CLOSE,7),LINETHICK1,coloryellow;
V1:=(CLOSE-LLV(LOW,44))/(HHV(HIGH,44)-LLV(LOW,44))*100;
V2:=SMA(V1,7,1);
V3:=SMA(V2,12,1);
V4:=CROSS(V3,V2);
V5:=V3>88 OR V2>88;
V6:=V4 AND V5;
V7:=REF(CLOSE,1);
V8:=SMA(MAX(CLOSE-V7,0),6,1)/SMA(ABS(CLOSE-V7),6,1)*100;
DRAWTEXT(CROSS(84,V8),HIGH*1.03,'▼ '), coloryellow;
V9:=SMA(MAX(CLOSE-V7,0),12,1)/SMA(ABS(CLOSE-V2),12,1)*100;
DRAWTEXT(CROSS(V9,20),LOW*0.98,'▲ '),colorgreen;
生命线:EMA(CLOSE,43),LINETHICK1,colorcyan;
黑马线: DMA(MA(CLOSE+REF(CLOSE,4)/CLOSE*0.098,69),VOL),LINETHICK1,COLORFF00FF;
走牛线: DMA(MA(CLOSE+REF(CLOSE,4)/CLOSE*0.098,143),VOL),LINETHICK1,colorred;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),Color00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),Color00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0 ),ColorA2A200;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),ColorBFBF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),ColorDDDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),ColorF7F700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),ColorFFFF0B;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),ColorFFFF26;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),ColorFFFF42;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0) ,Color0000A6;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,Color0000C4;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,Color0000E1;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,Color0000F0;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,Color0909FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,Color1717FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,Color3E3EFF;
var9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
varbQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
varcQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
vardQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
STICKLINE(vardQ,O,(O+C)/2,10,0),Color00A200;
STICKLINE(vardQ,O,(O+C)/2,8,0),Color00BF00;
STICKLINE(vardQ,O,(O+C)/2,5,0),Color00DD00;
STICKLINE(vardQ,O,(O+C)/2,4,0),Color00F200;
STICKLINE(vardQ,O,(O+C)/2,3,0),Color00FF00;
STICKLINE(vardQ,O,(O+C)/2,2,0),Color1EFF1E;
STICKLINE(vardQ,O,(O+C)/2,1,0),Color3EFF3E;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' WWW.CXH99.COM '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容