Platform error on new cBot
Created at 02 Dec 2016, 13:57
Platform error on new cBot
02 Dec 2016, 13:57
During some test the platform gives one error just lile "We've informed Spotware, restart cAlgo".
My cBot tries to avoid the use of Stop orders and keeps secret the stop order level
private void MarketDepth_Updated() { if (((SetBUY) && (Symbol.Ask >= PriceLong) && (Positions.Count == 0))) { ExecuteMarketOrderAsync(TradeType.Buy, Symbol, Volume, label, SL, TP, Slippage); } else if (((SetSELL) && (Symbol.Bid <= PriceSell) && (Positions.Count == 0))) { ExecuteMarketOrderAsync(TradeType.Sell, Symbol, Volume, label, SL, TP, Slippage); }
PriceLong and PriceSell are my hidden stop order levels at which the bot should trigger a market order so I can avoid the slippage related with Stop order.
then I added a grid type
What could be the problem?