比如一个系统是根剧EMA系统搞出的开平仓点,另一个是根剧MACD系统搞出的开平仓点,两个系统均有一点效果.
现在将两个系统合一,
MA系统的开仓点就对应MA系统的平仓点,MACD系统的开仓点就对应MACD系统的平仓点,
请问怎么写?越简单越好,谢谢.
注:系统中自带的三进三出法我试过...它不对应.
if ma下单条件 then begin
开仓;
if ma平仓条件 then 平仓;
end
if macd下单条件 then begin
开仓;
if macd平仓条件 then 平仓;
end
谢谢.您看这么写对不对,,我总觉得有那里不对...
IF aa1 then
BEGIN
BUYSHORT(1,1);
maxprofit:=0;
END
IF bb1 then
BEGIN
SELLSHORT(1,1);
maxprofit:=0;
END
IF aa2 then
BEGIN
BUYSHORT(1,1);
maxprofit:=0;
END
IF bb2 then
BEGIN
SELLSHORT(1,1);
maxprofit:=0;
END