{ 通达信山谷淘金指标公式源码副图 }
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
DRAWTEXT_FIX(1,0,0.1,0,'山谷淘金'),COLOR00FFFF;
VAR1:=REF(LOW,1);
VAR2:=SMA(Abs(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=IF(VAR7>100,100,VAR7);
stICKLINE(VAR8>-120,0,VAR8,5,0),COLORRED;
STICKLINE(VAR8<ref(var8,1),0,var8,5,0),color008000;
VAR9:=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);
VAR10:=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);
VAR11:=VAR9<ref(var10,1) and="" vol="">REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR11 AND COUNT(VAR11,18)=1,0,60,1,0),COLOR00EAEA;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,55,' 低'),COLOR0099FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,48,' 位'),COLOR0033FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,36,' 淘'),COLOR0099FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,24,' 金'),COLOR0033FF;
XG:(VAR11 AND COUNT(VAR11,18)=1);
标签:通达信,LLV,75,源码,VAR11,LOW,100,淘金,SMA From: https://www.cnblogs.com/zhibiao/p/18062731