同花顺抄底副图源码分享
N:=13;var1:4*SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1),3.2,1),coloryellow,linethick0;var2:8,colorgreen,linethick0;上升在即: IF(CROSS(var1,var2),50,0),STICK,COLOR0000cc,linethick2;专吸庄血: IF(var1<=8,25,0),STICK,colorwhite,linethick2;DRAWICON(CROSS(var1,var2),8,1);Varo5:=LLV(LOW,27);Varo6:=HHV(HIGH,34);Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;建仓区: IF((Varo7<10),80,100) ,color00ccff,linethick1;0,linethick2 ,colorffcc00;DRAWICON(CROSS(100,var1),100,2);DRAWICON((100-var1<3 AND 100-var1>0),100,2);DRAWTEXT(CROSS(85,var1),85,'▼'),colorgreen;DRAWTEXT(CROSS(var1,35),35,'▲'),colorred;DRAWTEXT(CROSS(var1,104),104,'◆'),colorblue;DRAWTEXT(CROSS(var1,110) OR CROSS(var1,120),115,'○'),colorwhite;强弱分界线:55,colorred;Y:=IF((55-var1)>=0,-1,1),colorgreen;持有:Y=1,colorred;观望:Y=-1,colorgreen;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:13
输出VAR1:4*SMA((收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100,5,1)-3*SMA(SMA((收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100,5,1),3.2,1),COLORYEL最低价,LINETHICK0
输出VAR2:8,COLORGREEN,LINETHICK0
输出上升在即: IF(VAR1上穿VAR2,50,0),STICK,COLOR0000CC,LINETHICK2
如果VAR1<=8返回25否则返回0
DRAWICON(VAR1上穿VAR2,8,1)
VARO5赋值:27日内最低价最低值
VARO6赋值:34日内最高价最高值
VARO7赋值:EMA((收盘价-VARO5)/(VARO6-VARO5)*4,4)*25
输出建仓区: IF((VARO7<10),80,100) ,COLOR00CCFF,LINETHICK1
0,LINETHICK2 ,COLORFFCC00
DRAWICON(100上穿VAR1,100,2)
DRAWICON((100-VAR1<3 AND 100-VAR1>0),100,2)
DRAWTEXT(85上穿VAR1,85,'▼'),COLORGREEN
DRAWTEXT(VAR1上穿35,35,'▲'),画红色
DRAWTEXT(VAR1上穿104,104,'◆'), 画蓝色
DRAWTEXT(VAR1上穿110 OR VAR1上穿120,115,'○'),画白色
输出强弱分界线:55,画红色
Y赋值:IF((55-VAR1)>=0,-1,1),COLORGREEN
输出持有:Y=1,画红色
输出观望:Y=-1,COLORGREEN