I'm trying to connect to NinjaTrader.sqlite inside my indicator, but I'm failing.
I've downloaded System.Data.SQLite.dll file from internet and added it to the indicator through references. The following code is compiled successfully
using System.Data.SQLite;
using System.Data;
protected override void OnStateChange()
{
else if (State == State.Configure)
{
using (var connection = new SQLiteConnection ("Data Source = NinjaTrader.sqlite"))
{
connection.Open();
}
}
}
but when i'm trying to add my indicator to a chart the following error occurs
| 06.08.2023 2:45:09 | Default | Indicator 'TradesView': Error on calling 'OnStateChange' method: Не удалось загрузить файл или сборку "System.Data.SQLite, Version=1.0.92.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" либо одну из их зависимостей. Не удается найти указанный файл. |
please help

Comment