NexusFi: Find Your Edge


Home Menu

 





NinjaWorkshop Strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one DerekPhelps with 4 posts (13 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 jdextras with 1 posts (0 thanks)
    4. looks_4 gregid with 1 posts (0 thanks)
    1. trending_up 4,714 views
    2. thumb_up 13 thanks given
    3. group 6 followers
    1. forum 6 posts
    2. attach_file 3 attachments




 
Search this Thread

NinjaWorkshop Strategy

  #1 (permalink)
 DerekPhelps 
houston texas
 
Posts: 5 since Aug 2012

I wrote this as a rapid prototype tool to test trade ideas and thought I'd share.

NinjaWorkShop is a full featured fully functional multi-control, multi-entry strategy. It was written in a semi modular construct as a tool that I could quickly and easily plug in other indicator controls for testing in a way that could compliment trigger signals of other indicators in a seamless manner and expose all parameters of indicators for tuning to specific instruments and time periods. Each indicator is user configured to be used by itself or in conjunction with other indicator controls as an Entry/Exit/Both trigger or for display purposes only. In this public version I have included some industry standard indicators as well as a couple custom ones.

Some of its default designed features are...
•Entry triggers signaled only if ALL active (set to Entries or Both) indicators are generating an entry signal (AND function).
•Exit Triggers are generated if ANY active (set to Exits or Both)indicator condition is met (OR function) (Difficult to get in, quick to get out).
•Optional handover to ATM strategy of choice. Upon triggered Entry, ATM assumes full control until ATM exit returns control back to strategy.
•Multiple Stop/Targets methods for trade management.
•In this basic version has 7 indicator controls 5 Entry Limit methods of controlling trade entries and exits. Each control can be independently enabled to work alone or in combination with the other controls.

This strategy will allow you to become familiar with the concept and process of mixing and matching indicators to complement each other and to cover the weak spots in one type of indicator with the strengths of another. Once familiar with its operation, if you are a programmer you should be able to add additional favorite specialty indicator/controls in the manner that I have and not have to worry about breaking the trade management (stops/targets/multi-entry/etc.) system already in place.
If you are not a programmer and have a favorite indicator you trade with and wish to add to your core NinjaWorkshop you may contact me with your requested change/trade-idea/upgrade to enhance this strategy to your specification.
I tried to upload in the files section but couldn't get the 'Add' thing to work, Will try and attach here.

Attached Thumbnails
Click image for larger version

Name:	NinjaWorkShop.jpg
Views:	360
Size:	421.3 KB
ID:	134513  
Attached Files
Elite Membership required to download: NinjaWorkShop1.0.zip
Elite Membership required to download: NinjaWorkshop QuickStart instructions.docx
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
 
  #3 (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


Cool idea!

I wanted to look at the code which compiles nicely under NinjaScript editor, but I'm having problem with this part of the code (ATMConverter class) when opened from Visual Studio:

 
Code
foreach (StrategyData data in NinjaTrader.Db.Globals.Engine.GetObjectSet(typeof(StrategyData), "category = " + 2))
	{	if (data.Strategy is AtmStrategy)
		{	Array.Resize<string>(ref sarr, sarr.Length+1);	sarr[sarr.Length-1] = data.Strategy.Name;
		}
	}
It cannot resolve the symbol for GetObjectSet which looks like some reference problem - have you encountered similar problem as I believe I have all the references right?

Reply With Quote
  #4 (permalink)
 DerekPhelps 
houston texas
 
Posts: 5 since Aug 2012

Hi Greg:
As you say, the code compiles fine using Ninjas internal compiler.
I believe that GetObjectSet() is one of a handful of Ninja calls that are internal to Ninja and not exposed for external call through VisualStudio for some reason. If you find an alternate method of loading this array that works under VisualStudio I would be interested in hearing of it.
Derek

Reply With Quote
  #5 (permalink)
 DerekPhelps 
houston texas
 
Posts: 5 since Aug 2012

NOTE: I have enhanced some features and corrected several bugs in the code. Go to the Ninja site for the current version of NinjaWorkshop

Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Reply With Quote
  #6 (permalink)
 jdextras 
Montreal, Quebec, Canada
 
Experience: Advanced
Platform: NinjaTrader
Trading: Stocks
Posts: 6 since Mar 2013
Thanks Given: 0
Thanks Received: 0

Hi Derek, I would like to add an other indicator to your code. Would it be easy to do so?

Reply With Quote
  #7 (permalink)
 Multituti 
Loganville
 
Experience: Beginner
Platform: NT8
Trading: es, mes
Posts: 4 since Mar 2021
Thanks Given: 2
Thanks Received: 0

I have just seen this and wandering if this was ever converted to NT8?
There is New version on Ninjatrader https://ninjatraderecosystem.com/user-app-share-download/automated-ninjaworkshop1-3-strategy/

Reply With Quote




Last Updated on April 6, 2022


© 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