通达信冠军底部副图指标 源码分享 附图
VARA:=LLV(LOW,36);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
趋势:=VARC,COLORMAGENTA;
底背:STICKLINE(VARC<10,27,37,8,0),COLORFF6600;
{---------底部信号-----------------------------};
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
底部N:IF(VAR9<-18,6,0),COLORFFFFFF,NODRAW;
STICKLINE(底部N>0,0,25,6,0),COLOR333333;{底部蓝色块}
{冠军排序}
DEA66:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 6)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 12)),9);
DEA12:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 12)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 24)),9);
DEA18:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 18)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 36)),9);
DEA51:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 51)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12),102)),9);
DEA102:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12),102)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12),204)),9);
多头1:=DEA102>0 AND DEA51>0;
多头2:=DEA102>0 AND DEA66>DEA12 AND DEA12>DEA18;
多头3:=DEA18>DEA51 AND DEA18>DEA102 AND DEA18>0;
多头:=多头1=1 OR 多头2=1 OR 多头3=1;
空头1:=DEA18>DEA51 OR DEA18>DEA102;
空头2:=DEA51>DEA102;
空头:=空头1=1 OR 空头2=1;
抄底1:=DEA66>DEA12 AND DEA12>DEA18;
抄底2:=抄底1=1 OR 多头=1 OR 空头=1;
抄底:IF(抄底2,0,12),COLORYELLOW,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VARA赋值:36日内最低价最低值
VARB赋值:30日内最高价最高值
VARC赋值:EMA((收盘价-VARA)/(VARB-VARA)*4,4)*25
趋势赋值:VARC,画洋红色
当满足条件VARC<10时,在27和37之间画柱状线
{---------底部信号-----------------------------}
VAR8赋值:600*(收盘价的3日指数移动平均-最低价的30日指数移动平均)/最低价的30日指数移动平均
VAR9赋值:VAR8的7日指数移动平均
如果VAR9<-18返回6否则返回0
当满足条件底部N>0时,在0和25之间画柱状线
{底部蓝色块}
{冠军排序}
DEA66赋值:EMA((EMA(EMA(收盘价,4)-EMA(收盘价,12), 6)-EMA(EMA(收盘价,4)-EMA(收盘价,12), 12)),9)
DEA12赋值:EMA((EMA(EMA(收盘价,4)-EMA(收盘价,12), 12)-EMA(EMA(收盘价,4)-EMA(收盘价,12), 24)),9)
DEA18赋值:EMA((EMA(EMA(收盘价,4)-EMA(收盘价,12), 18)-EMA(EMA(收盘价,4)-EMA(收盘价,12), 36)),9)
DEA51赋值:EMA((EMA(EMA(收盘价,4)-EMA(收盘价,12), 51)-EMA(EMA(收盘价,4)-EMA(收盘价,12),102)),9)
DEA102赋值:EMA((EMA(EMA(收盘价,4)-EMA(收盘价,12),102)-EMA(EMA(收盘价,4)-EMA(收盘价,12),204)),9)
多头1赋值:DEA102>0 AND DEA51>0
多头2赋值:DEA102>0 AND DEA66>DEA12 AND DEA12>DEA18
多头3赋值:DEA18>DEA51 AND DEA18>DEA102 AND DEA18>0
多头赋值:多头1=1 OR 多头2=1 OR 多头3=1
空头1赋值:DEA18>DEA51 OR DEA18>DEA102
空头2赋值:DEA51>DEA102
空头赋值:空头1=1 OR 空头2=1
抄底1赋值:DEA66>DEA12 AND DEA12>DEA18
抄底2赋值:抄底1=1 OR 多头=1 OR 空头=1
如果抄底2返回0否则返回12