when compiling I get the following error
Cannot apply Indexing with [] to an expression of type 'method group'
the code is pasted below
if (entryOrder == null)
{
/* The entryOrder object will take on a unique ID from our SubmitOrder()
that we can use later for order identification purposes in the OnOrderUpdate() method. */
Print("I was null at " + Time[0]);
entryOrder = SubmitOrder(0, OrderAction.Buy, OrderType.Market, 1, 0, 0, "", "Enter Long");
entryOrder = SubmitOrder(0, OrderAction.Sell, OrderType.Market, 1, Position.Close[0] - 4 * TickSize, 0, "", "Enter Short");

Comment