1 - if i were to go on vacation over the holiday and wanted to trade from december 1st until december 19th and after the 19th not allow any more trades, how would i use the time field to do this??
My current code is
If(totime(time[0]) >= totime (8,0,0)
&& totime(time[0] <= totime (16,0,0))
{Do this}
2 - if i wanted to trade during different sessions like between 8am and 11am and then again between 1pm and 4pm how would i change the current time statement.
Would i just add or statement like
If(totime(time[0]) >= totime (8,0,0)
&& totime(time[0] <= (11,0,0))
||
If(totime(time[0]) >= totime (13,0,0)
&& totime(time[0] <= totime (16,0,0))
{Do this}
Thanks for your help...
Ken

Comment