手机端
当前位置:爱约股 > 公式技巧 > 牛股指标改成出现‘ 有主力’字样时选出股

牛股指标改成出现‘ 有主力’字样时选出股

 网友求助:

请老师将牛股指标公式改成选股的公式,当出现 粉红色‘ 有主力’字样时选出股,谢谢
这是公式源码:
中线:=9;
B:=IF((DATE <= 108880515),EMA(CLOSE,5) - EMA(CLOSE,10),0);
A:=IF((DATE <= 108088515),EMA(B,中线),0);
VAR29:=(((-100))*(HHV(CLOSE,10) - CLOSE))/(HHV(CLOSE,10) - LLV(LOW,10)) + 100;
VAR32:=REF(A,1);
VAR33:=A;
VAR34:=VAR33 - VAR32;
短买:=(IF(CROSS(B,A) AND (B < 0) AND (A < (-0.2)) AND (VAR29 > 45) AND (VAR34 > 0) ,100,0))*(1);

VAR81:=100 - (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));
VAR82:=100 - (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));
VAR83:=(VAR81 < REF(VAR82,1)) AND (VOL > REF(VOL,1)) AND (CLOSE > REF(CLOSE,1));
有主力:IF(VAR83 AND (COUNT(VAR83,30) = 1),100,0),Linethick1,COLORff00ff;
DRAWTEXT((有主力 = 100),110,'有主力'),COLORff00ff,ALIGN2;
 

 

 

解答如下:

VAR81:=100 - (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));
VAR82:=100 - (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));
VAR83:=(VAR81 < REF(VAR82,1)) AND (VOL > REF(VOL,1)) AND (CLOSE > REF(CLOSE,1));
有主力:=IF(VAR83 AND (COUNT(VAR83,30) = 1),100,0);
SELECT 有主力 = 100;

分享至:

相关推荐