飞狐成本型带量攻击副图指标
-
相关简介:飞狐成本型带量攻击副图指标 源码 {公称名称: 成本型带量攻击} input:N1(5,0,100),N2(13,0,100),N3(34,0,100); VAR2:=(REF(HIGH,1) * AMOUNT); VAR3:=(REF(HIGH,10) * AMOUNT); VAR4:=(HIGH * 1.01); VAR5:=(((VAR4 * VOL) + (VAR3 * (CAPITAL - VOL))) / CAPITAL); VAR6:=(REF(LOW,1) * 0.9); VAR
-
文章来源:股海网作者:股海网发布时间:2016-05-29浏览次数:
飞狐成本型带量攻击副图指标
源码
{公称名称: 成本型带量攻击}
input:N1(5,0,100),N2(13,0,100),N3(34,0,100);
VAR2:=(REF(HIGH,1) * AMOUNT);
VAR3:=(REF(HIGH,10) * AMOUNT);
VAR4:=(HIGH * 1.01);
VAR5:=(((VAR4 * VOL) + (VAR3 * (CAPITAL - VOL))) / CAPITAL);
VAR6:=(REF(LOW,1) * 0.9);
VAR7:=(LOW * 0.9);
VAR8:=(((VAR7 * VOL) + (VAR6 * (CAPITAL - VOL))) / CAPITAL);
VAR9:=EMA(VAR8,10);
VARA:=EMA(VAR5,30);
PP:=((VARA * 3) + 2);
QQ:=IF((CLOSE <= VAR9),PP,VARA);
MFQ:=((VARA * 3) + 2);
关注点选股:=IF((QQ = MFQ),9,0);
DRAWTEXT(FILTER(关注点选股,21),(LOW - 0.2),'热身'),ALIGN0,colorFF;
CB:=(FILTER(关注点选股,21) = 1);
VAR2:=(AMOUNT / (100 * VOL));
吸筹成本:COST(LLV((LOW * 0.191),21)),colorFF00FF;
短线成本:EMA(VAR2,N1),colorFF00;
中线成本:EMA(VAR2,N2),colorFFFF;
长线成本:EMA(VAR2,N3),colorFFFF00;
无穷成本:DMA(CLOSE,(VOL / CAPITAL));
DRAWTEXT(FILTER(refx(ISLASTBAR,40),1000),c,'飛狐源碼王還源\nQQ:496589702\nE-mail:496589702@QQ.com'),align4,COLORRED;
三日均量:=FILTER((CROSS(短线成本,中线成本) AND (MA(CLOSE,3) > MA(CLOSE,5))),21);
DRAWTEXT(三日均量,(LOW - 0.188),'增量'),ALIGN2,colorFF00FF;
五日均量:=INTPART(SMA((VOL * CLOSE),3,1));
十日均量:=INTPART(SMA((VOL * CLOSE),5,1));
能量增减:=INTPART(SMA((VOL * CLOSE),10,1));
A:=INTPART(((CLOSE * VOL) - REF(能量增减,1)));
能量选股:(FILTER(((CROSS(A,五日均量) AND (五日均量 > 十日均量)) AND (MA(CLOSE,3) > MA(CLOSE,5))),21) = 1),LINETHICK0,colorFF;
DRAWICON((能量选股 AND (MA(CLOSE,3) > MA(CLOSE,5))),LOW,12);
DRAWTEXT((能量选股 AND (MA(CLOSE,3) > MA(CLOSE,5))),(LOW - 0.13013),'★带量攻击'),ALIGN0,colorFFFF;
LC:=((VOL * (((OPEN + CLOSE) + LOW) + HIGH)) / 400000);
P1:=REF(CLOSE,1);
P2:=((SMA(MAX((CLOSE - P1),0),N1,1) / SMA(ABS((CLOSE - P1)),N1,1)) * 100);
P3:=((SMA(MAX((CLOSE - P1),0),N2,1) / SMA(ABS((CLOSE - P1)),N2,1)) * 100);
MA10:=((SMA(MAX((CLOSE - P1),0),N3,1) / SMA(ABS((CLOSE - P1)),N3,1)) * 100);
MA30:=EMA(LC,10);
SG:=EMA(LC,30);
XG:=(CROSS("KDJ.J",MA30) AND ((CLOSE / REF(CLOSE,1)) > 0.91));
SG1:=(CROSS("KDJ.J",SG) AND ((CLOSE / REF(CLOSE,1)) > 0.91));
SG2:=(CROSS(P2,P3) AND ((CLOSE / REF(CLOSE,1)) > 0.91));
SG3:=(CROSS(P3,MA10) AND ((CLOSE / REF(CLOSE,1)) > 0.91));
JS:=(CROSS(P2,MA10) AND ((CLOSE / REF(CLOSE,1)) > 0.91));
JC:=FILTER((XG AND SG1),10);
BS:=FILTER((SG2 AND SG3),10);
VAR47:=(JC AND BS);
DRAWICON(FILTER(VAR47,10),LOW,10);
DRAWICON(FILTER(BS,10),LOW,1);
DRAWICON(FILTER(JC,10),LOW,4);
DRAWTEXT(JC,(LOW - 0.02118),'奇袭'),colorFF00;