期货期权交流我自己写的信号木有信号 [MC]
- 咨询内容:
inputs:zhisune(200);
variables: mp(0),zhisun(0),ADX(0);
condition1 = Close > Open and High > High[1] ;
condition2 = Close > Open and High = High[1] and Low > Low[1];
condition3 = Close > Open and High < High[1] and Low > Low[1];
condition4 = Close < Open and High < High[1] ;
condition5 = Close < Open and High = High[1] and Low < Low[1];
condition6 = Close < Open and High > High[1] and Low < Low[1];
mp = marketposition;
zhisun = zhisune;
if ADX>20 then begin
if condition1 and condition2 and condition3 then
buytocover("Buy1") next bar at market;
end;
if ADX>20 then begin
if condition4 or condition5 or condition6 then
sellshort("Sell1") next bar at market;
end;
实在找不出哪里出问题 求指点
- MC技术部: print(adx)看看, 该值看起来一直为0, 所以没有满足你的开仓条件
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容