DMI的EasyLanguage语法代码分享[系统交易]
TradeStation語法分享(1)—DMI
input:Length(14),down(20);
Variables:DMIP(0),DMIM(0),DX(0),ADX_n(0),ADXR_n(0);
DMIP = DMIPlus(Length);
DMIM = DMIMinus(Length);
DX = DMI(Length);
ADX_n = ADX(Length);
ADXR_n = ADXR(Length);
if ADX_n > down and ADX_n > DMIM and ADX_n > DMIP then begin
if DMIP cross over DMIM then
buy next bar at market;
if DMIP cross under DMIM then
exitlong next bar at market;
end;
if ADX_n > down and ADX_n > DMIM and ADX_n > DMIP then begin
if DMIP cross over DMIM then
exitshort next bar at market;//www.cxh99.com
if DMIP cross under DMIM then
sell next bar at market;
end;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
- 上一篇:布林%的公式 与程式写法
- 下一篇:没有了!
相关文章
-
没有相关内容