首页 > > 详细

通达信突破上下轨量化交易公式

N:=12;
BOLL:=MA(CLOSE,N);
UPPER:=BOLL+2*STD(CLOSE,N);
BOTTOM:=BOLL-2*STD(CLOSE,N);
BUYCOND:=H>REF(H,1) AND L>REF(L,1) AND L<=BOTTOM;
SELLCOND:=H<REF(H,1) AND L<REF(L,1) AND H>=UPPER;

DRAWTEXT(BUYCOND,LOW*0.99,'★平空');
DRAWTEXT(BUYCOND,LOW*0.96,'★开多');

DRAWTEXT(SELLCOND,HIGH*1.03,'★平多') COLORGREEN;
DRAWTEXT(SELLCOND,HIGH*1.05,'★开空') COLORGREEN ;


MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
MA6:MA(CLOSE,250);
联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。