I am trying to implement a filter to my strategy cancelling the pending limit/stop orders at a certain chart time, but I am having some issued.
As a beginner, I try to look for examples online, and came to the following conclusion:
else if ToTime(00,00,00)
|| ToTime(10,00,00)
|| ToTime(16,00,00)
|| ToTime(21,00,00))
{
CancelOrder(entryOrder2);
}
"operators cannot be appliet to bool or int" (Not exactly the message, but I hope you get it)
Can you please help me?

Comment