私募建仓通达信公式 副图 贴图和谐源码分享
X_1:=DYNAINFO(7);
X_2:=MA(AMOUNT/VOL/100,VOL/CAPITAL);
X_3:=BARSCOUNT(CLOSE);
X_4:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;
X_5:=IF(X_3>20,X_4,0);
{股票指标网www.88gs.cm}
X_6:=IF(LOW>X_1,0,IF(HIGH<X_1,1,(X_1-LOW+0.009)/(HIGH-LOW+0.009)));
X_7:=DMA(X_6,VOL/CAPITAL)*100;
X_8:=IF(X_2>X_1,100-X_7,X_7);
X_9:=IF(X_7>0 AND X_7>REF(X_7,1) AND X_5<=88,X_7,0);
STICKLINE(X_9>0,0,X_9,5,0),COLORMAGENTA;
黄金线选股:IF(CROSS(X_9,0.009) AND (OPEN AND LOW) AND (CLOSE AND LOW),20,0),COLORRED;
STICKLINE(CROSS(X_9,0.009) AND (OPEN AND LOW) AND (CLOSE AND LOW),0,20,3,0),COLORRED;
私暮黄金线:X_9,COLORYELLOW,LINETHICK2;
X_10:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:现价
X_2赋值:成交额/成交量/100的成交量/当前流通股本日简单移动平均
X_3赋值:收盘价的有效数据周期数
X_4赋值:SMA(收盘价/120日内最高价最高值,3,1)*100
如果X_3>20返回X_4否则返回0
{股票指标网WWW.88GS.CM}
X_6赋值:IF(最低价>X_1,0,IF(最高价
X_7赋值:DX_6的成交量/当前流通股本日简单移动平均*100
如果X_2>X_1返回100-X_7否则返回X_7
X_9赋值:IF(X_7>0 AND X_7>1日前的X_7 AND X_5<=88,X_7,0)
当满足条件X_9>0时,在0和X_9之间画柱状线
输出黄金线选股:IF(X_9上穿0.009 AND (开盘价 AND 最低价) AND (收盘价 AND 最低价),20,0),画红色
STICKLINE(X_9上穿0.009 AND (开盘价 AND 最低价) AND (收盘价 AND 最低价),0,20,3,0),画红色
输出私暮黄金线:X_9,画黄色, 线宽为2
X_10:=(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100