NexusFi: Find Your Edge


Home Menu

 





Loading External DLL on NT8 - Error


Discussion in NinjaTrader

Updated
    1. trending_up 2,693 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
gsapir
Haifa israel
 
Posts: 7 since Aug 2017
Thanks Given: 0
Thanks Received: 1

Hi,

Every framework I'm trying to use, I get the same run-time error:

Strategy 'xxx': Error on calling 'OnBarUpdate' method on bar 0: Could not load file or assembly 'encog-core-cs, Version=3.3.0.0, Culture=neutral, PublicKeyToken=3e882172b12155d4' or one of its dependencies. The system cannot find the file specified.

I tried 4 different frameworks and different versions - always the same issue - so it's 100% issue in the NT8 (or the way I use it).


PLEASE try to help me here.

to get the DDL file I do:
C:\Users\XXX\Desktop\NT8\FW>C:\Users\XXX\Downloads \nuget.exe install encog-dotnet-core -Version 3.3.0

than I'm loading the DDL by the official NT8 guide: "using_3rd_party_indicators.htm"
(I can't post links here because it's only my 4th post)


thanks.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Day 97: Israel-Lebanon Ceasefire Struck Overnight -- WTI …
Traders Hideout
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860



gsapir View Post
Hi,

Every framework I'm trying to use, I get the same run-time error:

Strategy 'xxx': Error on calling 'OnBarUpdate' method on bar 0: Could not load file or assembly 'encog-core-cs, Version=3.3.0.0, Culture=neutral, PublicKeyToken=3e882172b12155d4' or one of its dependencies. The system cannot find the file specified.

I tried 4 different frameworks and different versions - always the same issue - so it's 100% issue in the NT8 (or the way I use it).


PLEASE try to help me here.

to get the DDL file I do:
C:\Users\XXX\Desktop\NT8\FW>C:\Users\XXX\Downloads \nuget.exe install encog-dotnet-core -Version 3.3.0

than I'm loading the DDL by the official NT8 guide: "using_3rd_party_indicators.htm"
(I can't post links here because it's only my 4th post)


thanks.


I encountered a similar problem in the past with encog with NT 7
the issue was that the .NET version of NT7 and encog was different.

1) what is the platform NT8 is using and what is the encog build ?

2) the encog library is not a 3rd party indicator, it is a 3party library
in NT 7 you did add it by opening any indicator source and then right clicking and adding a reference to the DLL

hope this helps, even it's not 100% for NT8, but it might help you


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
gsapir
Haifa israel
 
Posts: 7 since Aug 2017
Thanks Given: 0
Thanks Received: 1


rleplae View Post
I encountered a similar problem in the past with encog with NT 7
the issue was that the .NET version of NT7 and encog was different.

1) what is the platform NT8 is using and what is the encog build ?

2) the encog library is not a 3rd party indicator, it is a 3party library
in NT 7 you did add it by opening any indicator source and then right clicking and adding a reference to the DLL

hope this helps, even it's not 100% for NT8, but it might help you


1. this is the version I have: 8.0.8.0 (Standard)
How do I check the .NET build ?
the encog is: \encog-dotnet-core.3.3.0\lib\net35

I get the same exact issue with Accord.

2. do you mean that I can use the library in an indicator and not in a strategy ?


Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860


gsapir View Post
1. this is the version I have: 8.0.8.0 (Standard)
How do I check the .NET build ?
the encog is: \encog-dotnet-core.3.3.0\lib\net35

I get the same exact issue with Accord.

2. do you mean that I can use the library in an indicator and not in a strategy ?

I looked it up for you
NT 8 is .NET version 4.5
can you try to find or recompile a version of Encog for the same .NET version ?

Once it works, you will be able to used it in your indicator code and in strategy code


Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 10, 2017


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts