DMI的EasyLanguage語(yǔ)法代碼分享[系統(tǒng)交易]
TradeStation語(yǔ)法分享(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;//m.kzuj.com.cn
if DMIP cross under DMIM then
sell next bar at market;
end;
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
- 上一篇:布林%的公式 與程式寫(xiě)法
- 下一篇:沒(méi)有了!
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容