When I try to sell 100 of my position of 700 shares at say 10:30am, it executes all of the shares in 100 share lots during that minute, So I coded it this way:
if (Times[0][0].TimeOfDay == new TimeSpan(10, 30, 01))
{
ExitLong(Convert.ToInt32(100), @"1030", @"buy");
So I programmed it to sell 100 shares at 10 am and 30 minutes and 1 second. This way it should only sell 100 shares at that point in time. But it sold nothing at that time.
I am running one minute charts. Should I be running one second charts to get these executions?
What am I doing wrong here?
Comment