波段趋势金叉是买入点死叉是卖出点
{波段趋势}波段趋势:0,COLOR666666;金叉介入死叉跑:0,COLOR666666;红带启动绿带逃:0,COLOR666666;上扬加速头部跑:0,COLOR666666;VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);DRAWBAND(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),RGB(148,0,211),EMA(0.667*REF(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),1)+0.333*EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),2),RGB(60,179,113));快线:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK2,COLORRED;慢线:EMA(0.667*REF(快线,1)+0.333*快线,2),COLOR00FF00,DOTLINE;超买区域:80,COLOR00FF00,DOTLINE;强弱分界线:50,COLORFFFFFF,DOTLINE;超卖区域:20,COLOR8000FF,DOTLINE;KVD1:=IF(CLOSE>REF(CLOSE,1),88,0);KVD2:=IF(CLOSE/REF(CLOSE,1)>1.01 AND HIGH/CLOSE<1.010 AND KVD1>0,91,0)>1;KVD3:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;KVD4:=(KVD3-REF(KVD3,1))>1;KVD5:=C/REF(C,1)<1.2;AR1:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;AR2:=(SMA(AR1,5,1)+2*STD(CLOSE,37))<50;ECP1:=KVD2 AND KVD4 AND KVD5 AND AR2;ECP:=CROSS(快线,慢线) AND 快线<35 AND KVD2 AND KVD4 AND KVD5 AND AR2;WRN:=(CROSS(慢线,快线) AND 慢线>75) OR (CROSS(快线,65) AND 慢线<快线);起动:CROSS(快线,慢线) AND 快线<22,COLORLIGREEN,NODRAW;买入:IF(ECP,25,5),LINETHICK1,COLORFF8080;卖出:IF(WRN,80,90),LINETHICK1,COLOR00FFFF;DRAWICON(CROSS(快线,慢线)AND 快线<18.6,慢线,56);DRAWICON(CROSS(慢线,快线)AND 快线>78.6,慢线,15);DRAWTEXT(CROSS(快线,慢线) AND 快线<22,20,'起动'),LINETHICK2,COLOR0099FF;DRAWICON(CROSS(快线,慢线) AND 快线<22,25,1);DRAWTEXT(CROSS(快线,30) AND 慢线<快线,40,'上扬'),LINETHICK2,COLOR00CCFF;DRAWICON(CROSS(快线,30) AND 慢线<快线,35,1);DRAWTEXT(CROSS(快线,65) AND 慢线<快线,55,'冲顶'),LINETHICK2,COLOR9933FF;DRAWICON(CROSS(快线,65) AND 慢线<快线,70,2);DRAWTEXT(CROSS(快线,75) AND 慢线<快线,67,'小心被套'),LINETHICK2,COLORFF8080;DRAWICON(CROSS(快线,75) AND 慢线<快线,80,2);DRAWTEXT(CROSS(慢线,快线) AND 慢线>75,80,'头部'),COLORYELLOW;DRAWICON(CROSS(慢线,快线) AND 慢线>75,85,2);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出{波段趋势}波段趋势:0,COLOR666666
输出金叉介入死叉跑:0,COLOR666666
输出红带启动绿带逃:0,COLOR666666
输出上扬加速头部跑:0,COLOR666666
VAR3赋值:(2*收盘价+最高价+最低价)/4
VAR4赋值:34日内最低价最低值
VAR5赋值:34日内最高价最高值
DRAWBAND(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),RGB(148,0,211),EMA(0.667*REF(EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),1)+0.333*EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),2),RGB(60,179,113))
输出快线:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13), 线宽为2,画红色
输出慢线:E0.667*1日前的快线+0.333*快线的2日简单移动平均,COLOR00FF00,DOTLINE
输出超买区域:80,COLOR00FF00,DOTLINE
输出强弱分界线:50,COLORFFFFFF,DOTLINE
输出超卖区域:20,COLOR8000FF,DOTLINE
KVD1赋值:IF(收盘价>1日前的收盘价,88,0)
KVD2赋值:IF(收盘价/1日前的收盘价>1.01 AND 最高价/收盘价<1.010 AND KVD1>0,91,0)>1
KVD3赋值:EMA(100*(收盘价-34日内最低价最低值)/(34日内最高价最高值-34日内最低价最低值),3)/4
KVD4赋值:(KVD3-1日前的KVD3)>1
KVD5赋值:C/1日前的C<1.2
AR1赋值:(收盘价-37日内最低价最低值)/(37日内最高价最高值-37日内最低价最低值)*100
AR1的5日[1日权重]移动平均
ECP1赋值:KVD2 AND KVD4 AND KVD5 AND AR2
ECP赋值:快线上穿慢线 AND 快线<35 AND KVD2 AND KVD4 AND KVD5 AND AR2
WRN赋值:(慢线上穿快线 AND 慢线>75) OR (快线上穿65 AND 慢线<快线)
输出起动:快线上穿慢线 AND 快线<22,COLORLIGREEN,NODRAW
如果ECP返回25否则返回5
如果WRN返回80否则返回90
DRAWICON(快线上穿慢线AND 快线<18.6,慢线,56)
DRAWICON(慢线上穿快线AND 快线>78.6,慢线,15)
DRAWTEXT(快线上穿慢线 AND 快线<22,20,'起动'), 线宽为2,COLOR0099FF
DRAWICON(快线上穿慢线 AND 快线<22,25,1)
DRAWTEXT(快线上穿30 AND 慢线<快线,40,'上扬'), 线宽为2,COLOR00CCFF
DRAWICON(快线上穿30 AND 慢线<快线,35,1)
DRAWTEXT(快线上穿65 AND 慢线<快线,55,'冲顶'), 线宽为2,COLOR9933FF
DRAWICON(快线上穿65 AND 慢线<快线,70,2)
DRAWTEXT(快线上穿75 AND 慢线<快线,67,'小心被套'), 线宽为2,COLORFF8080
DRAWICON(快线上穿75 AND 慢线<快线,80,2)
DRAWTEXT(慢线上穿快线 AND 慢线>75,80,'头部'),画黄色
DRAWICON(慢线上穿快线 AND 慢线>75,85,2)