金矿红绿白副图红买绿卖白庄来
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);选股买点: VAR10, coloryellow;组合买: (VAR11+VAR13+VAR15+VAR17), colorred;组合卖: (VAR12+VAR14+VAR16+VAR18), colorgreen;黑马线: IF(MONTH<2008 AND VAR1B>0.1,VAR1C,0)*1, COLOR6699CC;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);庄来了别放过:STICKLINE(VAR9>-120,0,VAR9,6,1),colorred;多方趋势:((7)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1),2,1)),COLOR0000FF;空方趋势:(EMA(MA(多方趋势,5),7)),COLORF0F000;STICKLINE((多方趋势>78) AND (多方趋势>=空方趋势),78,多方趋势,5,1),COLOR00FF00;STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,3,0),COLOR0000FF;STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,3,0),COLORF0F000;STICKLINE((空方趋势<14) AND (空方趋势>多方趋势),多方趋势,20,3,0),COLOR00FFFF;TJ:=FILTER((空方趋势<14) AND (空方趋势>多方趋势),6);DRAWTEXT(TJ,40,'低吸'),COLORFFFFFF;探测金矿:(空方趋势<12) AND (空方趋势<=多方趋势),COLOR00FFFF;选金股:CROSS(多方趋势,空方趋势) AND (空方趋势<22),COLOR0000FF;DRAWTEXT(CROSS(多方趋势,空方趋势) AND (空方趋势<22),30,'金股'),COLOR00FFFF;中间线:50,COLORFFFFFF,POINTDOT;TJ1:=CROSS(探测金矿 OR 选金股,0.5);TJ2:=CROSS(空方趋势,多方趋势);TJ3:=COUNT(TJ2,BARSLAST(TJ1));DRAWICON(TJ1,空方趋势*0.85,'buy');DRAWICON(TJ2 AND TJ3=1,空方趋势*1.15,'SELL');卖点:TJ2 AND TJ3=1
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR10赋值:IF(TROUGHBARS(3,16,1)=0 AND 最高价>最低价+0.04,4,0)
VAR11赋值:ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3)
VAR12赋值:ZIG(3,6)[=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3)]
VAR13赋值:ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3)
VAR14赋值:ZIG(3,22)[=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3)]
VAR15赋值:ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3)
VAR16赋值:ZIG(3,51)[=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3)]
VAR17赋值:ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3)
VAR18赋值:ZIG(3,72)[=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3)]
VAR19赋值:收盘价的2日指数移动平均-收盘价的150日指数移动平均
VAR1A赋值:VAR19的100日指数移动平均
VAR1B赋值:2*(VAR19-VAR1A)
VAR1C赋值:POW(VAR1B,3)*0.1+POW(VAR1B,1)
VAR1D赋值:SQRT(SQRT(最低价*最高价*开盘价*收盘价))
VAR1E赋值:VAR1D*0.97的3日指数移动平均
VAR1F赋值:(最高价+最低价+收盘价)/3
VAR20赋值:(VAR1F-VAR1F的14日简单移动平均)/(0.015*AVEDEV(VAR1F,14))
VAR21赋值:VAR1E上穿最低价
输出选股买点: VAR10, 画黄色
输出组合买: (VAR11+VAR13+VAR15+VAR17), 画红色
输出组合卖: (VAR12+VAR14+VAR16+VAR18), 画绿色
如果MONTH<2008 AND VAR1B>0.1返回VAR1C否则返回0
VAR2赋值:1日前的最低价
VAR3赋值:SMA(最低价-VAR2的绝对值,3,1)/SMA(最低价-VAR2和0较大值,3,1)*100
如果收盘价*1.3返回VAR3*10否则返回VAR3/10
VAR5赋值:30日内最低价最低值
VAR6赋值:30日内VAR4最高值
VAR7赋值:IF(收盘价的58日简单移动平均,1,0)
VAR8赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7
如果VAR8>100返回100否则返回VAR8
当满足条件VAR9>-120时,在0和VAR9之间画柱状线
输出多方趋势:((7)*(SMA(((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值))*(30),4,1))-(3)*(SMA(SMA(((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值))*(30),4,1),3,1))-SMA(SMA(SMA(((收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值))*(30),4,1),3,1),2,1)),COLOR0000FF
输出空方趋势:(E多方趋势的5日简单移动平均,7)),COLORF0F000
STICKLINE((多方趋势>78) AND (多方趋势>=空方趋势),78,多方趋势,5,1),COLOR00FF00
STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,3,0),COLOR0000FF
STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,3,0),COLORF0F000
STICKLINE((空方趋势<14) AND (空方趋势>多方趋势),多方趋势,20,3,0),COLOR00FFFF
TJ赋值:FILTER((空方趋势<14) AND (空方趋势>多方趋势),6)
当满足条件TJ时,在40和'低吸'位置书写文字
输出探测金矿:(空方趋势<12) AND (空方趋势<=多方趋势),COLOR00FFFF
输出选金股:多方趋势上穿空方趋势 AND (空方趋势<22),COLOR0000FF
DRAWTEXT(多方趋势上穿空方趋势 AND (空方趋势<22),30,'金股'),COLOR00FFFF
输出中间线:50,COLORFFFFFF,POINTDOT
TJ1:=探测金矿 OR 选金股上穿0.5
TJ2:=空方趋势上穿多方趋势
TJ3:=COUNT(TJ2,上次TJ1距今天数)
当满足条件TJ1时,在空方趋势*0.85和'BUY'之间画图标
当满足条件TJ2 AND TJ3=1时,在空方趋势*1.15和'SELL'之间画图标
输出卖点:TJ2 AND TJ3=1