整合7个买入信号+一个逃顶信号 出现买入信号越多准确率越高
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
天顶:=REFDATE(高1,DATE),NODRAW,COLORCYAN;
顶:=REFDATE(高1,DATE);
极顶:=REFDATE(顶,DATE);
跑:=极顶=H AND ((C-L)< (O-C) OR (O-L)< (C-O));
STICKLINE(跑,2.1,0,2,0),COLORGREEN;
DRAWTEXT(跑,1.9,'---逃顶')COLORGREEN;
逃顶:0,COLORGREEN;
AAA:=REF(C,1);
RSI:=SMA(MAX(C-AAA,0),6,1)/SMA(ABS(C-AAA),6,1)*100;
A4:=RSI< 20;
ZF:=(C/REF(C,1)-1)*100;
深坑:=IF(BETWEEN(A4,0,5) AND L<=REF(C,A4)AND ZF<=-5 ,20,0);
CD:= C>=O AND REF(深坑 ,1)=20 AND REF(RSI,1)< 20 ;
红柱子:=IF(C>O AND REF(深坑 ,1)=20 AND REF(RSI,1)< 20,60,0),COLORRED,LINETHICK2;
STICKLINE(红柱子,1.7,0,2,0),COLORRED;
红柱:0,COLORRED;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
AA:=VAR8>REF(VAR8,1);
DJ:=REF(LLV(L,100),3);
ZD:=REFDATE(DJ,DATE);
XG:=L=ZD;
XGA:=AA AND XG,COLORRED,LINETHICK2;
XG1:=XGA>REF(XGA,1);
起爆点:=XG1>REF(XG1,1);
STICKLINE(FILTER(起爆点>=1,5),1.4,0,2,0),COLORYELLOW;
起爆:0,COLORYELLOW;
LF:=(V-REF(HHV(V,20),1))/REF(V,1)*100;
JF:=(C-REF(HHV(C,20),1))/REF(C,1)*100;
有妖:=CROSS(LF,JF) AND CROSS(C,MA(C,10))COLORRED;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
A:=MA5>MA10 AND MA10>MA20 AND MA20>MA60;
卧倒:=BETWEEN(C/O,0.99,1.01) AND BETWEEN(C,MA10,MA5) AND A AND C< O;
N:=90;
M:=3;
低:=REF(LLV(L,N),M);
低点:=REFDATE(低,DATE);
谷底了:=(低点=L AND ((C-L)>(0-C) OR (O-L)>(C-O)))COLORMAGENTA,LINETHICK5,STICK;
STICKLINE(FILTER(谷底了>=1,5),1.1,0,2,0),COLORMAGENTA;
谷底:0,COLORMAGENTA;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MACD2:=MACD;
A1:=IF(MACD2>0,1,-1);
TJ:=MACD2>0;
T:=MACD2< 0;
A9:=LLV(MACD2,50)=MACD2;
买点出现:=A9 AND FILTERX(A9,20)COLORWHITE,LINETHICK5,STICK;
STICKLINE(FILTER(买点出现>=1,5),0.8,0,2,0),COLORWHITE;
买点:0,COLORWHITE;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)< REF(VAR02,1) AND VAR02< REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
龙头出现:=VAR05 AND COUNT(VAR05,5)=1,COLORLIGREEN,LINETHICK5,STICK;
STICKLINE(FILTER(龙头出现>=1,5),0.5,0,2,0),COLORLIGREEN;
龙头:0,COLORLIGREEN;
X_1:=IF(CLOSE>REF(CLOSE,1),88,0);
X_2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE< 1.01 AND X_1>0,91,0);
X_4:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_5:=SMA(X_4,3,1);
X_6:=SMA(X_5,3,1);
X_7:=3*X_5-2*X_6;
X_8:=REVERSE(X_7);
X_9:=REF(MA(CLOSE,1),10)>REF(MA(CLOSE,60),10);
XGGGG:=(CROSS(X_7,X_8) AND X_9)COLORDBDB70,LINETHICK5,STICK;
STICKLINE(FILTER(XGGGG>=1,5),0.2,0,2,0),COLORDBDB70;
庄显:0,COLORDBDB70;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A7赋值:C-1日前的C
A8赋值:100*A7的6日指数移动平均,6)/EMA(EMA(A7的绝对值,6),6)
日赋值:150
昨前赋值:3
高1赋值:REF(日日内H最高值,昨前)
天顶赋值:REFDATE(高1,DATE),NODRAW,COLORCYAN
顶赋值:REFDATE(高1,DATE)
极顶赋值:REFDATE(顶,DATE)
跑赋值:极顶=H AND ((C-L)< (O-C) OR (O-L)< (C-O))
当满足条件跑时,在2.1和0之间画柱状线
当满足条件跑时,在1.9和'---逃顶'位置书写文字
逃输出顶:0,COLORGREEN
AAA赋值:1日前的C
RSI赋值:SMA(C-AAA和0较大值,6,1)/SMA(C-AAA的绝对值,6,1)*100
A4赋值:RSI< 20
ZF赋值:(C/1日前的C-1)*100
深坑赋值:IF(BETWEEN(A4,0,5) AND L<=A4日前的CAND ZF<=-5 ,20,0)
CD赋值: C>=O AND 1日前的深坑 =20 AND 1日前的RSI< 20
红柱子赋值:IF(C>O AND 1日前的深坑 =20 AND 1日前的RSI< 20,60,0),画红色,LINETHICK2
当满足条件红柱子时,在1.7和0之间画柱状线
输出红柱:0,画红色
VAR2赋值:1日前的最低价
VAR3赋值:SMA(最低价-VAR2的绝对值,13,1)/SMA(最低价-VAR2和0较大值,13,1)*100
如果收盘价*1.2返回VAR3*13否则返回VAR3/13
VAR5赋值:34日内最低价最低值
VAR6赋值:34日内VAR4最高值
VAR7赋值:IF(56日内最低价最低值,1,0)
VAR8赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7
AA赋值:VAR8>1日前的VAR8
DJ赋值:REF(100日内L最低值,3)
ZD赋值:REFDATE(DJ,DATE)
XG赋值:L=ZD
XGA赋值:AA AND XG,画红色,LINETHICK2
XG1:=XGA>1日前的XGA
起爆点赋值:XG1>1日前的XG1
STICKLINE(起爆点>=1的5过滤,1.4,0,2,0),画黄色
输出起爆:0,画黄色
LF赋值:(V-REF(20日内V最高值,1))/REF(V,1)*100
JF赋值:(C-REF(20日内C最高值,1))/REF(C,1)*100
有妖赋值:LF上穿JF AND CROSS(C,C的10日简单移动平均)画红色
MA5赋值:C的5日简单移动平均
MA10赋值:C的10日简单移动平均
MA20赋值:C的20日简单移动平均
MA60赋值:C的60日简单移动平均
A赋值:MA5>MA10 AND MA10>MA20 AND MA20>MA60
卧倒赋值:BETWEEN(C/O,0.99,1.01) AND BETWEEN(C,MA10,MA5) AND A AND C< O
N赋值:90
M赋值:3
低赋值:REF(N日内L最低值,M)
低点:=REFDATE(低,DATE)
谷底了赋值:(低点=L AND ((C-L)>(0-C) OR (O-L)>(C-O)))COLORMAGENTA,LINETHICK5,STICK
STICKLINE(谷底了>=1的5过滤,1.1,0,2,0),COLORMAGENTA
输出谷底:0,COLORMAGENTA
DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
MACD赋值:(DIF-DEA)*2
MACD2:=MACD
如果MACD2>0返回1否则返回-1
TJ赋值:MACD2>0
T赋值:MACD2< 0
A9:=50日内MACD2最低值=MACD2
买点出现赋值:A9 AND FILTERX(A9,20)COLORWHITE,LINETHICK5,STICK
STICKLINE(买点出现>=1的5过滤,0.8,0,2,0),COLORWHITE
输出买点:0,COLORWHITE
VAR01:=EMA((收盘价-25日内最低价最低值)/(25日内最高价最高值-25日内最低价最低值)*100,5)
VAR02:=(25日内最高价最高值-25日内最低价最低值)/EMA((收盘价-25日内最低价最低值),5)
VAR03:=VAR02上穿VAR01
VAR04:=2日前的VAR02< 1日前的VAR02 AND VAR02< 1日前的VAR02
VAR05:=统计7日满足VAR03的天数>0 AND VAR04
龙头出现赋值:VAR05 AND 统计5日满足VAR05的天数=1,COLORLIGREEN,LINETHICK5,STICK
STICKLINE(龙头出现>=1的5过滤,0.5,0,2,0),COLORLIGREEN
输出龙头:0,COLORLIGREEN
X_1赋值:IF(收盘价>1日前的收盘价,88,0)
X_2赋值:IF(收盘价/1日前的收盘价>1.05 AND 最高价/收盘价< 1.01 AND X_1>0,91,0)
X_4赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
X_4的3日[1日权重]移动平均
X_5的3日[1日权重]移动平均
X_7赋值:3*X_5-2*X_6
X_8赋值:X_7的相反数
X_9赋值:REF(收盘价的1日简单移动平均,10)>REF(收盘价的60日简单移动平均,10)
XGGGG:=(X_7上穿X_8 AND X_9)COLORDBDB70,LINETHICK5,STICK
STICKLINE(XGGGG>=1的5过滤,0.2,0,2,0),COLORDBDB70
输出庄显:0,COLORDBDB70