把(战神买卖)出现买做个选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

n1: 0 99 7;n2: 0 99 6;MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,20);MA4:MA(CLOSE,60);VAR1:=EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5);VAR2:=VAR1,COLORRED,LINETHICK2;VAR3:=MA((V-REF(V,1))/REF(V,1),5);VAR4:=(C-MA(C,24))/MA(C,24)*100;VAR5:=VAR4*(1+VAR3);VAR6:=REF(VOL,1);VAR7:=SMA(MAX(VOL-VAR6,0),6,1)/SMA(ABS(VOL-VAR6),6,1)*100;VAR8:=VAR5>REF(VAR5,1) AND VAR2REF(VAR7,1);VAR9:=VAR5REF(VAR2,1) AND VAR7>REF(VAR7,1);VAR10:=VAR5>REF(VAR5,1) AND VAR2REF(VAR2,1) AND VAR7REF(VAR5,1);VAR13:=VAR5REF(VAR2,1);VAR16:=VAR8 OR VAR10;VAR17:=VAR9 OR VAR11;VAR18:=VAR13 AND VAR14;VAR19:=VAR16 OR VAR18;VAR20:=VAR12 AND VAR15;VAR21:=VAR17 OR VAR20;VAR22:=LAST(VAR19,N1,1) AND VAR20;VAR23:=LAST(VAR21,N2,1) AND VAR18;DRAWTEXT(VAR22,L,'★买'),COLOR00FFFF;DRAWTEXT(VAR23,H,'★卖'),COLORWHI

解答:

 N1:=7;

VAR1:=EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5);
VAR2:=VAR1,COLORRED,LINETHICK2;
VAR3:=MA((V-REF(V,1))/REF(V,1),5);
VAR4:=(C-MA(C,24))/MA(C,24)*100;
VAR5:=VAR4*(1+VAR3);
VAR6:=REF(VOL,1);
VAR7:=SMA(MAX(VOL-VAR6,0),6,1)/SMA(ABS(VOL-VAR6),6,1)*100;
VAR8:=VAR5>REF(VAR5,1) AND VAR2<REF(VAR2,1) AND VAR7>REF(VAR7,1);
VAR10:=VAR5>REF(VAR5,1) AND VAR2<REF(VAR2,1) AND VAR7<REF(VAR7,1);
VAR11:=VAR5<REF(VAR5,1) AND VAR2>REF(VAR2,1) AND VAR7<REF(VAR7,1);
VAR12:=VAR5>REF(VAR5,1);
VAR13:=VAR5<REF(VAR5,1);
VAR14:=VAR2<REF(VAR2,1);
VAR15:=VAR2>REF(VAR2,1);
VAR16:=VAR8 OR VAR10;
VAR18:=VAR13 AND VAR14;
VAR19:=VAR16 OR VAR18;
VAR20:=VAR12 AND VAR15;
VAR22:LAST(VAR19,N1,1) AND VAR20;

选股票看什么指标最好 >股票指标网