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,571 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

  #1 (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

For all NT users (capable of programming on the NinjaScript level) who would like to dwelve into the world of neural networks – now you have a chance for contribution.

Jeff Heaton has just released example project integrating NT7 and Encog neural networks framework.
For sample project and article go to:

Getting Started with Encog 2.5 and [AUTOLINK]Ninjatrader[/AUTOLINK] 7 - Neural Network Indicators | Heaton Research

Hopefully futures.io (formerly BMT) community can join the efforts and help the project evolve into something even greater for the benefit of both NT and Encog.

If you have any good ideas for the project we could work on I suggest you answer below and if there will be enough people interested we could start doing it together. If you have a project in mind that you would rather put in the Elite Circle let me know so I could open similar thread there.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505


This look very cool, and free!
Thanks !

Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,599

Very nice. I am not sure if @sefstrat is still around, but he might have a few ideas on how to start a new project with this.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 baruchs 
Israel
 
Experience: Intermediate
Platform: NinjaTrader
Broker: pfg
Trading: eminis
Posts: 323 since Jun 2009

I believe only in automatic trading, so I'm very exited about it. I have no experience in neural networks, but I want to learn.

Baruch

Reply With Quote
  #6 (permalink)
JonnoB
Christchurch, NZ
 
Posts: 4 since May 2010
Thanks Given: 4
Thanks Received: 4

Heaton Research have also provided a number of educational videos on youtube.

I have found Encog great for prototyping ideas as it supports quite a number of different neural network types i.e. feed forward, recurrent. It also allow for the use of genetic algorithms for network training.

I'm currently looking at using it to predict the ROC for the next N days. My next project is to try and use a network to classify significant turning points.

Reply With Quote
Thanked by:
  #7 (permalink)
kk240
Europe,Nomad
 
Posts: 84 since Nov 2010
Thanks Given: 25
Thanks Received: 30

Jeff Publsihed a new article , how to develope a neuro indicator for ninja, now it should be easier to develope new type of indicators, using wavelets or combinations of indicators. In example it reads indicators values from csv file which ninja outputs, and learns,then outputs neural networks what ninja indicator can use.

If somebody is interested to starting developing workbench around enqoc, using enqoq for a new type of indicators and have a background of using AI, send message.
Anyhow it should be easy to develope indicators now, but needs stuff around.

I think enqoc have potential because it can use GPU's and "clouds"

Encog and [AUTOLINK]NinjaTrader[/AUTOLINK] 2: Using [AUTOLINK]NinjaTrader[/AUTOLINK] Indicators with Encog | Heaton Research

Reply With Quote
  #8 (permalink)
 
bnichols's Avatar
 bnichols 
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
Posts: 637 since Feb 2010
Thanks Given: 64
Thanks Received: 460

I imported Encog into NT 7 tonight as an experiment, the plan being to use SharpNEAT/HyperNEAT as the engine eventually if anything comes of it. I had to rebuild the Encog archive downloaded from Jeff's site with the DLLs in the top directory of the ZIP file since it wouldn't import as is, but otherwise appears to function as advertised.

I used neural nets for time series analysis years ago and am more or less aware of the limitations and applications, but the idea this time isn't necessarily to try to develop a neural trading system as to get a better grasp of strategy optimization by comparing it to something I'm familiar with (I'm new to auto-trading).

This occurred to me because my strategies are turning into a sort of of "neural" network anyway, with switches (binary parameters) to turn code segments on and off or wire different indicators together (to modify the "topology" of the strategy so to speak), and other parameters to weight indicator output (to make trade decisions--buy or sell & how much--based on some measure of "certainty" or a kind of "fuzzy centroid"). As usual the output of the optimizer is a "best choice" vector of parameters, in this case defining the optimal code & indicator combo and weights of the connections between the components.

The problem I foresee with this approach (optimization in general and neural networks in particular) is how to avoid producing a strategy that is "over optimized" (a strategy that works well with the training set yet fails miserably in real-time simulation, say), or at least how to recognize it, since once trained an indicator-based strategy is only as adaptive as the indicators comprising it.

I'll post any results.

Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
kk240
Europe,Nomad
 
Posts: 84 since Nov 2010
Thanks Given: 25
Thanks Received: 30

Small set of variables. (inputs), neural networks means also number of layers and hidden layers, genetic algorithms and evolutionary systems, means, number of locus in chromosomes.
Different "models strategy" for longs and shorts.
Leading indicator, example trin, adv/dec for ES, or any instrument which correlate with x. SP500 index for stocks.
Sometimes removing peaks. and replacing average/median high or low value.
Sometimes adding noise.
Sampling, sometimes learning most recent cases, and veifying historical data.
Random sampling, learning dataset. where is data is randomly distributed over learning set.
So there is recent datapoints and also historical datapoints in learning set. that way you avoid, learning set have only price information when market is going one direction, and testing data is going other direction.
And good Fittness Functions or how to measure which models or strategies are best, very important.

Reply With Quote
Thanked by:
  #10 (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



bnichols View Post

The problem I foresee with this approach (optimization in general and neural networks in particular) is how to avoid producing a strategy that is "over optimized" (a strategy that works well with the training set yet fails miserably in real-time simulation, say), or at least how to recognize it, since once trained an indicator-based strategy is only as adaptive as the indicators comprising it.

I'll post any results.

@bnichols

Have you looked into implementing closed-loop recurrent neural network - so to train the network in real-time?

Started this thread 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