飞狐箱体重组公式源码[其他软件公式]
相关标签: 箱体指标公式 、 突破箱体指标公式 、 文华突破箱体指标公式 、 箱体突破公式 、 橱柜箱体的拆尺公式 、 通达信箱体公式 、 箱体震荡选股公式 、 同花顺箱体指标公式 、 箱体公式 、
飞狐箱体重组公式源码
空:=EMA(C,5);
均衡:EMA(空,5),COLORWHITE;
中轨:HHV(MA(H,13),13),COLORyelLOW,LINETHICK1;
趋势:LLV(MA(H,13),1),COLORred,LINETHICK1;
varA:=(CLOSE-ref(OPEN,29))/ref(OPEN,29)*100;
varB:=EMA(0.667*ref(varA,1)+0.333*varA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(varA>=varB AND varA<-17,3) AND ref(LOW,1)=LLV(LOW,120),1,0),LOW,'买入');
varC:=SMA(MAX(CLOSE-ref(C,1),0),6,1)/SMA(ABS(CLOSE-ref(C,1)),6,1)*100;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /
(HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /
(HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) /
(HHV(HIGH,6) - LLV(LOW,6))),34));
TY:=C;
A1:=ref(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=ref(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=ref(C,BARSLAST(HD));
Z:=ref(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(T1,A,A),COLORYELLOW,LINETHICK3,POINTDOT;
波谷:IF(T2,Z,Z),COLORWHITE,LINETHICK3,POINTDOT;
var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
var2:=ref(var1,1);
var3:=SMA(MAX(var1-var2,0),10,1)/SMA(ABS(var1-var2),10,1)*100;
var4:=FILTER(IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
DRAWICON(var4,LOW,1);var5:=FILTER(均衡>ref(均衡,1)AND 中轨<ref(中轨,1)AND C>ref(C,1),11);
DRAWTEXT(var5,LOW*0.985,'加仓'),COLORyelLOW;
DRAWTEXT(var5,LOW*0.995,'^' ),COLORyelLOW;
var6:=ref(CLOSE,1);
var7:=SMA(MAX(CLOSE-var6,0),6,1)/SMA(ABS(CLOSE-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),H*1.035,'减仓'),COLOR00FF00 ;
DRAWTEXT(CROSS(84,var7),H*1.015,'◇' ),COLOR00FF00;
MA20:MA(c,20),colorwhite;
MA120:MA(c,120),colorffcccc;
MA250:MA(c,250),colorffcc66;
乖离线:=((c-ref(MA20,1))/20+MA20)*1.20;
tt1:=cross(MA20,MA120)and cross(MA20,MA250) and v>ref(v,1);
tt2:=MA20>ref(MA20,2) and v>ref(v,1) and cross(c,MA20);
STICKLINE(TT1,l,l-0.09,4,0),coloryelLOW;
DRAWTEXT(TT1,l-0.13,'金叉'),coloryelLOW;
STICKLINE(cross(c,MA120) and cross(c,MA250) and cross(c,MA20),l,l-0.09,4,0),coloryelLOW;
STICKLINE(tt2,l,l-0.09,4,0),coloryelLOW;
STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;
DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖'),color00ff00;
STICKLINE(MA250>=ref(MA250,1) and MA20>=ref(MA20,1) and cross(c,MA250),l,l-0.09,4,0),colorffcc66;
DRAWTEXT(MA250>=ref(MA250,1) andMA20>=ref(MA20,1) and cross(c,MA250),l-0.13,'牛象'),colorffcc66;
STICKLINE(MA120>=ref(MA120,1) and cross(c,MA20) and cross(c,MA120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;
RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=((3 * K24) - (2 * D24));
U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);
L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);
RH1:=IF(((J < U2L) AND (ref(J,1) >= U2L)),HHV(ref(HIGH,1),(BARSLAST(((J >= U2L) AND (ref(J,1) < U2L))) -1)),ref(HHV(ref(HIGH,1),(BARSLAST(((J >= U2L) AND (ref(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND ref(J,1)))));
RH4:=IF((HIGH > RH1),LOW,ref(LOW,BARSLAST((HIGH > RH1))));
RH42:=IF((HIGH > RH1),J,ref(J,BARSLAST((HIGH > RH1))));
RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)),HIGH,ref(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24)))));
DRAWTEXT(FILTER(((((((((OPEN > MA120) AND (MA20 < MA120)) AND (LOW <= MA120)) AND ((MA20 - ref(MA20,1)) > 0)) AND (CLOSE > OPEN)) AND ((MA120 - ref(MA120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= MA120)),15),LOW,'★120跳马');
AA:=CROSS(MA(C,5),MA(C,20))AND CROSS(MA(C,5),MA(C,30))AND CROSS(MA(C,5),MA(C,60));
BB:=MA(C,60)>MA(C,10)AND CROSS(MA(C,10),MA(C,30))AND MA(C,30)>MA(C,20)AND ABS(MA(C,60)-MA(C,20))/MA(C,20)<0.05;
CC:=MA(C,30)>MA(C,5)AND CROSS(MA(C,5),MA(C,20))AND MA(C,20)>MA(C,10);
DD:=ABS((MA(C,5)-MA(C,10))+(MA(C,10)-MA(C,20))+(MA(C,20)-MA(C,30)))<0.02 AND MA(C,5)>ref(MA(C,5),1)AND
MA(C,10)>ref(MA(C,10),1);
EE:=MA(C,20)>MA(C,5)AND CROSS(MA(C,5),MA(C,10))AND MA(C,10)>MA(C,60)AND ABS(MA(C,20)-MA(C,60))/MA(C,60)<0.05;
FF:=AA OR BB OR CC OR DD OR EE;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-ref(C,1))/ref(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
FF1:BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;
DRAWTEXT(FF1,l*0.99,' 老鼠仓'),COLORred;
STICKLINE(FF1,H,L,0.5,0),COLORRED;
STICKLINE(FF1,O,C,6,1),COLORRED;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容