NexusFi: Find Your Edge


Home Menu

 





NinjaTrader with Neural Networks using Encog framework


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bnichols with 7 posts (9 thanks)
    2. looks_two gregid with 6 posts (10 thanks)
    3. looks_3 serialcoder with 5 posts (7 thanks)
    4. looks_4 JonnoB with 4 posts (4 thanks)
      Best Posters
    1. looks_one gregid with 1.7 thanks per post
    2. looks_two kk240 with 1.7 thanks per post
    3. looks_3 serialcoder with 1.4 thanks per post
    4. looks_4 bnichols with 1.3 thanks per post
    1. trending_up 27,357 views
    2. thumb_up 43 thanks given
    3. group 25 followers
    1. forum 37 posts
    2. attach_file 4 attachments




 
Search this Thread

NinjaTrader with Neural Networks using Encog framework

  #31 (permalink)
 serialcoder 
Paris, France
 
Experience: Advanced
Platform: Custom
Broker: Rithmic API
Trading: NQ, FDAX
Posts: 24 since Dec 2012
Thanks Given: 13
Thanks Received: 37

Attached is a c# app (VS2015) to train a network given a file with 10 inputs (example file attached), it saves the files afterwards etc. this is code that is converted to the latest encog 3.3 from old samples, I'm currently stuck on getting useful information out of it afterwards though.

EncogTrainerNinja.zip
exportfileninja.zip

I'm looking at this old example of making an indicator in MT5, ideally we want this in Ninja8 now dont we. https://www.mql5.com/en/articles/252

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
  #32 (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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

I have a nice and simple problem to solve :

"recognize" the market profile :
- P
- B
- double distribution
- triple distribution

etc...

if somebody gives a first shot at it, I'm happy to jump in

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #33 (permalink)
 Yandychang 
Lehigh acres, fl 33971
 
Experience: None
Platform: Ninjatrader
Trading: Futures
Posts: 42 since Mar 2014
Thanks Given: 17
Thanks Received: 40


I started playing with it in ninjatrader 8, and was surprised to see that it works. Was able to train using an addon window... created an indicator obtains the data and saves it to a .csv file, the addon trains it and serializes the network and the normalization helper, then the indicator loads the normalization helper and the network for time series prediction. You may find a problem with The serialization step, so you may need to tweak around the original Encog code in order to serialize both the helper and the network. the network does not predict worth a damn, but its a good start....

Reply With Quote
Thanked by:
  #34 (permalink)
 serialcoder 
Paris, France
 
Experience: Advanced
Platform: Custom
Broker: Rithmic API
Trading: NQ, FDAX
Posts: 24 since Dec 2012
Thanks Given: 13
Thanks Received: 37


Yandychang View Post
I started playing with it in ninjatrader 8, and was surprised to see that it works. Was able to train using an addon window... created an indicator obtains the data and saves it to a .csv file, the addon trains it and serializes the network and the normalization helper, then the indicator loads the normalization helper and the network for time series prediction. You may find a problem with The serialization step, so you may need to tweak around the original Encog code in order to serialize both the helper and the network. the network does not predict worth a damn, but its a good start....

If you don't mind would you share examples please.

Reply With Quote
  #35 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623


Yandychang View Post
I started playing with it in ninjatrader 8, and was surprised to see that it works. Was able to train using an addon window... created an indicator obtains the data and saves it to a .csv file, the addon trains it and serializes the network and the normalization helper, then the indicator loads the normalization helper and the network for time series prediction. You may find a problem with The serialization step, so you may need to tweak around the original Encog code in order to serialize both the helper and the network. the network does not predict worth a damn, but its a good start....

I have noticed your add on in the download section - thank you for your contribution. I am not having much time to look into it right now, but few comments - the NeuralNet Trainer window is empty upon opening it on my machine (beta 9). Another issue is the dll - I think it is important to get rid of the customised dll and instead use standard encog library that anyone can compile themself. Can you post what specific changes have you made to the library so we could maybe think of alternative (or possible pull request to main encog repository)?

Started this thread Reply With Quote
  #36 (permalink)
 Yandychang 
Lehigh acres, fl 33971
 
Experience: None
Platform: Ninjatrader
Trading: Futures
Posts: 42 since Mar 2014
Thanks Given: 17
Thanks Received: 40


gregid View Post
I have noticed your add on in the download section - thank you for your contribution. I am not having much time to look into it right now, but few comments - the NeuralNet Trainer window is empty upon opening it on my machine (beta 9). Another issue is the dll - I think it is important to get rid of the customised dll and instead use standard encog library that anyone can compile themself. Can you post what specific changes have you made to the library so we could maybe think of alternative (or possible pull request to main encog repository)?

For the empty window issue:
Check on Your AddOns Folder, look for a File named SampleAddonTabContent.xaml. Is it there? if it is not there, that's most likely where the error is.

for the Dll request try this:
Make your NormalizationHelper class [Serializable], when you do that, you will still get an error, because there are other classes that are not serializable, which need to be( either VS will give you this error, or NT 8). look for the classes that are giving you the errors, and make them all serializable, one by one, until you don't get any more errors.

Reply With Quote
Thanked by:
  #37 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623


Yandychang View Post
For the empty window issue:
Check on Your AddOns Folder, look for a File named SampleAddonTabContent.xaml. Is it there? if it is not there, that's most likely where the error is.

The xaml file is missing both in my AddOns folder and in your zip file.

Started this thread Reply With Quote
  #38 (permalink)
 Yandychang 
Lehigh acres, fl 33971
 
Experience: None
Platform: Ninjatrader
Trading: Futures
Posts: 42 since Mar 2014
Thanks Given: 17
Thanks Received: 40


gregid View Post
The xaml file is missing both in my AddOns folder and in your zip file.

Ok, I uploaded a link to the missing File, and also Updated the Zip, to contain the xaml file... Hope this helps.

Reply With Quote
Thanked by:




Last Updated on March 16, 2016


© 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