通达信强者恒强套装指标 “强者恒强”战股市强者一号副图
YM1:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
YM2:=(HIGH-LOW);
YM3:=ABS((OPEN-CLOSE));
YM4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));
YM5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);
YM6:=((YM3/YM2)*VOL);
YM7:=((YM4/YM2)*VOL);
YM8:=((YM5/YM2)*VOL);
YM9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
YM10:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);
YM11:=(((MA(CLOSE,5)>MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,30))) AND (MA(CLOSE,30)>MA(CLOSE,60)));
YM12:=REF(CLOSE,1);
YM13:=((SMA(MAX((CLOSE-YM12),0),6,1)/SMA(ABS((CLOSE-YM12)),6,1))*100);
YM14:=IF((CLOSE>OPEN),(YM1*(HIGH-LOW)),IF((CLOSE<OPEN),(YM1*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)));
GS:=IF((CLOSE>OPEN),(0-(YM1*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(YM1*(HIGH-LOW))),(0-(VOL/2))));
YMGS:=(YM14+GS);
STICKLINE((YMGS<0),0,YMGS,5,0),COLOR33FF33;
STICKLINE((CLOSE>MA(CLOSE,30)),0,VOL,5,1),COLOR0000FF;
STICKLINE((CLOSE<MA(CLOSE,30)),0,VOL,5,1),COLOR00FF00;
STICKLINE((((YM6>=YM7) AND (YM6>=YM8)) AND (C>O)),0,YM6,4,0),COLOR00FFFF;
STICKLINE((((YM6>=YM7) AND (YM6>=YM8)) AND (C<O)),0,YM6,4,0),COLORFF0000;
STICKLINE(((YM8>YM6) AND (YM8>YM7)),0,YM8,4,0),COLORFFFFFF;
STICKLINE(((YM7>YM6) AND (YM7>YM8)),0,YM7,4,0),COLORFF00FF;
STICKLINE((VOL>(MA(VOL,5)*2.5)),0,VOL,2,0);
STICKLINE((YM14>0),YM14,0,2,0),COLOR0000FF;
DRAWTEXT(((((((((YM7>YM6) AND (YM10>2)) AND (YM9>YM8)) AND (CLOSE>MA(CLOSE,5))) AND (CLOSE>MA(CLOSE,30))) AND (HIGH>MA(CLOSE,60))) AND (VOL>MA(VOL,5))) AND (YM7>=MA(VOL,5))),VOL,'▼出货');
DRAWTEXT(((((((YM8>YM6) AND (YM8>YM7)) AND (YM10<(0-2))) AND (CLOSE<MA(CLOSE,30))) AND (YM8<(MA(VOL,5)/2))) AND (MA(VOL,5)<MA(VOL,10))),VOL,'●低进');
DRAWICON(((((((YM8>YM6) AND (YM8>YM7)) AND (YM10<(0-2))) AND (CLOSE<MA(CLOSE,30))) AND (YM8<(MA(VOL,5)/2))) AND (MA(VOL,5)<MA(VOL,10))),VOL,5);
DRAWTEXT((((((YM6>(MA(VOL,5)*2)) AND (YM6>=YM7)) AND (YM6>=YM8)) AND (CLOSE>OPEN)) OR ((VOL>(MA(VOL,5)*3)) AND YM11)),VOL,'◆强势');
DRAWTEXT(((DATE>700101) AND CROSS(84,YM13)),HIGH,'★卖出'),COLORWHITE;
DRAWICON(((DATE>700101) AND CROSS(84,YM13)),HIGH,6);
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
YM1赋值:(成交量/(((最高价-最低价)*2)-(收盘价-开盘价的绝对值)))
YM2赋值:(最高价-最低价)
YM3赋值:(开盘价-收盘价的绝对值)
YM4赋值:(最高价-IF((收盘价>开盘价),收盘价,开盘价))
YM5赋值:(IF((收盘价>开盘价),开盘价,收盘价)-最低价)
YM6赋值:((YM3/YM2)*成交量)
YM7赋值:((YM4/YM2)*成交量)
YM8赋值:((YM5/YM2)*成交量)
YM9赋值:IF(((成交量/当前流通股本)>0.001),1,EXP(LOG(((成交量/当前流通股本的绝对值*100)))))
YM10:=(((收盘价-收盘价的5日简单移动平均)/收盘价的5日简单移动平均)*100)
YM11:=(((收盘价的5日简单移动平均>收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均>收盘价的30日简单移动平均)) AND (收盘价的30日简单移动平均>收盘价的60日简单移动平均))
YM12:=1日前的收盘价
YM13:=((SMA(MAX((收盘价-YM12),0),6,1)/SMA((收盘价-YM12的绝对值),6,1))*100)
YM14:=IF((收盘价>开盘价),(YM1*(最高价-最低价)),IF((收盘价<开盘价),(YM1*((最高价-开盘价)+(收盘价-最低价))),(成交量/2)))
GS赋值:IF((收盘价>开盘价),(0-(YM1*((最高价-收盘价)+(开盘价-最低价)))),IF((收盘价<开盘价),(0-(YM1*(最高价-最低价))),(0-(成交量/2))))
YMGS赋值:(YM14+GS)
STICKLINE((YMGS<0),0,YMGS,5,0),COLOR33FF33
STICKLINE((收盘价>收盘价的30日简单移动平均),0,成交量,5,1),COLOR0000FF
STICKLINE((收盘价<收盘价的30日简单移动平均),0,成交量,5,1),COLOR00FF00
STICKLINE((((YM6>=YM7) AND (YM6>=YM8)) AND (C>O)),0,YM6,4,0),COLOR00FFFF
STICKLINE((((YM6>=YM7) AND (YM6>=YM8)) AND (CSTICKLINE(((YM8>YM6) AND (YM8>YM7)),0,YM8,4,0),COLORFFFFFF
STICKLINE(((YM7>YM6) AND (YM7>YM8)),0,YM7,4,0),COLORFF00FF
STICKLINE((成交量>(成交量的5日简单移动平均*2.5)),0,成交量,2,0)
STICKLINE((YM14>0),YM14,0,2,0),COLOR0000FF
DRAWTEXT(((((((((YM7>YM6) AND (YM10>2)) AND (YM9>YM8)) AND (收盘价>收盘价的5日简单移动平均)) AND (收盘价>收盘价的30日简单移动平均)) AND (最高价>收盘价的60日简单移动平均)) AND (成交量>成交量的5日简单移动平均)) AND (YM7>=成交量的5日简单移动平均)),成交量,'▼出货')
DRAWTEXT(((((((YM8>YM6) AND (YM8>YM7)) AND (YM10<(0-2))) AND (收盘价<收盘价的30日简单移动平均)) AND (YM8<(成交量的5日简单移动平均/2))) AND (成交量的5日简单移动平均<成交量的10日简单移动平均)),成交量,'●低进')
DRAWICON(((((((YM8>YM6) AND (YM8>YM7)) AND (YM10<(0-2))) AND (收盘价<收盘价的30日简单移动平均)) AND (YM8<(成交量的5日简单移动平均/2))) AND (成交量的5日简单移动平均<成交量的10日简单移动平均)),成交量,5)
DRAWTEXT((((((YM6>(成交量的5日简单移动平均*2)) AND (YM6>=YM7)) AND (YM6>=YM8)) AND (收盘价>开盘价)) OR ((成交量>(成交量的5日简单移动平均*3)) AND YM11)),成交量,'◆强势')
DRAWTEXT(((DATE>700101) AND 84上穿YM13),最高价,'★卖出'),画白色
DRAWICON(((DATE>700101) AND 84上穿YM13),最高价,6)