通达信大资金准备启动副图指标源码
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>500,500,VAR7);
STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;
STICKLINE(VAR8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLORRED;
STICKLINE(VAR8>0.1 AND VAR8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLOR00FFFF;
VAR1:=REF(LOW,1);
VAR2H:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),13,1))*4;
VAR3H:=EMA(VAR2H,13);
VAR4H:=LLV(LOW,34);
VAR5H:=EMA(IF(LOW<=VAR4H,VAR3H,0),3);
VAR6H:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR7H:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8H:=VAR6H<REF(VAR7H,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR8H AND COUNT(VAR8H,18)=1,0,18,8,0),COLORAA00BB;
STICKLINE(VAR8H AND COUNT(VAR8H,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(VAR8H AND COUNT(VAR8H,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(VAR8H AND COUNT(VAR8H,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(VAR8H AND COUNT(VAR8H,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(VAR8H AND COUNT(VAR8H,18)=1,18,'●↙大资金进场'),COLOR0099FF;
DRAWTEXT(VAR8H AND COUNT(VAR8H,18)=1,12,'●↙择机买入'),COLOR0033FF;
DRAWTEXT(VAR8H AND COUNT(VAR8H,18)=1,6,'●↙多数会涨'),COLORFFFFAA;
AR1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1)*100;
出手必中:CROSS(AR1,REF(AR1+0.01,1)) AND LLV(AR1,2)=LLV(AR1,8) AND AR1<20;
DRAWTEXT (出手必中,0.8,'!出手必中'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.1,0,' 牢记以下买入原则:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.2,0,' 1、严禁追票,买时多考虑,卖时要果断!'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.3,0,' 2、提前未跟踪不买,拉升不买,阳线放量更不买!'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.4,0,' 3、顺势而为,分批买入,高抛低吸,控制仓位!'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.5,0,' 4、短线看K线,中线看形态,长线重趋势!'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.6,0,' 5、开盘半小时只低吸,收盘前三分钟买确认!'),COLORLIRED;
MA5 :=EMA(CLOSE,5);
趋势:=MA5-EMA(MA5,2);
JCSJ1:=BARSLAST(CROSS(趋势,0))+1;
JCSJ2:=JCSJ1+REF(JCSJ1,JCSJ1);
双底:IF(JCSJ1=1 AND MA5>REF(MA5,JCSJ2) AND COUNT(趋势<0,4)>=2,1,0),COLORRED;
DRAWTEXT (双底,0.8,'!出手必赢'),COLORRED;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值:1日前的最低价
VAR3赋值:SMA(最低价-VAR2的绝对值,3,1)/SMA(最低价-VAR2和0较大值,3,1)*100
VAR4赋值:VAR3*10的3日指数移动平均
VAR5赋值:13日内最低价最低值
VAR6赋值:13日内VAR4最高值
VAR7赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618
如果VAR7>500返回500否则返回VAR7
当满足条件VAR8>-120时,在0和VAR8之间画柱状线
STICKLINE(VAR8>1 AND "KDJ.J">1日前的"KDJ.J" AND 1日前的"KDJ.J"<2日前的"KDJ.J",0,VAR8,3,0),画红色
STICKLINE(VAR8>0.1 AND VAR8<1 AND "KDJ.J">1日前的"KDJ.J" AND 1日前的"KDJ.J"<2日前的"KDJ.J",0,VAR8,3,0),COLOR00FFFF
VAR1赋值:1日前的最低价
VAR2H:=(SMA(最低价-VAR1的绝对值,13,1))/(SMA(最低价-VAR1和0较大值,13,1))*4
VAR3H:=VAR2H的13日指数移动平均
VAR4H:=34日内最低价最低值
如果最低价<=VAR4H返回VAR3H否则返回0
VAR6H:=100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR7H:=100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR8H:=VAR6H<1日前的VAR7H AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(VAR8H AND 统计18日满足VAR8H的天数=1,0,18,8,0),COLORAA00BB
STICKLINE(VAR8H AND 统计18日满足VAR8H的天数=1,0,18,8,0),COLORBB11BB
STICKLINE(VAR8H AND 统计18日满足VAR8H的天数=1,0,18,5,0),COLORCC22BB
STICKLINE(VAR8H AND 统计18日满足VAR8H的天数=1,0,18,3,0),COLORDD33BB
STICKLINE(VAR8H AND 统计18日满足VAR8H的天数=1,0,18,1,0),COLOREE44BB
DRAWTEXT(VAR8H AND 统计18日满足VAR8H的天数=1,18,'●↙大资金进场'),COLOR0099FF
DRAWTEXT(VAR8H AND 统计18日满足VAR8H的天数=1,12,'●↙择机买入'),COLOR0033FF
DRAWTEXT(VAR8H AND 统计18日满足VAR8H的天数=1,6,'●↙多数会涨'),COLORFFFFAA
AR1赋值:3*SMA((C-9日内L最低值)/(9日内H最高值-9日内L最低值)*100,3,1)-2*SMA(SMA((C-9日内L最低值)/(9日内H最高值-9日内L最低值)*100,3,1),3,1)*100
输出出手必中:CROSS(AR1,1日前的AR1+0.01) AND 2日内AR1最低值=8日内AR1最低值 AND AR1<20
DRAWTEXT (出手必中,0.8,'!出手必中'),画红色
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.2位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.3位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.4位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.5位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.01纵轴0.6位置书写文字
MA5 :=收盘价的5日指数移动平均
趋势赋值:MA5-MA5的2日指数移动平均
JCSJ1赋值:上次趋势上穿0距今天数+1
JCSJ2赋值:JCSJ1+JCSJ1日前的JCSJ1
输出双底:IF(JCSJ1=1 AND MA5>JCSJ2日前的MA5 AND 统计4日满足趋势<0的天数>=2,1,0),画红色
DRAWTEXT (双底,0.8,'!出手必赢'),画红色