AR&BR的EasyLanguage語(yǔ)法代碼分享[系統(tǒng)交易]
TradeStation語(yǔ)法分享(2)—AR&BR
input:n(26),up_AR(1.5),up_BR(3),down_AR(0.5),down_BR(0.5);
variable:AR_value1(0),AR_value2(0),BR_value1(0),BR_value2(0),AR(0),BR(0);
AR_value1 = summation(high - open , n);
AR_value2 = summation(open - low , n);
BR_value1 = summation(high - close[1] , n);
BR_value2 = summation(close[1] - low , n);
AR = AR_value1 / AR_value2;
BR = BR_value1 / BR_value2;
if AR > up_AR and BR > up_BR then
sell next bar at market;
if AR < down_AR and BR < down_BR then
exitshort next bar at market;
if AR > up_AR and BR > up_BR then
exitlong next bar at market;
//www.kzuj.com.cn
if AR < down_AR and BR < down_BR then
buy next bar at market;
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
- 上一篇:DMI的EasyLanguage語(yǔ)法代碼分享
- 下一篇:沒(méi)有了!
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容