通达信智策多空警戒线指标改成大智慧指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

通达信的智策多空警戒线指标VAR0:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * CLOSE;VAR1:=EMA(VAR0,3);VAR3:=EMA(VAR0,7);HH:=HHV(VAR3,64);LL:=LLV(VAR3,64);VARHIGH:=IF(VAR1>=REF(HH,1),H,REF(H,BARSLAST(VAR1>=REF(HH,1))));VARLOW:=IF(VAR1<=REF(LL,1),L,REF(L,BARSLAST(VAR1<=REF(LL,1))));B1:REFX(IF(VARHIGH=REF(VARHIGH,1),VARHIGH,DRAWNULL),1),COLORRED;B2:REFX(IF(VARLOW=REF(VARLOW,1),VARLOW,DRAWNULL),1),COLORGREEN;B3:MA(C,21),COLORFF00FF;

解答:

 VAR0:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * CLOSE;

VAR1:=EMA(VAR0,3);
VAR3:=EMA(VAR0,7);
HH:=HHV(VAR3,64);
LL:=LLV(VAR3,64);
VARHIGH:=IF(VAR1>=REF(HH,1),H,REF(H,BARSLAST(VAR1>=REF(HH,1))));
VARLOW:=IF(VAR1<=REF(LL,1),L,REF(L,BARSLAST(VAR1<=REF(LL,1))));
HA:=CROSS(BACKSET(VARHIGH=REF(VARHIGH,1),2),0.5);
LA:=CROSS(BACKSET(VARLOW=REF(VARLOW,1),2),0.5);
HORILINE(HA,VARHIGH,HA );
HORILINE(lA,VARLOW,lA );
B3:MA(C,21),COLORFF00FF;
 

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