以下是通达信粉柱抄底副图指标公式源码(无源码的请下载附件导入)
通达信粉柱抄底副图指标公式源码
VAR1:=REF(LOW,1);
VAR2:=(SMA(ABS(LOW-VAR1),15,1))/(SMA(MAX(LOW-VAR1,0),15,1))*4;
VAR3:=EMA(VAR2,15);
VAR4:=LLV(LOW,35);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:=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);
VAR7:=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);
VAR8:=VAR6<REF(VAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,8,0),COLORAA00BB;
2054566313.png
|