资金进场组合两个公式方便看盘通达信公式 副图 源码附图大资金进场 择机买入 多数会涨
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.8,0),COLOR000088;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.6,0),COLOR000099;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.4,0),COLOR0000AA;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR0000BB;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.0,0),COLOR0000CC;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.5,0),COLOR0000EE;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1,0),COLOR0000FF;
STICKLINE((VAR2>VAR3),LOW,HIGH,0.0,0),COLOR0000FF;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.8,0),COLOR888800;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.6,0),COLOR999900;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.4,0),COLORAAAA00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2,2),COLORBBBB00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.0,0),COLORCCCC00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.8,0),COLORDDDD00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.5,0),COLOREEEE00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1,0),COLORFFFF00;
STICKLINE((VAR3>VAR2),LOW,HIGH,0.0,0),COLORFFFF00;
STICKLINE((OPEN>CLOSE),CLOSE,OPEN,0,0),COLORFFFF00;
STICKLINE((OPEN<CLOSE),CLOSE,OPEN,0,0),COLORRED;
{股票指标网 整理}
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
DRAWICON(C4,LOW-0.2,7);
DRAWICON(C5,HIGH+0.2,8);
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.03),''),COLORFFFFFF;
DRAWTEXT(CROSS(83,RSI),H*1.04,' ')COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2)),COLORMAGENTA;
DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW;
VAR4:=LLV(LOW,34);{股票指标网 整理}
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=VAR6<REF(VAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,8,0),COLORAA00BB;{粉色住}
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(VAR8 AND COUNT(VAR8,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(VAR8 AND COUNT(VAR8,18)=1,16,'●↙大资金进场'),COLOR0099FF;
DRAWTEXT(VAR8 AND COUNT(VAR8,18)=1,12,'●↙择机买入'),COLOR0033FF;
DRAWTEXT(VAR8 AND COUNT(VAR8,18)=1,8,'●↙多数会涨'),COLORFFFFAA;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(收盘价+最高价+最低价)/3
VAR2赋值:VAR1的10日指数移动平均
VAR3赋值:1日前的VAR2
STICKLINE((VAR2>VAR3),收盘价,开盘价,2.8,0),COLOR000088
STICKLINE((VAR2>VAR3),收盘价,开盘价,2.6,0),COLOR000099
STICKLINE((VAR2>VAR3),收盘价,开盘价,2.4,0),COLOR0000AA
STICKLINE((VAR2>VAR3),收盘价,开盘价,2.2,0),COLOR0000BB
STICKLINE((VAR2>VAR3),收盘价,开盘价,2.0,0),COLOR0000CC
STICKLINE((VAR2>VAR3),收盘价,开盘价,1.8,0),COLOR0000DD
STICKLINE((VAR2>VAR3),收盘价,开盘价,1.5,0),COLOR0000EE
STICKLINE((VAR2>VAR3),收盘价,开盘价,1,0),COLOR0000FF
STICKLINE((VAR2>VAR3),最低价,最高价,0.0,0),COLOR0000FF
STICKLINE((VAR3>VAR2),收盘价,开盘价,2.8,0),COLOR888800
STICKLINE((VAR3>VAR2),收盘价,开盘价,2.6,0),COLOR999900
STICKLINE((VAR3>VAR2),收盘价,开盘价,2.4,0),COLORAAAA00
STICKLINE((VAR3>VAR2),收盘价,开盘价,2,2),COLORBBBB00
STICKLINE((VAR3>VAR2),收盘价,开盘价,2.0,0),COLORCCCC00
STICKLINE((VAR3>VAR2),收盘价,开盘价,1.8,0),COLORDDDD00
STICKLINE((VAR3>VAR2),收盘价,开盘价,1.5,0),COLOREEEE00
STICKLINE((VAR3>VAR2),收盘价,开盘价,1,0),COLORFFFF00
STICKLINE((VAR3>VAR2),最低价,最高价,0.0,0),COLORFFFF00
STICKLINE((开盘价>收盘价),收盘价,开盘价,0,0),COLORFFFF00
STICKLINE((开盘价<收盘价),收盘价,开盘价,0,0),画红色
{股票指标网 整理}
C4赋值:VAR2上穿VAR3
C5赋值:VAR3上穿VAR2
当满足条件C4时,在最低价-0.2和7之间画图标
当满足条件C5时,在最高价+0.2和8之间画图标
A1AA赋值:9
A2AA赋值:(A1AA+1日前的收盘价<收盘价)
DRAWTEXT(FILTER((A2AA>-0.5),84),(最高价)*(1.03),''),COLORFFFFFF
DRAWTEXT(83上穿RSI,H*1.04,' ')画黄色
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF
当满足条件1时,在横轴0.00纵轴0.08位置书写文字
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2)),画洋红色
DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),画黄色
DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),画黄色
VAR4赋值:34日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
VAR6赋值:100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR7赋值:100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR8赋值:VAR6<1日前的VAR7 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(VAR8 AND 统计18日满足VAR8的天数=1,0,18,8,0),COLORAA00BB
{粉色住}
STICKLINE(VAR8 AND 统计18日满足VAR8的天数=1,0,18,8,0),COLORBB11BB
STICKLINE(VAR8 AND 统计18日满足VAR8的天数=1,0,18,5,0),COLORCC22BB
STICKLINE(VAR8 AND 统计18日满足VAR8的天数=1,0,18,3,0),COLORDD33BB
STICKLINE(VAR8 AND 统计18日满足VAR8的天数=1,0,18,1,0),COLOREE44BB
DRAWTEXT(VAR8 AND 统计18日满足VAR8的天数=1,16,'●↙大资金进场'),COLOR0099FF
DRAWTEXT(VAR8 AND 统计18日满足VAR8的天数=1,12,'●↙择机买入'),COLOR0033FF
DRAWTEXT(VAR8 AND 统计18日满足VAR8的天数=1,8,'●↙多数会涨'),COLORFFFFAA