C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {主力入货}
- VAR2:=REF(LOW,1);
- VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
- VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
- VAR5:=LLV(LOW,38);
- VAR6:=HHV(VAR4,38);
- VAR7:=IF(LLV(LOW,90),1,0);
- VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
- ST01:STICKLINE(1,VAR8 ,0,4 ,1 ),COLORF000FF;
- 主力进场:=VAR8;
- DD:=VAR8>5;
- 买入:IF((COUNT(DD,2)=2),-20,-5);
-
- {个股资金生命线}
- 个股资金线:MA(C,1)/MA(REF(C,18),18)*100,LINETHICK2,COLOR00FFFF;
- 资金生命线:MA(FORCAST(个股资金线,20),6),COLORMAGENTA,LINETHICK2;
- 强势区:IF((EVERY(资金生命线>=REF(资金生命线,1),1)AND 个股资金线>资金生命线),60,50)COLOR00FF00,LINETHICK3;
- 长强势区:IF((EVERY(资金生命线>=REF(资金生命线,1),1)),65,50)COLOR0000FF,LINETHICK3;