找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
楼主: wen98

★王牌柱主图公式--量学初学者的福音★

   火... [复制链接]
发表于 2021-7-8 06:54 | 显示全部楼层

N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;
DRAWKLINE(H,O,L,C);
{}
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
STICKLINE(上线>下线,上线,下线,2,2),COLORBLUE,LINETHICK3;
STICKLINE(下线>上线,上线,下线,2,2),COLORGREEN,LINETHICK3;
DRAWTEXT(CROSS(上线,下线),LOW,'●
全仓买'),COLOR00FF00;
DRAWTEXT(CROSS(下线1,上线1),H,'◆
'),COLORYELLOW;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT( CROSS(82,RSI) , HIGH,'◆
减仓') ,COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
VAR1LV(A7,21);
VAR0:HHV(A7,21);
SK:=EMA((A7-VAR1)/(VAR0-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'●
买进') ,COLOR0099FF;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND  REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW*0.98,'●
买进') ,COLORYELLOW;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'●
抄底'),COLORYELLOW;
VAR12:=((VOL / CAPITAL) * 100);
VAR15:=HHVBARS(HIGH,50);
VAR17:=(((CLOSE - REF(OPEN,VAR15)) / REF(OPEN,VAR15)) * 100);
VAR22:=(REF(CLOSE,2) * 0.865);
VAR23:=(REF(CLOSE,13) * 0.772);
VAR24:=MIN(VAR22,VAR23);
超跌反弹:=(IF((((((CLOSE - VAR24) / CLOSE) < 0.03) AND (VAR17 < (0 - 35))) AND ((SUM(VAR12,5) / 5) < 1.8)),1,0) * 5);
DRAWTEXT(超跌反弹,L,'♂'),COLORRED;
VAR2:=C<0.98*REF(C,1);
VAR3:=O<REF(C,1);
VAR4:=(C-REF(C,1))/REF(C,1)*100;
VAR5:=(C-REF(O,29))/REF(O,29)*100;
VAR6:=MA(COST(22)/L,3);
成功率99:=VAR6>1.5 AND VAR4>5 AND VAR5<-30;
DRAWTEXT(成功率99>0 AND REF(成功率99,1)=0,L,'↑99%'),COLORRED;
仓:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);
仓1:=INDEXC;
仓2:=MA(仓1,5);
仓3:=MA(仓1,20);
仓4:=MA(仓1,30);
B2:=仓2>仓1*1.03 AND 仓3>仓1*1.13;
操盘手:=仓<6 AND B2;
DRAWTEXT(操盘手,L,'仓'),COLORRED;
底1:=IF((((((EMA(CLOSE,5) / EMA(EMA(CLOSE,9),16)) <= 0.85) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),50,0);
底2:=((0 - ((100 * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)))) + 100);
底3:=((0 - ((100 * (HHV(HIGH,50) - CLOSE)) / (HHV(HIGH,50) - LLV(LOW,50)))) + 100);
底:=((0 - ((100 * (HHV(HIGH,70) - CLOSE)) / (HHV(HIGH,70) - LLV(LOW,70)))) + 100);
底4:=(((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100) + 10) * 5);
底5:=(((((CLOSE - MA(CLOSE,50)) / MA(CLOSE,50)) * 100) + 10) * 5);
底6:=(((((CLOSE - MA(CLOSE,70)) / MA(CLOSE,70)) * 100) + 10) * 5);
S1:=((((((底2 + 底3) + 底) + 底4) + 底5) + 底6) / 6);
S2:=EMA(S1,3);
S3:=ABS((底4 - 底6));
S4:=((S1 + S3) / 2);
S5:=(((0 - 1) * (EMA((100 * (1 - WINNER(CLOSE))),1) - 50)) + 50);
S6:=(S5 + S4);
S7:=IF(((底1 > 0) AND (S6 < 0)),200,0);
S8:=IF((((((S4 < 0) AND (CLOSE = LLV(CLOSE,5))) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),(0 - 50),0);
S9:=IF(((S6 < 0) AND (S8 = (0 - 50))),100,0);
底C0:=(REF(CLOSE,2) * 0.865);
底C1:=(REF(CLOSE,13) * 0.772);
底C2:=MIN(底C0,底C1);
底C3:=((100 * VOL) / CAPITAL);
底C4:=IF(((((CLOSE - 底C2) / CLOSE) < (3 / 100)) AND ((SUM(底C3,5) / 5) < 1.8)),1,0);
底AA:=IF(((底C4 > 0) AND ((S8 < 0) OR (底1 > 0))),100,0);
V1:=(((((S7 > 0) AND (S9 > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR (底C4 > 0)) AND ((S8 < 0) OR (底1 > 0)));
V2:=((((S7 > 0) AND (S9 > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR ((底C4 > 0) AND ((REF(CLOSE,1) / REF(CLOSE,2)) > 0.902)));
V3:=(V1 OR V2);
V4:=(底AA OR V3);
V5:=底AA;
G:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
Z:=IF((V4 > 0),87,0);
Z1:=IF((V5 > 0),91,0);
Z2:=IF(((底AA > 0) AND (CLOSE < G)),97,0);
Z3:=MAX(MAX(Z2,Z),Z1);
DRAWTEXT(FILTER(((((Z > 80) AND (Z1 > 90)) AND (Z2 > 90)) AND (Z3 > 90)),13),L,'↑底95%'),COLORRED;
{}
总资金(万):AMOUNT/10000,COLORFF00FF,NODRAW;
VAR20:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入万:IF(CLOSE>OPEN,VAR20*(HIGH-LOW),IF(CLOSE<OPEN,VAR20*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW;
流出万:IF(CLOSE>OPEN,0-VAR20*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR20*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
差额万:流入万+流出万,COLORFFFF00,NODRAW;
{股海网 www.guhai.com.cn};
VAR31:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR32:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR33:=REF(VAR32,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR34:=REF(VAR33,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR35:=REF(VAR34,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR36:=REF(VAR35,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR37:=REF(VAR36,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR38:=REF(VAR37,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR39:=REF(VAR38,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR39,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR110:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR111:=REF(VAR110,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR112:=REF(VAR111,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR113:=REF(VAR112,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR114:=REF(VAR113,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR115:=REF(VAR114,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR116:=REF(VAR115,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR117:=REF(VAR116,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR118:=REF(VAR117,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR119:=REF(VARD OR VARE OR VARF OR VAR110 OR VAR111 OR VAR112 OR VAR113 OR
VAR114 OR VAR115 OR VAR116 OR VAR117 OR VAR118,1) AND VAR31;
VAR1A:=REF(VAR31 OR VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR
VAR38 OR VAR39 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;
DRAWTEXT(FILTER(VAR119=1,5),LOW,' 买进'),COLORFF00FF;
DRAWICON(FILTER(VAR119=1,5),LOW,9);
DRAWTEXT(FILTER(VAR1A=1,5),HIGH,' '),COLOR00FF00;
DRAWICON(FILTER(VAR1A=1,5),HIGH,15);
{原文链接:http://www.guhai.com.cn/html/GS/tong-da-xin/80747.html}
回复

使用道具 举报

发表于 2021-7-13 09:05 | 显示全部楼层
量柱三一二一
回复

使用道具 举报

发表于 2021-7-13 11:32 | 显示全部楼层
 量学理论的王牌柱包括独当一面的将军柱,扭转乾坤的黄金柱,和继往开来的元帅柱。本公式基本按照王子老师《伏击涨停》第8章“伏击涨停的王牌”关于王牌柱(将军柱、黄金柱、元帅柱)的标准,和“先者优先、跳空补空”的原则,自动在多彩K线主图上,画出三种王牌柱攻防线,并用不同颜色作出标记。是量学爱好者看盘的有力工具,更是量学初学者学习量学基础知识的基本工具。
  黄金柱的判定,是公式表达的重点和难点。本公式有关黄金柱的判定,基本上是按照王子老师《伏击涨停》书中关于王牌柱(将军柱、黄金柱、元帅柱)的定义来编制的。将军柱包含了:含蓄高量 、长阳低量、价胜平量、小倍阳、双向阳胜、梯量阳柱、连续小阳柱等几种情形,但是更注重将军柱的独当一面性;黄金柱算法与“黄金线上阳盖阴主图选股公式"略有不同(由于是选股定义更加严格);对于比较宽泛的“K形喇叭口”黄金柱,采用“价柱涨幅大于量幅涨幅”的辩证理念,做得大部分黄金柱的形态,也实现了公式表达。由于量学”先者优先,跳空补空“的研判原则,是公式编制的瓶颈(本次公式其实已有所突破),使得一些人工可以判定的三种王牌柱,用公式表达起来就会有遗漏;一些人工看起来是黄金柱的形态,由于公式的局限性,可能判定不出来。这些情况敬请理解。但是绝大部分显示还是正常的。这就是我们可以使用公式的意义所在。
回复

使用道具 举报

发表于 2021-8-8 23:23 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

发表于 2022-3-26 21:53 | 显示全部楼层
谢谢分享,学习一下!
回复

使用道具 举报

发表于 2022-4-20 16:39 | 显示全部楼层

学习学习努力学习
回复

使用道具 举报

发表于 2022-7-3 15:02 | 显示全部楼层
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;
DRAWKLINE(H,O,L,C);
{}
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
STICKLINE(上线>下线,上线,下线,2,2),COLORBLUE,LINETHICK3;
STICKLINE(下线>上线,上线,下线,2,2),COLORGREEN,LINETHICK3;
DRAWTEXT(CROSS(上线,下线),LOW,'●
全仓买'),COLOR00FF00;
DRAWTEXT(CROSS(下线1,上线1),H,'◆
'),COLORYELLOW;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT( CROSS(82,RSI) , HIGH,'◆
减仓') ,COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
VAR1LV(A7,21);
VAR0:HHV(A7,21);
SK:=EMA((A7-VAR1)/(VAR0-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'●
买进') ,COLOR0099FF;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND  REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW*0.98,'●
买进') ,COLORYELLOW;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'●
抄底'),COLORYELLOW;
VAR12:=((VOL / CAPITAL) * 100);
VAR15:=HHVBARS(HIGH,50);
VAR17:=(((CLOSE - REF(OPEN,VAR15)) / REF(OPEN,VAR15)) * 100);
VAR22:=(REF(CLOSE,2) * 0.865);
VAR23:=(REF(CLOSE,13) * 0.772);
VAR24:=MIN(VAR22,VAR23);
超跌反弹:=(IF((((((CLOSE - VAR24) / CLOSE) < 0.03) AND (VAR17 < (0 - 35))) AND ((SUM(VAR12,5) / 5) < 1.8)),1,0) * 5);
DRAWTEXT(超跌反弹,L,'♂'),COLORRED;
VAR2:=C<0.98*REF(C,1);
VAR3:=O<REF(C,1);
VAR4:=(C-REF(C,1))/REF(C,1)*100;
VAR5:=(C-REF(O,29))/REF(O,29)*100;
VAR6:=MA(COST(22)/L,3);
成功率99:=VAR6>1.5 AND VAR4>5 AND VAR5<-30;
DRAWTEXT(成功率99>0 AND REF(成功率99,1)=0,L,'↑99%'),COLORRED;
仓:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);
仓1:=INDEXC;
仓2:=MA(仓1,5);
仓3:=MA(仓1,20);
仓4:=MA(仓1,30);
B2:=仓2>仓1*1.03 AND 仓3>仓1*1.13;
操盘手:=仓<6 AND B2;
DRAWTEXT(操盘手,L,'仓'),COLORRED;
底1:=IF((((((EMA(CLOSE,5) / EMA(EMA(CLOSE,9),16)) <= 0.85) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),50,0);
底2:=((0 - ((100 * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)))) + 100);
底3:=((0 - ((100 * (HHV(HIGH,50) - CLOSE)) / (HHV(HIGH,50) - LLV(LOW,50)))) + 100);
底:=((0 - ((100 * (HHV(HIGH,70) - CLOSE)) / (HHV(HIGH,70) - LLV(LOW,70)))) + 100);
底4:=(((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100) + 10) * 5);
底5:=(((((CLOSE - MA(CLOSE,50)) / MA(CLOSE,50)) * 100) + 10) * 5);
底6:=(((((CLOSE - MA(CLOSE,70)) / MA(CLOSE,70)) * 100) + 10) * 5);
S1:=((((((底2 + 底3) + 底) + 底4) + 底5) + 底6) / 6);
S2:=EMA(S1,3);
S3:=ABS((底4 - 底6));
S4:=((S1 + S3) / 2);
S5:=(((0 - 1) * (EMA((100 * (1 - WINNER(CLOSE))),1) - 50)) + 50);
S6:=(S5 + S4);
S7:=IF(((底1 > 0) AND (S6 < 0)),200,0);
S8:=IF((((((S4 < 0) AND (CLOSE = LLV(CLOSE,5))) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),(0 - 50),0);
S9:=IF(((S6 < 0) AND (S8 = (0 - 50))),100,0);
底C0:=(REF(CLOSE,2) * 0.865);
底C1:=(REF(CLOSE,13) * 0.772);
底C2:=MIN(底C0,底C1);
底C3:=((100 * VOL) / CAPITAL);
底C4:=IF(((((CLOSE - 底C2) / CLOSE) < (3 / 100)) AND ((SUM(底C3,5) / 5) < 1.8)),1,0);
底AA:=IF(((底C4 > 0) AND ((S8 < 0) OR (底1 > 0))),100,0);
V1:=(((((S7 > 0) AND (S9 > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR (底C4 > 0)) AND ((S8 < 0) OR (底1 > 0)));
V2:=((((S7 > 0) AND (S9 > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR ((底C4 > 0) AND ((REF(CLOSE,1) / REF(CLOSE,2)) > 0.902)));
V3:=(V1 OR V2);
V4:=(底AA OR V3);
V5:=底AA;
G:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
Z:=IF((V4 > 0),87,0);
Z1:=IF((V5 > 0),91,0);
Z2:=IF(((底AA > 0) AND (CLOSE < G)),97,0);
Z3:=MAX(MAX(Z2,Z),Z1);
DRAWTEXT(FILTER(((((Z > 80) AND (Z1 > 90)) AND (Z2 > 90)) AND (Z3 > 90)),13),L,'↑底95%'),COLORRED;
{}
总资金(万):AMOUNT/10000,COLORFF00FF,NODRAW;
VAR20:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入万:IF(CLOSE>OPEN,VAR20*(HIGH-LOW),IF(CLOSE<OPEN,VAR20*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,NODRAW;
流出万:IF(CLOSE>OPEN,0-VAR20*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR20*(HIGH-LOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
差额万:流入万+流出万,COLORFFFF00,NODRAW;
{股海网 www.guhai.com.cn};
VAR31:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR32:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR33:=REF(VAR32,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR34:=REF(VAR33,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR35:=REF(VAR34,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR36:=REF(VAR35,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR37:=REF(VAR36,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR38:=REF(VAR37,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR39:=REF(VAR38,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR39,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR110:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR111:=REF(VAR110,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR112:=REF(VAR111,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR113:=REF(VAR112,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR114:=REF(VAR113,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR115:=REF(VAR114,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR116:=REF(VAR115,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR117:=REF(VAR116,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR118:=REF(VAR117,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR119:=REF(VARD OR VARE OR VARF OR VAR110 OR VAR111 OR VAR112 OR VAR113 OR
VAR114 OR VAR115 OR VAR116 OR VAR117 OR VAR118,1) AND VAR31;
VAR1A:=REF(VAR31 OR VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR
VAR38 OR VAR39 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;
DRAWTEXT(FILTER(VAR119=1,5),LOW,' 买进'),COLORFF00FF;
DRAWICON(FILTER(VAR119=1,5),LOW,9);
DRAWTEXT(FILTER(VAR1A=1,5),HIGH,' '),COLOR00FF00;
DRAWICON(FILTER(VAR1A=1,5),HIGH,15);
回复

使用道具 举报

发表于 2022-7-27 22:12 | 显示全部楼层
楼主辛苦了
回复

使用道具 举报

发表于 2022-11-1 20:53 | 显示全部楼层
黄金柱,非常好,谢谢分享,学习一下!
回复

使用道具 举报

发表于 2023-11-7 16:09 | 显示全部楼层
我看过最好的公式,不知道有没有源代码
回复

使用道具 举报

发表于 2024-4-2 19:41 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-23 01:29 , Processed in 0.119691 second(s), Total 10, Slave 9 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表