I'm working on a telegram messanger integration for ninjatrader and found following project for this
My understanding is that I can programm normal c# in the strategy editor ? And can also include other projects? For that I copied this src code in my strategy directory and tried to compile it.
But I get a syntax error for
/// <summary>
/// Send a request to Bot API
/// </summary>
/// <typeparam name="TResponse">Type of expected result in the response object</typeparam>
/// <param name="request">API request object</param>
/// <param name="cancellationToken"></param>
/// <returns>Result of the API request</returns>
Task<TResponse> MakeRequestAsync<TResponse>(
IRequest<TResponse> request,
CancellationToken cancellationToken = default);
Severity Code Description Project File Line Suppression State
Error CS8107 Feature 'default literal' is not available in C# 7.0. Please use language version 7.1 or greater. NinjaTrader.Custom \Documents\NinjaTrader 8\bin\Custom\Strategies\TelegramBot\TelegramBotCli ent.cs 195 Active
It is possible to use c#7.1 with ninjatrader?
Thanks for your help

Comment