您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

量/价/时间=空间 涨势确立指标公式[其他软件公式]

相关标签:量价线里的偏移指标 、 量价有关的5个指标 、 成交量量价指标 、 真正的第三代量价突破指标 、

 

量/价/时间=空间

 

vARA:=100-90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
VARB:=100-90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
VARC:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),60);
DRAWTEXT(CROSS(VARB,MA(VARC,6)),LOW,'B '),PXDN8,color90FF;
STICKLINE(VARA>=VARB,LOW,HIGH,0.1,1),colorFF;
STICKLINE(VARA>=VARB,CLOSE,OPEN,9,1),color70084;
STICKLINE(VARA>=VARB,CLOSE,OPEN,8,0),colorA3;
STICKLINE(VARA>=VARB,CLOSE,OPEN,7,0),colorB7;
STICKLINE(VARA>=VARB,CLOSE,OPEN,6,0),colorCD;
STICKLINE(VARA>=VARB,CLOSE,OPEN,5,0),colorE9;
STICKLINE(VARA>=VARB,CLOSE,OPEN,3.5,0),color754E9;
STICKLINE(VARA>=VARB,CLOSE,OPEN,1.5,0),color76EF3;
STICKLINE(VARA<VARC,CLOSE,OPEN,9,0),colorFF5B00;
STICKLINE(VARA<VARC,CLOSE,OPEN,8,0),colorFF6C00;
STICKLINE(VARA<VARC,CLOSE,OPEN,7,0),colorFF7B00;
STICKLINE(VARA<VARC,CLOSE,OPEN,6,0),colorFF9C00;
STICKLINE(VARA<VARC,CLOSE,OPEN,5,0),colorFFBE00;
STICKLINE(VARA<VARC,CLOSE,OPEN,3.5,0),colorFFCC00;
STICKLINE(VARA<VARC,CLOSE,OPEN,1.5,0),colorFFFF00;
STICKLINE(VARA<VARC,LOW,HIGH,0.1,1),colorFFFF00;
STICKLINE(CROSS(VARA,VARB) OR CROSS(VARB,VARC),(CLOSE+OPEN)/2,OPEN,6,0),colorFFFF;
STICKLINE(CROSS(VARA,VARB) OR CROSS(VARB,VARC),(CLOSE+OPEN)/2,OPEN,3,0),colorFFFFFF;
A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;
PARTLINE(A1>REF(A1,1),A1),LINETHICK2,colorFFFF;
PARTLINE(A1<REF(A1,1),A1),LINETHICK2,colorFF0000;
量:IF(CLOSE>200,VOL/1000000,VOL/1),LINETHICK0;
换手率:VOL/CAPITAL*100,LINETHICK0,PRECISION2,colorFFFF00;
五日换手:SUM(换手率,5),LINETHICK0,PRECISION2,colorFFAADD;
十日换手:SUM(换手率,10),LINETHICK0,PRECISION2,colorFFAADD;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,1,2,'【换手率】:'+NUMTOSTR(换手率[SYSPARAM(1)],2)+'% '+'【五日换手】:'+NUMTOSTR(五日换手[SYSPARAM(1)],2)+'% '+'【十日换手】:'+NUMTOSTR(十日换手[SYSPARAM(1)],2)+'%'+' 当日成交量:'+NUMTOSTR(量[SYSPARAM(1)],0)+'手'),colorFF00;
GH:=SYSPARAM(4);
M:=(SYSPARAM(4)-SYSPARAM(5))/(SYSPARAM(3)-SYSPARAM(2));
DRAWSL(BARPOS=SYSPARAM(1),LOW,18.5*M/50,0,0),LINEDOT,colorFFFFFF;
DRAWSL(BARPOS=SYSPARAM(1),LOW,27.5*M/50,0,0),LINEDOT,colorFF00;
DRAWSL(BARPOS=SYSPARAM(1),LOW,38.5*M/50,0,0),LINEDOT,colorFFFFFF;
DRAWSL(BARPOS=SYSPARAM(1),LOW,55*M/50,0,0),color80FF;
DRAWSL(BARPOS=SYSPARAM(1),LOW,78*M/50,0,0),LINEDOT,colorFFFFFF;
DRAWSL(BARPOS=SYSPARAM(1),LOW,110*M/50,0,0),LINEDOT,colorFF00;
DRAWSL(BARPOS=SYSPARAM(1),LOW,165*M/50,0,0),LINEDOT,colorFFFFFF;
DRAWSL(BARPOS=SYSPARAM(1),LOW,220*M/50,0,0),LINEDOT,colorFFFF;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-18.5*M/50,0,0),LINEDOT,colorD9A3E0;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-27.5*M/50,0,0),LINEDOT,colorFFFF00;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-38.5*M/50,0,0),LINEDOT,colorD9A3E0;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-55*M/50,0,0),color80FF;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-78*M/50,0,0),LINEDOT,colorD9A3E0;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-110*M/50,0,0),LINEDOT,colorFFFF00;
DRAWSL(BARPOS=SYSPARAM(1),HIGH,-165*M/50,0,0),LINEDOT,colorD9A3E0;
FBARS:=SYSPARAM(0);
FF5:=BARSSINCE(CLOSE)=FBARS+4;
VERTLINE(FF5),POINTDOT,LINETHICK1,color999999;
DRAWNUMBER(FF5,SYSPARAM(5),5,0),PXUP50,color999999;
FF8:=BARSSINCE(CLOSE)=FBARS+6;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),7,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+11;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),12,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+17;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),18,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+30;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),31,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+27;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),28,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+41;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),42,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+48;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),49,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+56;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),57,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+64;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),65,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+84;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),85,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+91;
VERTLINE(FF8),POINTDOT,LINETHICK1,colorFF00FF;
DRAWNUMBER(FF8,SYSPARAM(5),92,0),PXUP50,colorD9A3E0;
FF8:=BARSSINCE(CLOSE)=FBARS+7;
VERTLINE(FF8),POINTDOT,LINETHICK1,color998888;
DRAWNUMBER(FF8,SYSPARAM(5),8,0),PXUP50,color998888;
FF13:=BARSSINCE(CLOSE)=FBARS+12;
VERTLINE(FF13),POINTDOT,LINETHICK1,color998888;
DRAWNUMBER(FF13,SYSPARAM(5),13,0),PXUP50,color998888;
FF21:=BARSSINCE(CLOSE)=FBARS+20;
VERTLINE(FF21),POINTDOT,LINETHICK1,color998888;
DRAWNUMBER(FF21,SYSPARAM(5),21,0),PXUP50,color998888;
FF34:=BARSSINCE(CLOSE)=FBARS+33;
VERTLINE(FF34),POINTDOT,LINETHICK1,color999999;
DRAWNUMBER(FF34,SYSPARAM(5),34,0),PXUP50,color999999;
FF55:=BARSSINCE(CLOSE)=FBARS+54;
VERTLINE(FF55),POINTDOT,LINETHICK1,color999999;
DRAWNUMBER(FF55,SYSPARAM(5),55,0),PXUP50,color999999;
FF89:=BARSSINCE(CLOSE)=FBARS+88;
VERTLINE(FF89),POINTDOT,LINETHICK1,color999999;
DRAWNUMBER(FF89,SYSPARAM(5),89,0),PXUP50,color999999;
FF144:=BARSSINCE(CLOSE)=FBARS+143;
VERTLINE(FF144),POINTDOT,LINETHICK1,color999999;
DRAWNUMBER(FF144,SYSPARAM(5),144,0),PXUP50,color999999;
AJ:=DATEDIFF(DATE,CURRENTDATE);
B:=DATACOUNT-BARPOS+0;
TT:=BARPOS=SYSPARAM(3);
N1:=SYSPARAM(3);
NA:=N1-SYSPARAM(2)+1;
HH:=HHV(HIGH,NA);
LL:=LLV(LOW,NA);
GG:HH[N1],colorFF00FF;
DD:LL[N1],colorFF0000;
DRAWTEXT(ISLASTBAR=1,DD,'最低'+NUMTOSTR(DD,2)),ALIGN2,PXUP25,colorFFFF00;
DRAWTEXT(ISLASTBAR=1,GG,' 最高'+NUMTOSTR(GG,2)),ALIGN2,PXDN5,colorFF33FF;
LLL:=LOW;
HHH:=HIGH-(HIGH-LOW)*0.1;
ZH:=REF(HIGH,1);
ZHH:=HIGH;
XZ:=DYNAINFO(7);
XX:=DYNAINFO(5);
YY:=DYNAINFO(6);
SZ:=XZ-LLL;
ZZ:=SZ/LLL*100;
GSZ:=XX-LLL;
GZZ:=GSZ/LLL*100;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,2,201,'【低点/当前高幅度'+'/当前幅度】:('+NUMTOSTR(LLL[SYSPARAM(1)],2)+' 元 )('+NUMTOSTR(GZZ[SYSPARAM(1)],2)+'%) '+'('+NUMTOSTR(ZZ[SYSPARAM(1)],2)+'%) '),LINETHICK0,colorEEEEEE;
ZGF1:=ZHH*0.9;
ZGF2:=ZHH*0.88;
ZGF3:=ZHH*0.8;
ZGF4:=ZHH*0.75;
ZGF5:=ZHH*0.67;
ZGF6:=ZHH*0.63;
ZGF7:=ZHH*0.55;
ZGF8:=ZHH*0.5;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,1,16,'【光标高位定点】:['+'支撑价位↑]'),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,30,'回调一区间↑:'+NUMTOSTR(ZGF1[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGF2[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,42,'回调二区间↑:'+NUMTOSTR(ZGF3[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGF4[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,54,'回调三区间↑:'+NUMTOSTR(ZGF5[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGF6[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,66,'回调四区间↑:'+NUMTOSTR(ZGF7[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGF8[SYSPARAM(1)],2)+''),colorFFFFFF;
LL2:=(HIGH-LOW)*0.15+LOW;
ZL:=REF(LOW,1);
ZLL:=(LOW+ZL)/2;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,2,176,'【起动点价】'+' ('+NUMTOSTR(ZLL[SYSPARAM(1)],2)+') '),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,150,176,'【回调点价】'+' ('+NUMTOSTR(ZHH[SYSPARAM(1)],2)+') '),colorFFFFFF;
ZGFB1:=ZLL*1.1;
ZGFB2:=ZLL*1.12;
ZGFB3:=ZLL*1.2;
ZGFB4:=ZLL*1.25;
ZGFBD:=ZLL*1.18;
ZGFBD1:=ZLL*1.21;
ZGFB5:=ZLL*1.33;
ZGFB6:=ZLL*1.37;
ZGFB7:=ZLL*1.45;
ZGFB8:=ZLL*1.5;
ZGFB9:=ZLL*1.62;
ZGFB10:=ZLL*1.67;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,2,80,'【光标低位定点】:['+'压力价位↓]'),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,1,104,'可能出现短期逆转↓'+NUMTOSTR(ZGFBD[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFBD1[SYSPARAM(1)],2)+''),colorD9A3E0;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,92,'压力一区间↓:'+NUMTOSTR(ZGFB1[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGFB2[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,116,'压力二区间↓:'+NUMTOSTR(ZGFB3[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGFB4[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,128,'压力三区间↓:'+NUMTOSTR(ZGFB5[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGFB6[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,140,'压力四区间↓:'+NUMTOSTR(ZGFB7[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGFB8[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,152,'压力五区间↓:'+NUMTOSTR(ZGFB9[SYSPARAM(1)],2)+'--'+'--'+NUMTOSTR(ZGFB10[SYSPARAM(1)],2)+''),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,2,189,'【交易日】:'+NUMTOSTR(B[SYSPARAM(1)],0)+'(天) '+'【自然日】:'+NUMTOSTR(AJ[SYSPARAM(1)],0)+'(天) '),colorFF00;
FD:=GG-DD;
FDD:=FD/DD*100;
FDDD:=FD/GG*100;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,2,164,'【最低/最高幅度】:('+NUMTOSTR(FDD,2)+' % )'+'【最高/最低幅度】:(-'+NUMTOSTR(FDDD,2)+' % )'),colorFFFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,190,16,'【代码:'+STKLABEL+' 名称:'+STKNAME+'】'),LINETHICK1,colorFFFF;
做中短线波段,可结合。量,价,时间,判断空间,
根据空间的位置【价格的区间】进行买卖。使用方法:用光标找出近期的高点或低点看看某一区间的支撑或压力【区间的价格】根据【量】【MACD】和【时间周期】灵活应用。公式中有角度线和周期线根据自己的喜好来使吧涨势确立源码
VAR1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR2:=SMA(VAR1,M1,1);
VAR3:=SMA(VAR2,M2,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=(REF(HIGH,15)-CLOSE)/LOW>0.38;
VAR6:=AMOUNT/VOL;
VAR7:=LOW<VAR6*0.9;
VAR8:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
VAR9:=LOW<MA(CLOSE,5)*0.921;
VAR10:=VOL<MA(VOL,5)*1.5;
VAR11:=VAR7 AND VAR8 AND VAR9 AND VAR10;
XDKX1518:STICKLINE(VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),0,1,2,0),LINETHICK2,colorFFFF;
九九零八一:STICKLINE(VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),0,1,2,0),LINETHICK2,colorFFFF;
COM:STICKLINE(VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),0,1,2,0),LINETHICK2,colorFFFF;
CN:STICKLINE(VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),0,1,2,0),LINETHICK2,colorFFFF;
涨势确立:VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),STICK,colorFFCC00;
DRAWTEXT(涨势确立>0,0.95,'涨'),PXUP4,colorFFCC00;
DRAWTEXT(涨势确立>0,0.85,'势'),PXUP4,colorFFCC00;
DRAWTEXT(涨势确立>0,0.75,'确'),PXUP4,colorFFCC00;
DRAWTEXT(涨势确立>0,0.65,'立'),PXUP4,colorFFCC00;
超级大底:VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR5 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*(1+HY/100),STICK,LINETHICK6,colorFF;
DRAWTEXT(超级大底>0,0.5,'超级大底'),PXUP4,colorFF;
定海神针:CLOSE-OPEN>=0 AND OPEN/LOW>1.05 AND LOW<=LLV(LOW,20) OR VAR11,STICK,colorFF00;
DRAWTEXT(定海神针>0,0.95,'定'),PXUP4,colorFF00;
DRAWTEXT(定海神针>0,0.85,'海'),PXUP4,colorFF00;
DRAWTEXT(定海神针>0,0.75,'神'),PXUP4,colorFF00;
DRAWTEXT(定海神针>0,0.65,'针'),PXUP4,colorFF00;
STICKLINE(CLOSE-OPEN>=0 AND OPEN/LOW>1.05 AND LOW<=LLV(LOW,20) OR VAR11,0,0.15,2,0),LINETHICK2,colorFF00;
STICKLINE(CLOSE-OPEN>=0 AND OPEN/LOW>1.05 AND LOW<=LLV(LOW,20) OR VAR11,0.15,0.85,2,0),LINETHICK2,colorFF;
STICKLINE(CLOSE-OPEN>=0 AND OPEN/LOW>1.05 AND LOW<=LLV(LOW,20) OR VAR11,0.85,1,2,0),LINETHICK2,colorFF00;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容