通达信股市一条龙
年:=2014;
月:=10;
日:=8
-0.2,DOTLINE;
-0.5,DOTLINE;
-0.8,DOTLINE;
-1,DOTLINE;
0,DOTLINE;
Z:=ISLASTBAR;
X:-(HHV(HIGH,30)-CLOSE)/(HHV(HIGH,30)-LLV (LOW,30)),COLORMAGENTA,LINETHICK3;
XX:=(((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34))*1 ) * 100) * 5);
B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) *1 ) * 100) * 5);
B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) *1 ) * 100) * 5);
B003:=(((XX + B001) / 2) - (B002 ));
B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)));
B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) - LLV(LOW,42)));
B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) - LLV(LOW,72)));
B007:=EMA((((B004 + B005) / 2) - B006),6);
B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) *
1.25);
B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) *
1.25);
B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) *
1.25);
B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);
B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);
{股票指标网}
B016:=EMA(B012,4);
B017:=B012;
KKM1:=B013;
DPM1:=EMA(B013,4);
关注:=IF((YEAR = 年),1,0);
XY:=IF((MONTH = 月),1,0);
XM:=IF((DAY = 日),1,0);
XD:=(关注 * XY * XM);
VARX:=B017;
C023:=KKM1;
C024:=B016;
C025:=DPM1;
C026:=WINNER(CLOSE);
W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);
HWXWINNER:=W;
XD1:=EMA(W,6);
XWXMH:=XD1;
DRAWTEXT_FIX(Z,0.01,0.01,0,'上穿每一条虚线都是一个起点,下穿每一条虚线都是一个减仓点')COLORLIMAGENTA,LINETHICK2;
DRAWTEXT_FIX(((HWXWINNER>XWXMH) AND Z AND (XD>0)),0.01,0.8,0,'发现大庄家连续活动,重点关注'),LINETHICK2;
DRAWTEXT_FIX((((VARX>C023) AND Z AND (VARX>C024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线适度持股');
DRAWTEXT_FIX((((VARX>C023) AND Z AND (VARX<C024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线获利减仓');
DRAWTEXT_FIX((((VARX<C023) AND Z AND (VARX>C024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线择机进仓');
DRAWTEXT_FIX((((VARX<C023) AND Z AND (VARX<C024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线空仓观望');
DRAWTEXT_FIX((((C023>VARX) AND Z AND (C023>C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线空仓观望');
DRAWTEXT_FIX((((C023>VARX) AND Z AND (C023<C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线择机进仓');
DRAWTEXT_FIX((((C023<VARX) AND Z AND (C023>C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线获利减仓');
DRAWTEXT_FIX((((C023<VARX) AND Z AND (C023<C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线适度持股');
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
年赋值:2014
月赋值:10
日赋值:8
-0.2,DOTLINE
-0.5,DOTLINE
-0.8,DOTLINE
-1,DOTLINE
0,DOTLINE
Z赋值:ISLASTBAR
输出
X:-(30日内最高价最高值-收盘价)/(30日内最高价最高值-LLV (最低价,30)),画洋红色, 线宽为3
XX:=(((((收盘价 - 收盘价的34日简单移动平均) / 收盘价的34日简单移动平均)*1 ) * 100) * 5)
B001赋值:(((((收盘价 - 收盘价的42日简单移动平均) / 收盘价的42日简单移动平均) *1 ) * 100) * 5)
B002赋值:(((((收盘价 - 收盘价的67日简单移动平均) / 收盘价的67日简单移动平均) *1 ) * 100) * 5)
B003赋值:(((XX + B001) / 2) - (B002 ))
B004赋值:(((0 - 100) * (34日内最高价最高值 - 收盘价)) / (34日内最高价最高值 - 34日内最低价最低值))
B005赋值:(((0 - 100) * (42日内最高价最高值 - 收盘价)) / (42日内最高价最高值 - 42日内最低价最低值))
B006赋值:(((0 - 100) * (72日内最高价最高值 - 收盘价)) / (72日内最高价最高值 - 72日内最低价最低值))
B007赋值:EMA((((B004 + B005) / 2) - B006),6)
B008赋值:1日前的收盘价
B009赋值:((((SMA(MAX((收盘价 - B008),0),19,1) / SMA((收盘价 - B008的绝对值),19,1)) * 100) - 50) *
1.25)
B010赋值:((((SMA(MAX((收盘价 - B008),0),34,1) / SMA((收盘价 - B008的绝对值),34,1)) * 100) - 50) *
1.25)
B011赋值:((((SMA(MAX((收盘价 - B008),0),72,1) / SMA((收盘价 - B008的绝对值),72,1)) * 100) - 50) *
1.25)
B012赋值:EMA(((((B009 + B010) / 2) - B011) * 5),6)
B013赋值:((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5)
{股票指标网}
B016赋值:B012的4日指数移动平均
B017赋值:B012
KKM1赋值:B013
DPM1赋值:B013的4日指数移动平均
关注赋值:IF((YEAR = 年),1,0)
XY:=IF((MONTH = 月),1,0)
XM:=IF((DAY = 日),1,0)
XD:=(关注 * XY * XM)
VARX赋值:B017
C023赋值:KKM1
C024赋值:B016
C025赋值:DPM1
C026赋值:收盘价计算的获利盘比例
W赋值:(DMA(C026,((成交量 / 当前流通股本) * 1)) * 100)
HWXWINNER赋值:W
XD1:=W的6日指数移动平均
XWXMH:=XD1
当满足条件Z时,在横轴0.01纵轴0.01位置书写文字
DRAWTEXT_FIX(((HWXWINNER>XWXMH) AND Z AND (XD>0)),0.01,0.8,0,'发现大庄家连续活动,重点关注'), 线宽为2
DRAWTEXT_FIX((((VARX>C023) AND Z AND (VARX>C024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线适度持股')
DRAWTEXT_FIX((((VARX>C023) AND Z AND (VARX0)),0.01,0.88,0,'从多头活动看:中线获利减仓')
DRAWTEXT_FIX((((VARXC024)) AND (XD>0)),0.01,0.88,0,'从多头活动看:中线择机进仓')
DRAWTEXT_FIX((((VARX0)),0.01,0.88,0,'从多头活动看:中线空仓观望')
DRAWTEXT_FIX((((C023>VARX) AND Z AND (C023>C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线空仓观望')
DRAWTEXT_FIX((((C023>VARX) AND Z AND (C0230)),0.01,1,0,'从空头活动看:中线择机进仓')
DRAWTEXT_FIX((((C023C025)) AND (XD>0)),0.01,1,0,'从空头活动看:中线获利减仓')
DRAWTEXT_FIX((((C0230)),0.01,1,0,'从空头活动看:中线适度持股')