Platform error on new cBot

Created at 02 Dec 2016, 13:57
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GS

GS66

Joined 12.04.2015

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?


@GS66