Here is my code.
region Variables
private bool longEntry = true;
private bool shortEntry = true;
private EMA ema3;
private EMA ema9;
private int quantity = 1;
private TimeOnly tradeStart = new TimeOnly(8, 30, 0);
private TimeOnly tradeStop = new TimeOnly(14, 45, 0);
private int stopLoss = 40;
private int takeProfit = 60;
private int tickSize;
#endregion;
The error is "The type or names pace 'TimeOnly' could not be found". Any ideas?

Comment