NexusFi: Find Your Edge


Home Menu

 





Got Accord.net coding experience?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one NJAMC with 9 posts (0 thanks)
    2. looks_two ericson with 8 posts (4 thanks)
    3. looks_3 gsapir with 3 posts (1 thanks)
    4. looks_4 ratfink with 2 posts (2 thanks)
    1. trending_up 7,903 views
    2. thumb_up 7 thanks given
    3. group 7 followers
    1. forum 22 posts
    2. attach_file 3 attachments




 
Search this Thread

Got Accord.net coding experience?

  #11 (permalink)
 ericson 
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
Posts: 64 since Nov 2013
Thanks Given: 14
Thanks Received: 19

Maybe because im using inputs one to a "period" would cause such large numbers since it uses exponents? Like x input 89^3

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #12 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394

I Filed a bug report to see if Cesar can figure out what is going on:

https://github.com/accord-net/framework/issues/434

It usually takes him a while as the Accord .NET library is huge and he is the only developer working on the project.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #13 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394



NJAMC View Post
I Filed a bug report to see if Cesar can figure out what is going on:

https://github.com/accord-net/framework/issues/434

It usually takes him a while as the Accord .NET library is huge and he is the only developer working on the project.

Cesar has confirmed there is a problem with that class:

"Many thanks for opening the issue. Indeed there are some issues with the PolynomiaLeastSquares class, that probably got introduced during the rush to port all learning algorithms to the new .Learn() interfaces.

There are at least two problems there, both happening for the roughly the same reason: The .ToString() method and the .Learn are still reflecting the old implementation, where the intercept was stored as the last element of the .Coefficients array (which now it is stored as separate value in the .Intercept property).

I will add more tests and fix it before the next pre-release.

Regards,
Cesar"

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
 ericson 
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
Posts: 64 since Nov 2013
Thanks Given: 14
Thanks Received: 19

You're right! Great analysis of the problem. Thanks for putting in the request, now we wait for the next release. Its important to note Accord is an open source project, not a finished commercial product, so everyone knows. I wonder about the multi reg function has problems too?

Started this thread Reply With Quote
  #15 (permalink)
 ericson 
Sacramento, CA
 
Experience: Advanced
Platform: NinjaTrader
Broker: NA
Trading: Stocks, Forex
Posts: 64 since Nov 2013
Thanks Given: 14
Thanks Received: 19

On a side note, we can also interoperate R and NT with R.NET, which has a wealth of useful features! Check it out!

Update: A major downside of R.net only allows one instance at a time, so you can only use it in one indicator at a time. Bummer.... Can't figure a work around. If you try to access it multiple times from different indicator, you get errors or NT crash. Any Ideas?

Started this thread Reply With Quote
  #16 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


ericson View Post
You're right! Great analysis of the problem. Thanks for putting in the request, now we wait for the next release. Its important to note Accord is an open source project, not a finished commercial product, so everyone knows. I wonder about the multi reg function has problems too?

Hi @ericson,

Cesar has closed the bug report stating it has been fixed in Ver 3.5.0:
https://github.com/accord-net/framework/issues/434

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
gsapir
Haifa israel
 
Posts: 7 since Aug 2017
Thanks Given: 0
Thanks Received: 1

Hi Guys.

I'm new to NT8 but old to ML.
I tried to add Accord to ninjatrader, this is the NT8 version I use: 8.0.8.0 64-bit (Standard).

I try to do this:
var smo = new SequentialMinimalOptimization<Gaussian>()
{
Complexity = 100 // Create a hard-margin SVM
};



It's compiles with no issues. but I get run-time error:

Strategy 'ScalperGilbollinger': Error on calling 'OnBarUpdate' method on bar 0: Could not load file or assembly 'Accord.MachineLearning, Version=3.6.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7' or one of its dependencies. The system cannot find the file specified.

maybe you can guide me on how to install the Accord correctly?
maybe you can share the Accord DLL files....

thanks

Reply With Quote
  #18 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425


gsapir View Post
maybe you can guide me on how to install the Accord correctly?

I don't use Accord but you need to add DLL files to NT8 using the right mouse menu 'References...' option in any single source code file, then they are available to all.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #19 (permalink)
gsapir
Haifa israel
 
Posts: 7 since Aug 2017
Thanks Given: 0
Thanks Received: 1

I know, and I did that.
I also used build 4.5 so it will be compatible with NT8.
still the same error

@ericson
are you familiar with this issue?

@ratfink
Are you using other machine learning library ? can you advice ?

thanks

Reply With Quote
Thanked by:
  #20 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425



gsapir View Post
@ratfink
Are you using other machine learning library ? can you advice ?

Sorry I am not at the moment but hope to be soon, @rleplae and @NJAMC are good sources on FIO.

Cheers

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 10, 2017


© 2024 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 - Privacy Policy - Downloads - Top
no new posts