Backtesting error work

Created at 07 Jul 2015, 15:14
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!
MA

Makagon

Joined 05.07.2015

Backtesting error work
07 Jul 2015, 15:14


Hi,

Please somebody explain me, why this kod make and cancel 100000 orders???????

 protected override void OnTick()
        {
         if (Symbol.Spread >= 0.4)
            {
                CancelOrders();
            }
            else
            {  

              ........   

                if (PendingOrders.Count == 0)
                {
                    PutPendingOrders();
                }
           }
      }

}

In 1 tick them put and cancel, put and cancel. (test length 1,2,3 days).

Please help!!!!!


@Makagon
Replies

Spotware
07 Jul 2015, 15:28

Dear Trader,

We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.


@Spotware