Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
老师:如何确认前一次信号是反手呢?
IF 前一次信号是反手 THEN
variable:n=0;
if 反手信号 and 持仓判断 begin
反手语句;
n:=1;
end
if 其他信号 and 持仓判断 begin
下单语句;
n:=2;
if n=1 then ....;
if 反手信号 and 持仓判断 then begin
平多;
开空;
或者
平空;
开多;