通达信量能饱和度
N:=20;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
STICKLINE(((CLOSE>0)AND BARSCOUNT(C)),0,100,3,1),COLOR777777;
STICKLINE(((SAT<=5)AND BARSCOUNT(C)),0,(0+SAT),2.9,1),COLORBLUE;
STICKLINE((((SAT>5)AND (SAT<=20))AND BARSCOUNT(C)),0,(0+SAT),3,0),COLORCCFF88;
STICKLINE((((SAT>20)AND(SAT<=40))AND BARSCOUNT(C)),0,(0+SAT),3,0),COLORFF00FF;
STICKLINE(((SAT>40)AND BARSCOUNT(C)),0,(0+SAT),2,0),COLORRED;
STICKLINE(((CLOSE>0)AND BARSCOUNT(C)),0,(0+SAT),2,0),COLORRED;
STICKLINE(((CLOSE<REF(CLOSE,1))AND BARSCOUNT(C)),0,(0+SAT),1,0),COLORLIGREEN;
均线:MA(SAT,N),COLORGREEN;
{股票指标网}
量能饱和度:SAT,LINETHICK2,COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:20
SAT赋值:IF((AMOUNT/C)/(N日内AMOUNT最高值/N日内C最高值)*100>100,100,(AMOUNT/C)/(N日内AMOUNT最高值/N日内C最高值)*100)
STICKLINE(((收盘价>0)AND C的有效数据周期数),0,100,3,1),COLOR777777
STICKLINE(((SAT<=5)AND C的有效数据周期数),0,(0+SAT),2.9,1), 画蓝色
STICKLINE((((SAT>5)AND (SAT<=20))AND C的有效数据周期数),0,(0+SAT),3,0),COLORCCFF88
STICKLINE((((SAT>20)AND(SAT<=40))AND C的有效数据周期数),0,(0+SAT),3,0),COLORFF00FF
STICKLINE(((SAT>40)AND C的有效数据周期数),0,(0+SAT),2,0),画红色
STICKLINE(((收盘价>0)AND C的有效数据周期数),0,(0+SAT),2,0),画红色
STICKLINE(((收盘价<1日前的收盘价)AND C的有效数据周期数),0,(0+SAT),1,0),COLORLIGREEN
输出均线:SAT的N日简单移动平均,COLORGREEN
输出
{股票指标网}
量能饱和度:SAT,LINETHICK2,画黄色