Programmatically loading strategies

Hi,
I wanted to know if there is any easy way to import configured strategies. My use case is for customers who I just want to streamline the full setup including ensuring the strategies are correctly setup and assigned to their right account/instrument/timeframe?

From playing around before I do know most of the NT strategies stuff is kept in the sqllite DB, so you could script an insert into that to set it up, but i wonder if there are any cleaner solutions that exist.

Look forward any ideas, anyone can propose.

a strategy is a file, easily, you save the settings as a strategy template on your computer and email him the strategy file and the settings and he can upload it on his/her end, and do a screencast showing him/her the settings. Easy peasy.

Save the settings as a strategy template on your computer and email him

From what i can tell in the template file it doesn’t take the instrument and the user still needs to add the strategy themselves manually. My end customer might be looking to run our systems across multiple instruments, so the goal is to try build a one click deploy rather than them adding a strategy 10 times etc. If this makes sense.

As an added service, you could possibley use google meet and walk them through it. When real money is concerned, I think your client would appreciate that extra hand holding. Money is important to people, second only to time (life), so if you’re putting out a strategy that uses real money, your client will appreciate that extra care you are putting in to ensure their money is safe. (Take it as your fiduciary duty, even if you’re not obligated)

And you tack on an extra premium for the ā€˜care’ you are providing. Time is money :money_bag: :hourglass_done:

There is no getting away from manually selecting the instrument and account…and then one needs to go to control center to enable the strategies.

I save all my strategy settings in my database and while adding the strategy i give the db record key…

The UI of adding strategies is excruciating slow like pretty much the entire UI of ninjatrader…

Yes i agree the UI is very slow and the issue isn’t so much first setups as if the user ever reinstalls NT, or clears their strategies. It is very time consuming and also a lot of risk being exposed to resetting up the whole thing again and doing the double checks to make sure everything is correct.

I would hope NT would look to implement an import configured stratgies concept like they have for workspaces.

1 Like

I have this added problem that i use bloodhound and it is not even possible to save bloodhound strategies as part of workspace…so i dont have to add my strategies from scratch on every update of ninjatrader or everytime the workspace gets corrupt…i have to manually add my strategies everytime i restart ninjatrader…I add around 40 strategies using control centre, and after around 15 20 strategies have been added, i pretty much have to wait for 5 seconds for a character that i am typing to show up in the text box…

disgusting is the only word i can think of without getting into the realm of abusive language…

If a lot of people are experiencing the same paint point, build out a tool that solves this problem and you’ll be set and you won’t even need trading anymore. You can find great programmers on upwork.

How does one do that? when there is no API provided by ninjatrader to even start a strategy already added to the control centre, let alone add a strategy to the control centre.

Probably an addon. That ability for an add-on, really kinda make the platform into something you can mold. I’m sure it’ll require some creativity… now obviously, the amount of work required would probably only be ideal it it’ll payoff in making you more profitable and or making others more profitable, or their workflow easier. (That’s a whole other conversation)

The question is, whether there is value in it enough to build it, or can we get by on what we have. That is a question us builders, have to ask ourselves individually, in the secret recesses of our hearts.

I, for one think the platform suffices learning and trading and making a living without a lot more. but that’s my individual conclusion. We each have to make our own.

1 Like

no, the question simply weather there is an API available…add on is not some magic, it is c# code…and code is code weather it sits in a strategy or a addon, they all need to invoke something called an API - Application Programming Interface - you can find more details here - API - Wikipedia

If its important to you, check out the enterprise offerings and get ready to pay up: NinjaTrader Developer Community | NinjaScript Resources & Documentation

Fill out the form, but keep in mind that an enteprise outfit is probably pulling a couple of 100gs a day, so budget is NOT going to be anything less than $20,000

The first problem is profitablity, none of these transformations with software get’s us retailers near profitability. :sad_but_relieved_face:

This might help

(StrategyBase contains properties and methods for managing a Strategy object, and is the base class from which AtmStrategy derives.) : NinjaTrader Developer Community | NinjaScript Resources & Documentation

1 Like