Topics

Forum Topics not found

Replies

tanakorn5905
07 Nov 2015, 21:59

RE:

atrader said:

You mean like this:

DateTime stopDate = new DateTime(2014, 01, 31);
if (Server.Time.Date == stopDate)
{
    Stop();
}

Add this in the beginning of the OnStart method so that it will prevent it from starting.

 


@tanakorn5905

tanakorn5905
07 Nov 2015, 21:31

RE:

admin said:

Hello,

Set you "Exp" variable to 11:59:59.

DateTime Exp = MarketSeries.OpenTime.LastValue.Date.AddHours(24).AddSeconds(-1);

 


@tanakorn5905