一部古书{通达信、副图、源码、贴图}
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
0,COLORYELLOW;90,COLORGREEN;
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
STICKLINE(FILTER(VAR6,10)=1,0,90,2,0),COLORRED;
DRAWTEXT(FILTER(VAR6,10)=1,79,' 底'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VAR6,10)=1,67,' 部'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VAR6,10)=1,55,' 信'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VAR6,10)=1,43,' 号'),LINETHICK1,COLOR00AAFF;
VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(FILTER(VAR7,5)=1,0,90,2,0),COLORGREEN ;
DRAWTEXT(FILTER(VAR7,5)=1,79,' 顶'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VAR7,5)=1,67,' 部'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VAR7,5)=1,55,' 信'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VAR7,5)=1,43,' 号'),LINETHICK1,COLORFFCC66;
BAR1:=REF(LOW,1);
BAR2:=SMA(ABS(LOW-BAR1),13,1)/SMA(MAX(LOW-BAR1,0),13,1)*4;
BAR3:=EMA(BAR2,13);
BAR4:=LLV(LOW,34);
BAR5:=EMA(IF(LOW<=BAR4,BAR3,0),3);
BAR6:=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);
BAR7:=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);
BAR8:=BAR6<REF(BAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,62,'主'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,50,'力'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,38,'进'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,26,'场'),COLORFF00FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(收盘价-36日内最低价最低值)/(36日内最高价最高值-36日内最低价最低值)*100
VAR1的3日[1日权重]移动平均
VAR2的3日[1日权重]移动平均
VAR3的3日[1日权重]移动平均
0,画黄色
90,画绿色
VAR6赋值:VAR3上穿VAR4 AND VAR3<20
STICKLINE(VAR6的10过滤=1,0,90,2,0),画红色
DRAWTEXT(VAR6的10过滤=1,79,' 底'),LINETHICK1,COLOR00AAFF
DRAWTEXT(VAR6的10过滤=1,67,' 部'),LINETHICK1,COLOR00AAFF
DRAWTEXT(VAR6的10过滤=1,55,' 信'),LINETHICK1,COLOR00AAFF
DRAWTEXT(VAR6的10过滤=1,43,' 号'),LINETHICK1,COLOR00AAFF
VAR7赋值:VAR4上穿VAR3 AND VAR3>80
STICKLINE(VAR7的5过滤=1,0,90,2,0),画绿色
DRAWTEXT(VAR7的5过滤=1,79,' 顶'),LINETHICK1,COLORFFCC66
DRAWTEXT(VAR7的5过滤=1,67,' 部'),LINETHICK1,COLORFFCC66
DRAWTEXT(VAR7的5过滤=1,55,' 信'),LINETHICK1,COLORFFCC66
DRAWTEXT(VAR7的5过滤=1,43,' 号'),LINETHICK1,COLORFFCC66
BAR1赋值:1日前的最低价
BAR2赋值:SMA(最低价-BAR1的绝对值,13,1)/SMA(最低价-BAR1和0较大值,13,1)*4
BAR3赋值:BAR2的13日指数移动平均
BAR4赋值:34日内最低价最低值
如果最低价<=BAR4返回BAR3否则返回0
BAR6赋值:100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
BAR7赋值:100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
BAR8赋值:BAR6<1日前的BAR7 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
DRAWTEXT(BAR8 AND 统计30日满足BAR8的天数=1,62,'主'),COLORFF00FF
DRAWTEXT(BAR8 AND 统计30日满足BAR8的天数=1,50,'力'),COLORFF00FF
DRAWTEXT(BAR8 AND 统计30日满足BAR8的天数=1,38,'进'),COLORFF00FF
DRAWTEXT(BAR8 AND 统计30日满足BAR8的天数=1,26,'场'),COLORFF00FF