Error CS1001: Identifier expected

Created at 29 Apr 2016, 16:07
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!
kestkam's avatar

kestkam

Joined 02.05.2014

Error CS1001: Identifier expected
29 Apr 2016, 16:07


Hi,

I tried to improve the News Robot and got the following message: "Error CS1001: Identifier expected".

The exact place in the script where  Identifier expected I marked with the "?".

The script added by me is as follows:

 protected override void OnBar()
        {

            foreach (var pendingOrder in PendingOrders)
            {

                if (_ordersCreated && !PendingOrders.?(PipsAway > 17))
                {
                    CancelPendingOrderAsync(pendingOrder);
                }
            }
        }

Please help me with that.


@kestkam
Replies

Spotware
03 May 2016, 15:23

Dear Trader,

The if statement you tried to build is incomplete. We kindly ask you to check your code again.


@Spotware