来函数检测结果如下:
该公式没有未来函数
M1:=5;
M2:=10;
M3:=20;
M4:=60;
M5:=120;
M6:=250;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
N1:=7;
{STICKLINE(C>0,0,50,15,0),COLORBLUE;}
VAR1:=REF(C,1);
VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;
VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1);
VAR4:=VAR2=VAR3;
VAR5:=VAR2<REF(VAR2,1);
DRAWICON(VAR4 AND VAR5,L*0.98,1);
DRAWTEXT(VAR4 AND VAR5,L*0.95,'买')COLORRED;
RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VAR6:=(2*C+H+L)/3;{可将3该为4,信号少点}
VAR7:=EMA(EMA(EMA(VAR6,4),4),4);{可将3该为4,信号少点}
VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;
VAR9:=MA(VAR8,3)+0.03;
VAR10:=MA(VAR8,1);
DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1.02,15),COLORGREEN;
DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1.05,'卖'),COLORYELLOW;
AA:=BARSCOUNT(C);
AH:=HHV(H,120);
AL:=LLV(L,120);
A0:=(AH-AL)/30;
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L*0.99,L*0.97,2,0),COLORF00FF0;
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*0.97,'时间窗'),COLORF00FF0;
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=1;
VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.95,'←吸'),COLORRED;
DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*0.98,'←地量买点'),COLORLICYAN;
DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),L*0.98,'CCI买点'),COLORYELLOW;
原理解析:
M1赋值:5
M2赋值:10
M3赋值:20
M4赋值:60
M5赋值:120
M6赋值:250
输出MA1:收盘价的M1日简单移动平均
输出MA2:收盘价的M2日简单移动平均
输出MA3:收盘价的M3日简单移动平均
输出MA4:收盘价的M4日简单移动平均
输出MA5:收盘价的M5日简单移动平均
输出MA6:收盘价的M6日简单移动平均
N1赋值:7
当满足条件C>0时,在0和50之间画柱状线
}VAR1赋值:1日前的C
VAR2赋值:SMA(C-VAR1和0较大值,N1,1)/SMA(C-VAR1的绝对值,N1,1)*1000
VAR3赋值:DRAWLINE(VAR2>=N1日内VAR2最高值,VAR2,VAR2<=N1日内VAR2最低值,VAR2,1)
VAR4赋值:VAR2=VAR3
VAR5赋值:VAR2<1日前的VAR2
当满足条件VAR4 AND VAR5时,在L*0.98和1之间画图标
当满足条件VAR4 AND VAR5时,在L*0.95和'买'位置书写文字
RSV赋值:(C-25日内L最低值)/(25日内最高价最高值-25日内L最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
VAR6赋值:(2*C+H+L)/3
{可将3该为4,信号少点}VAR7赋值:VAR6的4日指数移动平均,4),4)
{可将3该为4,信号少点}VAR8赋值:(VAR7-1日前的VAR7)/1日前的VAR7*100
VAR9赋值:VAR8的3日简单移动平均+0.03
VAR10赋值:VAR8的1日简单移动平均
DRAWICON(VAR9上穿VAR10 AND J>65,H*1.02,15),画绿色
DRAWTEXT(VAR9上穿VAR10 AND J>65,H*1.05,'卖'),画黄色
AA赋值:C的有效数据周期数
AH赋值:120日内H最高值
AL赋值:120日内L最低值
A0赋值:(AH-AL)/30
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L*0.99,L*0.97,2,0),COLORF00FF0
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*0.97,'时间窗'),COLORF00FF0
VAR2S:=(2*收盘价+最高价+最低价)/4
VAR3S:=1
VAR4S:=5日内最低价最低值
VAR5S:=4日内最高价最高值
散户赋值:EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S
庄家赋值:E0.667*1日前的散户+0.333*散户的2日简单移动平均*VAR3S
DRAWTEXT(散户上穿庄家 AND 散户<30,L*0.95,'←吸'),COLORRED
DRAWTEXT(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L*0.98,'←地量买点'),COLORLICYAN
DRAWTEXT(LAST(C的5日简单移动平均1日前的"CCI.CCI" AND "CCI.CCI"上穿-100,L*0.98,'CCI买点'),画黄色