请问老师:我开仓后,只做平仓;和平仓后做反手两者之间如何实现?
diff:="macd.diff";
dea:="macd.dea";
macd:="macd.macd";
// 建立多头进场条件
long:=cross(diff,dea);
if long then
begin
sellshort(holding<0,holding,thisclose);
buy(long,1,thisclose);
end
//建立空头进场条件
short:=cross(dea,diff);
if short then
BEGIN
sell(holding>0,holding,thisclose);
buyshort(short,1,thisclose);
end
如果这个MACD金死叉,如果平仓后,不做反手,只开多、平多,开空,平空,是不是不能实现?