初始入金10万,用30%的本金进行交易,设5%的止损; 如果交易每亏损5%到止损位平仓,再次交易降低止损2.5%止损; 如果交易每盈利5%,重新定义新的本金:=本金*(1+*30%*盈利*20%),同样设5%止损; |
初始入金10万,用30%的本金进行交易,设5%的止损;
如果交易每亏损5%到止损位平仓,再次交易降低止损2.5%止损;
如果交易每盈利5%,重新定义新的本金:=本金*(1+*30%*盈利*20%),同样设5%止损;
variable:bj=0;
if 开仓条件 and holding=0 then buy(1,30%,marketr);//30%开仓
if c<enterprice*0.95 and holding>0 and bj=0 then begin
bj:=1;
sell(1,0,marketr);//5%止损
end
if c<enterprice*0.725 and holding>0 and bj=1 then begin
sell(1,0,mareketr);//5%止损后用2.5%止损
end
if NUMPROFITPER(1 )>=0.05 then begin
bj:=0;
end
重新定义新的本金:=本金*(1+*30%*盈利*20%),
这个无法重新定义
期货还是股票? 这个是针对一个品种的还是多品种组合,写法不一样