把如下策略改成多头策略,不做空 [金字塔]
- 咨询内容:
diff:=stkindi('','macd.diff',0,datatype);
diff_1:=stkindi('','macd.diff',0,datatype,-1);
if diff<diff_1 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if diff>diff_1 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
- 金字塔客服:
diff:=stkindi('','macd.diff',0,datatype);
diff_1:=stkindi('','macd.diff',0,datatype,-1);
if diff<diff_1 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if diff>diff_1 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
- 用户回复:
diff:=stkindi('','macd.diff',0,datatype);
diff_1:=stkindi('','macd.diff',0,datatype,-1);
if diff<diff_1 then begin
sell(1,0,market);
end
if diff>diff_1 then begin
buy(holding=0,1,market);
end
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容