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.kzuj.com.cn
if DMIP cross under DMIM then
sell next bar at market;
end;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
- 上一篇:布林%的公式 與程式寫法
- 下一篇:沒有了!
相關文章
-
沒有相關內容