Im trying to switch a bool in OnExecution but am getting two errors:-
Cannot convert lambda expression to type 'bool' because it is not a delegate type
A local variable named 'btcpp' cannot be declared in this scope because it would give a different meaning to 'btcpp', which is already used in a 'parent or current' scope to denote something else
Here is a code spinet:
if (execution.Order.OrderState == OrderState.Filled || execution.Order.OrderState == OrderState.PartFilled)
{
if(longPrice > execution.Order.AvgFillPrice) // counting bad trades
{
btcall++;
if(longLimit == pp)
{
btcpp++;
if(btcpp => lta)
tspp = true;
}
}

Comment