3121战法刻度公式
本帖最后由 qsyy216 于 2015-6-1 14:05 编辑第一部分是价柱上的3121
三一位:O-(O-C)/3,NODRAW;
中线位: (O+C)/2,NODRAW;
三二位:O-2*(O-C)/3,NODRAW;
STICKLINE((O+C)/2,(O+C)/2,(O+C)/2,3,0),COLORYELLOW;
第二部分是量柱上的3121
换手率:VOL/CAPITAL*100,NODRAW,COLORYELLOW;
缩量31:换手率*2/3,NODRAW;
缩量21:=VOL/2,NODRAW;
缩量32:换手率*1/3,NODRAW;
STICKLINE(VOL/2,VOL/2,VOL/2,3,0),COLORYELLOW;
申明:1、公式来源网络,著作权属原作者。
2、本公式在量柱、价柱上只显示21位,但21位,上31位,下31位都是标好。
3、直接加在主图和副图上。遇到使用问题可以交流。
顶底开关:=0; 点位差:=0; 指定点:=0; V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1); STICKLINE(V2V,H,L,0,0),COLORYELLOW; STICKLINE(V2V,O,C,3.1,0),COLOR0033FF; STICKLINE(V2V,O,C,2.1,0),COLOR0077FF; STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF; STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF; ZT:=C/REF(C,1)>1.097; ZT数:COUNT(ZT,BARSSINCE(ZT)),NODRAW; 均价:=AMO/VOL/100; 假阴真阳:=C=REF(MIN(C,O),1) AND 均价>REF(均价,1); DT:=假阴真阳; STICKLINE(DT,H,L,0,0),COLORFFAA00; STICKLINE(DT,O,C,3,0),COLORFF3300; STICKLINE(DT,O,C,2,0),COLORFF7700; STICKLINE(DT,O,C,1,0),COLORFFAA00; STICKLINE(DT,O,C,0.1,0),COLORFFFF00; YX:=REF(O,BARSLAST(假阴真阳)); 假阴实顶:YX,COLORFF7700,NODRAW; STICKLINE(V,YX,YX,1,0),COLORFF7700; L0:=点位差/100; 前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448; DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线*0.99,38); DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线*1.01,39); {H极点精准线:CONST(REF(H,指定点)),COLOR7777FF; DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35); DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);} {极点精准线:CONST(L),COLOR0077FF; DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1); DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2); 同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW; 异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW; XG:=同向极点精准数>0 AND 异向极点精准数>0;} {DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26)); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); 量缩价涨:=CREF(MACD,1) AND C>REF(C,1) AND REF(CO; 阴KDAY:=BARSLAST(量缩价涨)+1; STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA; DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);} DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK); N:=150;判断高低:=3;高:=REF(HHV(H,N),判断高低);近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3; 低:=REF(LLV(L,N),判断高低); 近期底:REFDATE(低,DATE),COLORRED,LINETHICK3; 涨跌:=REF(C,1); 涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0); DRAWICON(涨停,H*0.97,23); LAST3K:=CURRBARSCOUNT>4; 第一部分是价柱上的3121
三一位:O-(O-C)/3,NODRAW;
中线位: (O+C)/2,NODRAW;
三二位:O-2*(O-C)/3,NODRAW;
STICKLINE((O+C)/2,(O+C)/2,(O+C)/2,3,0),COLORYELLOW;
第二部分是量柱上的3121
换手率:VOL/CAPITAL*100,NODRAW,COLORYELLOW;
缩量31:换手率*2/3,NODRAW;
缩量21:=VOL/2,NODRAW;
缩量32:换手率*1/3,NODRAW;
STICKLINE(VOL/2,VOL/2,VOL/2,3,0),COLORYELLOW; 高山黔龙 发表于 2015-7-25 02:22
楼长我安装出现以下情况:当前公式 : 3121战法 (指标画线公式)错误句 :详细信息 : 单词最大字符数不得 ...
你把标点符号全部改成半角就可以了。 感谢版主分享! 谢谢分享投资愉快 谢谢分享投资愉快! {:soso_e160:} {:soso_e163:} 好好学习天天向上 {:soso_e163:} 谢谢分享! 换手率:VOL/CAPITAL*100,NODRAW,COLORYELLOW; 缩量31:换手率*2/3,NODRAW; 缩量21:=VOL/2,NODRAW; 缩量32:换手率*1/3,NODRAW; STICKLINE(VOL/2,VOL/2,VOL/2,3,0),COLORYELLOW; :lol:lol:lol:lol:lol 不错不错 可以用 楼主:副图指标好像只有横线,没有量柱,是我弄错了吗? {:soso_e179:} 楼主:副图指标好像只有横线,没有量柱,是我弄错了吗?