通达信F808逃顶
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势: IF(VAR6>45,VAR6-45,0);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),3,0),COLORFF00FF;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),3,0),COLOR00FF00;
强弱分界:50,POINTDOT,COLORFFFFCC;
0,COLOR00FFFF;
20,POINTDOT,COLORFFAA66,LINETHICK1;
80,POINTDOT,COLORFFAA66,LINETHICK1;
100,COLORFFFF33;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),7,'●'),COLORFFFFFF;
DRAWTEXT(CROSS(3.5,价位线),102,'●'),COLORFFFFFF;
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;
VAR9Q:=IF(VAR8Q>100,100,VAR8Q);
吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2;
{会员之星}
VARHF:=TROUGHBARS(3,15,1)<4;
多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
STICKLINE(FILTER(VARHF=1,5) AND 多空<-10,80,0,2,0),COLORF00FF0;
STICKLINE(FILTER(VARHF=1,5),80,0,1,0),COLORYELLOW;
DRAWTEXT(FILTER(VARHF=1,3),65,'★会员之星★'),COLORRED ;
STICKLINE(多空<-10,0,多空/2,0.5,0),COLORYELLOW;
{STICKLINE(多空>10,0,多空,0.6,0),COLORRED;}
{雄起}
雄起:=KDJ.J>20 AND
KDJ.J<80 AND
DMI.PDI>REF(DMI.PDI,1)AND
DMI.PDI<20 AND
CROSS(CCI(14),-100);
STICKLINE(雄起,0,80,2,0),COLORRED;
DRAWTEXT(雄起,80,'一阳指'),COLORRED ;
{}
VXAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VXAR2:=SMA(ABS(LOW-VXAR1),13,1)/SMA(MAX(LOW-VXAR1,0),10,1);
VXAR3:=EMA(VXAR2,10);
VXAR4:=LLV(LOW,33);
VXAR5:=EMA(IF(LOW<=VXAR4,VXAR3,0),3);
主力进场:IF(VXAR5>REF(VXAR5,1),VXAR5,0),COLORRED,NODRAW;
STICKLINE(VXAR5>REF(VXAR5,1),0,VXAR5,3,0 ),COLORRED;
洗盘:IF(VXAR5<REF(VXAR5,1),VXAR5,0),COLORGREEN,NODRAW;
STICKLINE(VXAR5<REF(VXAR5,1),0,VXAR5,3,0),COLORGREEN;
{}
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLOR555555;
大买主升浪:IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,90,0),COLOR1010FF,LINETHICK2;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,4);
涨停初现:IF((V7 AND COUNT(V7,3)=1),40,0),COLORCYAN,STICK,LINETHICK3;
LS:=C/REF(C,1)>1.040 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1
*FORCAST(V,5)),COLORFF6600,LINETHICK1;
买涨停:FILTER(LS,28)*40,COLORFF6600,LINETHICK3 ,STICK;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26 ,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
黑马线:=IF( VAR28>0.1,VAR29,0)*3, COLOR400080,LINETHICK2;
低买:IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.04,50,0),COLOR00FFFF,LINETHICK1;
高卖:IF(PEAKBARS(3,6,1)<1.0=1,70,0),COLORGREEN,LINESTICK,LINETHICK2;
最佳买入: ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),COLORRED,LINETHICK2;
DRAWTEXT(最佳买入=1,40,'最佳买点'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(9日内最高价最高值-收盘价)/(9日内最高价最高值-9日内最低价最低值)*100-70
VAR1的9日[1日权重]移动平均
VAR3赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
VAR3的3日[1日权重]移动平均
VAR4的3日[1日权重]移动平均
VAR6赋值:VAR5-VAR2
如果VAR6>45返回VAR6-45否则返回0
STICKLINE(1日前的趋势< 趋势, 趋势,1日前的趋势,3,0),COLORFF00FF
STICKLINE(1日前的趋势> 趋势, 趋势,1日前的趋势,3,0),COLOR00FF00
输出强弱分界:50,POINTDOT,COLORFFFFCC
0,COLOR00FFFF
20,POINTDOT,COLORFFAA66,LINETHICK1
80,POINTDOT,COLORFFAA66,LINETHICK1
100,COLORFFFF33
V1赋值:10日内最低价最低值
V2赋值:25日内H最高值
价位线赋值:EMA((C-V1)/(V2-V1)*4,4)
DRAWTEXT(价位线上穿0.3,7,'●'),COLORFFFFFF
DRAWTEXT(3.5上穿价位线,102,'●'),COLORFFFFFF
VAR2Q:=1日前的最低价
VAR3Q:=SMA(最低价-VAR2Q的绝对值,3,1)/SMA(最低价-VAR2Q和0较大值,3,1)*100
如果收盘价*1.3返回VAR3Q*10否则返回VAR3Q/10
VAR5Q:=30日内最低价最低值
VAR6Q:=30日内VAR4Q最高值
VAR7Q赋值:IF(收盘价的58日简单移动平均,1,0)
VAR8Q赋值:EMA(IF(最低价<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q
如果VAR8Q>100返回100否则返回VAR8Q
当满足条件VAR9Q>-120时,在0和VAR9Q之间画柱状线
AA3赋值:(21日内最高价最高值-收盘价)/(21日内最高价最高值-21日内最低价最低值)*100-10
AA4赋值:(收盘价-21日内最低价最低值)/(21日内最高价最高值-21日内最低价最低值)*100
AA4的13日[8日权重]移动平均
AA5的13日[8日权重]移动平均
AA3的21日[8日权重]移动平均
当满足条件走势-AA6>85时,在103和100之间画柱状线
{会员之星}
VARHF赋值:TROUGHBARS(3,15,1)<4
多空赋值:EMA((收盘价-MA((2*收盘价+最高价+最低价)/4,30))/MA((2*收盘价+最高价+最低价)/4,30)*100,3)
STICKLINE(VARHF=1的5过滤 AND 多空<-10,80,0,2,0),COLORF00FF0
STICKLINE(VARHF=1的5过滤,80,0,1,0),画黄色
DRAWTEXT(VARHF=1的3过滤,65,'★会员之星★'),画红色
当满足条件多空<-10时,在0和多空/2之间画柱状线
当满足条件多空>10时,在0和多空之间画柱状线
}
{雄起}
雄起赋值:KDJ.J>20 AND
KDJ.J<80 AND
DMI.PDI>1日前的DMI.PDIAND
DMI.PDI<20 AND
CROSS(CCI(14),-100)
当满足条件雄起时,在0和80之间画柱状线
当满足条件雄起时,在80和'一阳指'位置书写文字
{}
VXAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VXAR2赋值:SMA(最低价-VXAR1的绝对值,13,1)/SMA(最低价-VXAR1和0较大值,10,1)
VXAR3赋值:VXAR2的10日指数移动平均
VXAR4赋值:33日内最低价最低值
如果最低价<=VXAR4返回VXAR3否则返回0
输出主力进场:IF(VXAR5>1日前的VXAR5,VXAR5,0),画红色,NODRAW
STICKLINE(VXAR5>1日前的VXAR5,0,VXAR5,3,0 ),画红色
输出洗盘:IF(VXAR5<1日前的VXAR5,VXAR5,0),画绿色,NODRAW
STICKLINE(VXAR5<1日前的VXAR5,0,VXAR5,3,0),画绿色
{}
LC赋值:1日前的收盘价
RSI1赋值:SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100,COLOR555555
输出大买主升浪:IF(TROUGHBARS(3,16,1)=0 AND 最高价>最低价+0.04,90,0),COLOR1010FF, 线宽为2
V6赋值:收盘价/3日前的收盘价>=1.1
V7赋值:BACKSET(V6,4)
输出涨停初现:IF((V7 AND 统计3日满足V7的天数=1),40,0),画青色,STICK, 线宽为3
LS赋值:C/1日前的C>1.040 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1
*FORCAST(V,5)),COLORFF6600,LINETHICK1
输出买涨停:LS的28过滤*40,COLORFF6600, 线宽为3 ,STICK
VAR26:=收盘价的2日指数移动平均-收盘价的150日指数移动平均
VAR27:=VAR26 的100日指数移动平均
VAR28:=2*(VAR26-VAR27)
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1)
如果 VAR28>0.1返回VAR29否则返回0
输出低买:IF(TROUGHBARS(3,6,1)=0 AND 最高价>最低价+0.04,50,0),COLOR00FFFF,LINETHICK1
输出高卖:IF(PEAKBARS(3,6,1)<1.0=1,70,0),画绿色,LINESTICK, 线宽为2
输出最佳买入: ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)[当满足条件最佳买入=1时,在40和'最佳买点'位置书写文字]