beyond202104 发表于 2023-8-28 15:28:50

量能波段买入 富贵险中搏杀【指标公式】(含选股)

第一部分 副图公式 手机/电脑


DRAWGBK(OPEN>CLOSE,RGB(48,41,124),RGB(0,0,0),0,1,0);
CAIH1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
CAIH2:=(CLOSE-LLV(LOW,5 ))/(HHV(HIGH,5)-LLV(LOW,5))*100;
CAIH3:=(HIGH+LOW)/2;
CAIH4:=EMA(CAIH3,3);
CAIH5:=IF(CLOSE>CAIH4,VOL,0);
CAIH6:=IF(CLOSE
量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(CAIH5-CAIH6,22),3)),NODRAW,COLOR00DDDD;
趋势:IF(CAPITAL0,20,10,5,1),COLORRED;
STICKLINE(CAIH7<0,100,90,10,1),COLORGREEN;
DRAWICON(CROSS(CAIH8,CAIH9) AND CAIH930,97,2);
DRAWBAND(CAIH9,RGB(0,22,224),CAIH8,RGB(255,50,50));
CAIH10:=EMA(SMA(CAIH2,3,1),2);
CAIH11:=SMA(CAIH10,3,1);
DRAWTEXT(CROSS(CAIH8,CAIH9) AND CROSS(CAIH10,CAIH11),10,'买入'),COLORYELLOW;
CAIH12:=CROSS(CAIH8,CAIH9) AND CROSS(CAIH10,CAIH11);
STICKLINE(CAIH12>0,0,100,2,0),COLOR008888;
STICKLINE(CAIH12>0,0,100,1.5,0),COLOR00AAAA;
STICKLINE(CAIH12>0,0,100,0.8,0),COLOR00DDDD;
STICKLINE(CAIH12>0,0,100,0.3,0),COLORYELLOW;
CHA25:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
CHA26:=SMA(SMA(CHA25,3,1),3,1)/28.57;
CHA27:=EMA(CHA26,5);
CHA28:=3*CHA26-2*CHA27;
CHA29:=CROSS(CHA28,CHA26) AND CHA26OPEN;
STICKLINE(CHA29,30,0,4,0),COLOR770077;
STICKLINE(CHA29,30,0,3,0),COLOR990099;
STICKLINE(CHA29,30,0,2,0),COLORBB00BB;
STICKLINE(CHA29,30,0,1,0),COLORDD00DD;
STICKLINE(CHA29,30,0,0.3,0),COLORMAGENTA;
DRAWTEXT(CHA29,36,'搏杀'),COLORRED;
金叉低买:20,COLORMAGENTA;
死叉高卖:90,COLORYELLOW;


第二部分 选股公式


{选股公式一:搏杀}
CHA25:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
CHA26:=SMA(SMA(CHA25,3,1),3,1)/28.57;
CHA27:=EMA(CHA26,5);
CHA28:=3*CHA26-2*CHA27;
CHA29:=CROSS(CHA28,CHA26) AND CHA26OPEN;
搏杀:CHA29;

{选股公式二:红箭头图标}
CAIH1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
CAIH2:=(CLOSE-LLV(LOW,5 ))/(HHV(HIGH,5)-LLV(LOW,5))*100;
CAIH8:=SMA(CAIH1,3,1);
CAIH9:=SMA(CAIH8,3,1);
红箭头图标:CROSS(CAIH8,CAIH9) AND CAIH9<30;
{选股公式三:买入}
CAIH1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
CAIH2:=(CLOSE-LLV(LOW,5 ))/(HHV(HIGH,5)-LLV(LOW,5))*100;
CAIH8:=SMA(CAIH1,3,1);
CAIH9:=SMA(CAIH8,3,1);
CAIH10:=EMA(SMA(CAIH2,3,1),2);
CAIH11:=SMA(CAIH10,3,1);
{DRAWTEXT(CROSS(CAIH8,CAIH9) AND CROSS(CAIH10,CAIH11),10,'买入'),COLORYELLOW;}
买入:CROSS(CAIH8,CAIH9) AND CROSS(CAIH10,CAIH11);


aimessage 发表于 2023-9-24 21:51:55

学习了,谢谢分享、、、
页: [1]
查看完整版本: 量能波段买入 富贵险中搏杀【指标公式】(含选股)