通达信【高空低多】副图指标 擅长抄底逃顶 源码分享 附图
VAR1:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR2:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VAR3:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VAR4:=(2*CLOSE+HIGH+LOW)/4;
VAR5:=LLV(LOW,34);
VAR6:=HHV(HIGH,34);
VAR7:=LLV(LOW,21);
VAR8:=HHV(HIGH,21);
VAR9:=EMA((VAR4-VAR7)/(VAR8-VAR5)*100,5);
VAR27:=EMA((VAR4-VAR5)/(VAR6-VAR5)*100,8);
VAR28:=EMA(VAR27,5);
底买入:IF(VAR2+VAR3<7 AND CROSS(VAR1,EMA(VAR1,7)) AND EMA(VAR1,7)<-18 AND EMA(VAR1,7)<VAR3,60,50),COLORLIGREEN,DOTLINE;
股价重心:VAR9,COLORWHITE;
顶区:VAR27;
STICKLINE(VAR9-VAR27+20>=20,VAR9-VAR27+20,20,1,0),COLORF000FF;
STICKLINE(VAR27>0 AND (VAR27-VAR28)>=0,80,78,1,0),COLORRED;
STICKLINE(VAR27>0 AND (VAR27-VAR28)<0,80,78,1,1),COLORBLUE;
STICKLINE(VAR27>0 AND (VAR27-VAR28)>=0,20,18,1,0),COLORRED;
STICKLINE(VAR27>0 AND (VAR27-VAR28)<0,20,18,1,1),COLORBLUE;
STICKLINE(VAR27>VAR28,VAR27,VAR28,1,1),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:600*(收盘价的3日指数移动平均-最低价的30日指数移动平均)/最低价的30日指数移动平均
VAR2赋值:(120*收盘价/100计算的获利盘比例-WINNER(100*收盘价/100))*100
VAR3赋值:(-100)*(120*收盘价/100计算的获利盘比例-WINNER(100*收盘价/100))+5
VAR4赋值:(2*收盘价+最高价+最低价)/4
VAR5赋值:34日内最低价最低值
VAR6赋值:34日内最高价最高值
VAR7赋值:21日内最低价最低值
VAR8赋值:21日内最高价最高值
VAR9赋值:EMA((VAR4-VAR7)/(VAR8-VAR5)*100,5)
VAR27:=EMA((VAR4-VAR5)/(VAR6-VAR5)*100,8)
VAR28:=VAR27的5日指数移动平均
输出底买入:IF(VAR2+VAR3<7 AND CROSS(VAR1,VAR1的7日指数移动平均) AND VAR1的7日指数移动平均<-18 AND VAR1的7日指数移动平均
输出股价重心:VAR9,画白色
输出顶区:VAR27
当满足条件VAR9-VAR27+20>=20时,在VAR9-VAR27+20和20之间画柱状线
STICKLINE(VAR27>0 AND (VAR27-VAR28)>=0,80,78,1,0),画红色
STICKLINE(VAR27>0 AND (VAR27-VAR28)<0,80,78,1,1), 画蓝色
STICKLINE(VAR27>0 AND (VAR27-VAR28)>=0,20,18,1,0),画红色
STICKLINE(VAR27>0 AND (VAR27-VAR28)<0,20,18,1,1), 画蓝色
当满足条件VAR27>VAR28时,在VAR27和VAR28之间画柱状线