自第 1632 版起,DEAL_REASON 属性 可在测试程序中使用!
Vladimir Karputov:
我们在等什么信号?
我们在等什么信号?
000111111
dsfsf333:
000111111 (蜡烛图)
本智能交易系统中没有 "信号"。仓位方向 是随机 决定的:
if(math_rand%1==0 && math_rand%2==0) { double sl=(InpStopLoss==0)?0.0:m_symbol.Bid()+ExtStopLoss; double tp=(InpTakeProfit==0)?0.0:m_symbol.Bid()-ExtTakeProfit; OpenSell(ExtLot,sl,tp); } else { double sl=(InpStopLoss==0)?0.0:m_symbol.Ask()-ExtStopLoss; double tp=(InpTakeProfit==0)?0.0:m_symbol.Ask()+ExtTakeProfit; OpenBuy(ExtLot,sl,tp); }
止损获利:
作者: Vladimir Karputov