I would like to know syntax of the action that closes a position.
My current syntax is the following:
if ((Position.MarketPosition == MarketPosition.Long)
&& Times[0][0].TimeOfDay >= DateTime.Parse("07:30", System.Globalization.CultureInfo.InvariantCulture) )
If the text above is true I want the order to be closed.
Thanks in advance
Comment