通达信富力综合共振 转载源码
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,31);
VAR4:=LLV(LOW,5);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),13);
XΩ:IF(VAR5>REF(VAR5,1),VAR5,0),NODRAW,COLORGREEN;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.5,1),COLOR009F00;
波点:IF(VAR5<REF(VAR5,1),VAR5,0),NODRAW,COLORRED;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.5,1),COLOR871F78;
VAR6:=EMA(EMA(CLOSE,9),9);{股票指标网}
VAR7:=(VAR6-REF(VAR6,1))/REF(VAR6,1)*400;
STICKLINE(VAR7<0,VAR7,0,0.5,0),COLORFF4800;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7<0,VAR7,0,0.5,0),COLOR4D4DFF;
STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR7,0,0.5,0),COLORRED;
VAR8:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR7<REF(VAR7,1) AND VAR7>0,VAR7,0,0.5,0),COLORFF4800;
STICKLINE(VAR8>50 AND COST(85)<CLOSE AND VAR7>0,VAR7,0,0.5,0),COLOR3D3DFF;
VAR9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*24-12;
K:SMA(VAR9,9,1);
D:SMA(K,3,1);
J:3*K-2*D;
VARK:K,COLORWHITE,LINETHICK2;
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED,LINETHICK2;
走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORWHITE,LINETHICK2;
下降K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORFF2400,LINETHICK2;
VARD:D,COLORWHITE,LINETHICK2;
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORMAGENTA,LINETHICK2;
走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORWHITE,LINETHICK2;
下降D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORGREEN,LINETHICK2;
VARJ:J,COLORWHITE;
上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED;
走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORWHITE;
下降J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORBLUE;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARJ<=0 AND VARK>=REF(VARD,1),0,0+VARD,0,1),COLOR9F9F5F;
VAR10:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*24-12,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*24-12,5,1),3,1);
VAR11:=SMA(VAR10,5,4);
趋势:VAR10,NODRAW,COLOR00AAFF;
DRAWBAND(趋势,RGB(255,255,255),VAR11,RGB(0,0,155));
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的31日指数移动平均
VAR4赋值:5日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出XΩ:IF(VAR5>1日前的VAR5,VAR5,0),NODRAW,画绿色
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.5,1),COLOR009F00
输出波点:IF(VAR5<1日前的VAR5,VAR5,0),NODRAW,COLORRED
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.5,1),COLOR871F78
VAR6赋值:收盘价的9日指数移动平均,9)
{股票指标网}
VAR7赋值:(VAR6-1日前的VAR6)/1日前的VAR6*400
当满足条件VAR7<0时,在VAR7和0之间画柱状线
STICKLINE(VAR7>1日前的VAR7 AND VAR7<0,VAR7,0,0.5,0),COLOR4D4DFF
STICKLINE(VAR7>1日前的VAR7 AND VAR7>0,VAR7,0,0.5,0),COLORRED
VAR8赋值:100*收盘价*0.95计算的获利盘比例
STICKLINE(VAR7<1日前的VAR7 AND VAR7>0,VAR7,0,0.5,0),COLORFF4800
STICKLINE(VAR8>50 AND 获利盘为85%的成本分布<收盘价 AND VAR7>0,VAR7,0,0.5,0),COLOR3D3DFF
VAR9赋值:(收盘价-34日内最低价最低值)/(34日内最高价最高值-34日内最低价最低值)*24-12
VAR9的9日[1日权重]移动平均
K的3日[1日权重]移动平均
输出J:3*K-2*D
输出VARK:K,画白色, 线宽为2
输出上升K:IF(VARK>1日前的VARK,VARK,DRAWNULL),COLORRED, 线宽为2
输出走平K:IF(VARK=1日前的VARK,VARK,DRAWNULL),画白色, 线宽为2
输出下降K:IF(VARK<1日前的VARK,VARK,DRAWNULL),COLORFF2400, 线宽为2
VAR输出D:D,画白色, 线宽为2
上升输出D:IF(VARD>1日前的VARD,VARD,DRAWNULL),画洋红色, 线宽为2
走平输出D:IF(VARD=1日前的VARD,VARD,DRAWNULL),画白色, 线宽为2
下降输出D:IF(VARD<1日前的VARD,VARD,DRAWNULL),画绿色, 线宽为2
VAR输出J:J,画白色
上升输出J:IF(VARJ>1日前的VARJ,VARJ,DRAWNULL),COLORRED
走平输出J:IF(VARJ=1日前的VARJ,VARJ,DRAWNULL),画白色
下降输出J:IF(VARJ<1日前的VARJ,VARJ,DRAWNULL), 画蓝色
STICKLINE(VARK>=0 AND VARK>=1日前的VARK,0,0+VARD,0,1),COLOR9F9F5F
STICKLINE(VARK>=0 AND VARK>=1日前的VARK,0,0+VARJ,0,1),COLOR9F9F5F
STICKLINE(VARD>=0 AND VARD>=1日前的VARD,0,0+VARK,0,1),COLOR9F9F5F
STICKLINE(VARD>=0 AND VARD>=1日前的VARD,0,0+VARJ,0,1),COLOR9F9F5F
STICKLINE(VARJ>=0 AND VARJ>=1日前的VARJ,0,0+VARK,0,1),COLOR9F9F5F
STICKLINE(VARJ>=0 AND VARJ>=1日前的VARJ,0,0+VARD,0,1),COLOR9F9F5F
STICKLINE(VARK>=0 AND VARK>=1日前的VARK,0,0+VARK,0,1),COLOR9F9F5F
STICKLINE(VARD>=0 AND VARD>=1日前的VARD,0,0+VARD,0,1),COLOR9F9F5F
STICKLINE(VARJ>=0 AND VARJ>=1日前的VARJ,0,0+VARJ,0,1),COLOR9F9F5F
STICKLINE(VARJ<=0 AND VARK>=1日前的VARD,0,0+VARD,0,1),COLOR9F9F5F
VAR10:=3*SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*24-12,5,1)-2*SMA(SMA((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*24-12,5,1),3,1)
VAR10的5日[4日权重]移动平均
输出趋势:VAR10,NODRAW,COLOR00AAFF
DRAWBAND(趋势,RGB(255,255,255),VAR11,RGB(0,0,155))