主力建仓拉升公式

[复制链接]
查看30 | 回复0 | 2022-7-24 07:32:44 | 显示全部楼层 |阅读模式

{M=1   100   60}
 RSVC:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;
 RSVO:=(OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;
 A:=SMA(RSVC,25,1);
 B:=SMA(RSVO,25,1);
 VAR1:=3*A-2*SMA(A,15,1);
 VAR2:=3*B-2*SMA(B,15,1);
 VAR6:=80*VOL/CAPITAL*10;
 STICKLINE(VAR1>REF(VAR2,1),VAR1,VAR2,VAR6,1),COLORRED;
 STICKLINE(VAR1+VAR2>200,VAR1,VAR2,VAR6,1),COLORYELLOW;
 STICKLINE(VAR1<=REF(VAR2,1),VAR1,VAR2,VAR6,1),COLORGREEN;
 百万:=MA(WINNER(C),9)*100;
捉庄:CROSS(百万,2.5)*50,NODRAW;
STICKLINE(捉庄,0,40,8,0),COLORGREEN;
 DRAWTEXT( 捉庄 AND COUNT(捉庄, 10) = 1, 百万 +30,  '探庄'),COLORGREEN;
 T1:='SLOWKD.K';
 T2:='SLOWKD.D';
 T3:='SLOWKD.K#WEEK';
 T4:='SLOWKD.D#WEEK';
 周叉:=CROSS(T3 ,T4 );
日叉:=CROSS(T1 ,T2 );
 主力建仓:=((周叉 AND BARSLAST(日叉)<3) AND  T3<M AND FINANCE(33)>0.1  OR (日叉) AND (BARSLAST(周叉)<3) AND T3<M AND FINANCE(33)>0.1
OR CROSS(T3 ,T4 ) AND T3<M AND FINANCE(33)>0.1   OR CROSS(T3 ,T4 ) AND T3<M AND FINANCE(33)>0.1);
 VAR4:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH, 75)-LLV(LOW,75))*100, 20, 1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100, 20, 1), 15, 1);
VAR5:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH, 75)-LLV(LOW,75))*100, 20, 1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100, 20, 1), 15, 1);
AA:=CROSS(VAR4,VAR5);
 KW:='SLOWKD.K#WEEK';
 DW:='SLOWKD.D#WEEK';
 BB:= CROSS(KW,DW); 
 主力拉升:=BB AND BARSLAST(AA)>3 AND KW<60 AND FINANCE(33)>0.05 ;
 STICKLINE(主力建仓,0,65,6,0),COLORRED;
 STICKLINE(主力拉升,0,55,10,0),COLORYELLOW;
 DRAWTEXT( 主力建仓, 70, '主力建仓'),COLORYELLOW,LINETHICK3;
 DRAWTEXT( 主力拉升, 50, '主力拉升'),COLORYELLOW,LINETHICK3;

回复

使用道具 举报

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

本版积分规则