Edit Strategy to Start in Disabled State - NinjaTrader Programming | futures io social day trading
futures io futures trading


Edit Strategy to Start in Disabled State
Updated: Views / Replies:850 / 10
Created: by danyzuko Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Edit Strategy to Start in Disabled State

  #1 (permalink)
Trading Apprentice
San Antonio TX/USA
 
Futures Experience: Intermediate
Platform: tos
Favorite Futures: spy
 
Posts: 15 since Jan 2015
Thanks: 12 given, 3 received

Edit Strategy to Start in Disabled State

Hey everyone, I'm waiting forever for a strategy I bought to be changed to start with both long and short trading switches in the off state instead of them both being on upon enabling the strategy.

Can anyone tell me how to get into the strategy file (I'm guessing the .cs file maybe...), and make the adjustment and save as a new file with the settings changed? Bottom line: I would like to do this as non-invasive and keep the original as backup.

Thanks in advance...


Last edited by danyzuko; January 20th, 2016 at 08:51 PM.
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received



danyzuko View Post
Hey everyone, I'm waiting forever for a strategy I bought to be changed to start with both long and short trading switches in the off state instead of them both being on upon enabling the strategy.

Can anyone tell me how to get into the strategy file (I'm guessing the .cs file maybe...), and make the adjustment and save as a new file with the settings changed? Bottom line: I would like to do this as non-invasive and keep the original as backup.

Thanks in advance...

First I'm assuming you have source code access included and already have a zip file that was sent to import into NT7 as backup anyway.

I'm also assuming from what you say that the startup condition variable(s) have not been made available in the Strategy Parameters section. You could make them be if so desired.

To start with just use the NT 'Tools->Edit NinjaScript->Strategy' right-mouse menu, find your strategy in the list and open it.

Then do right-mouse-menu -> 'Save As...' and save it under a new name. Your original Strategy will be left untouched.

Find (I'm guessing) the one or two control variables and see if they are either statically initialised (e.g. bool longsOn = true or int longs = 1) or set in Initialise() or OnStartUp() and change them to start as false/0/Off whatever.

Finally just press F5, this will recompile your new Strategy and any other code you have. Close the file and you should be good to go.

Re-edit/F5/find errors as needed, you only need the 'Save As...' step if you want different named versions.

Cheers

Travel Well
Reply With Quote
The following user says Thank You to ratfink for this post:
 
  #4 (permalink)
Trading Apprentice
San Antonio TX/USA
 
Futures Experience: Intermediate
Platform: tos
Favorite Futures: spy
 
Posts: 15 since Jan 2015
Thanks: 12 given, 3 received

No success..

Thank you but after looking at the edit strategy as you mentioned the strategy doesn't appear in that list.

Here is a screenshot showing both the strategies dialog and the edit strategy as well. Please advise...
https://gyazo.com/449010941bb84e34aaf88f6042702b13

Reply With Quote
The following user says Thank You to danyzuko for this post:
 
  #5 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


danyzuko View Post
Thank you but after looking at the edit strategy as you mentioned the strategy doesn't appear in that list.

Here is a screenshot showing both the strategies dialog and the edit strategy as well. Please advise...
https://gyazo.com/449010941bb84e34aaf88f6042702b13

Is it a protected DLL or do you have the .cs file?

How was it installed into your system?

What shows when you add it to a chart normally?

Might need somebody else who's used to dealing with 3rd party strats to chime in here, I don't use them.

Cheers

Travel Well
Reply With Quote
 
  #6 (permalink)
Elite Member
Florida
 
Futures Experience: Advanced
Platform: NinjaTrader 8
Favorite Futures: YM, ES, NQ, CL, ZB
 
trendwaves's Avatar
 
Posts: 742 since Dec 2012
Thanks: 2,822 given, 2,433 received

If he can get at the source code, (from the looks of it he can't), but for future reference... just check for the Historical state at the top of OnBarUpdate() forcing an exit until the strategy transitions to the live state. He won't have access to historical performance statistics, but the strategy will always start clean on the first tick of live data, (no virtual positions/orders as a result of the historical state) .

 
Code
if (Historical) return;

Be Patient and Trade Smart
Reply With Quote
The following 2 users say Thank You to trendwaves for this post:
 
  #7 (permalink)
Trading Apprentice
San Antonio TX/USA
 
Futures Experience: Intermediate
Platform: tos
Favorite Futures: spy
 
Posts: 15 since Jan 2015
Thanks: 12 given, 3 received

Must be protected

Yeah I'm afraid it must be protected. And I can't find any .cs files with the strategy I need to change. I resorted to using a macro to quickly disable both the long and short buttons as the strategy comes on. But recently even the macro is failing with a message saying, "unable to set the hook". I take it that's some sort of VB or .net issue.

I recently upgraded to windows 10 and lost the ability for any macro programs to work anymore. Ugh..

Reply With Quote
The following user says Thank You to danyzuko for this post:
 
  #8 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


danyzuko View Post

I recently upgraded to windows 10 and lost the ability for any macro programs to work anymore. Ugh..

Yep, that's why I haven't upgraded. I know lots of folks say 10's great but I never do until I buy a new machine to go with it. I think there's a way to restore 7 but I don't know how easy it is.

Travel Well
Reply With Quote
The following user says Thank You to ratfink for this post:
 
  #9 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


trendwaves View Post
If he can get at the source code, (from the looks of it he can't), but for future reference... just check for the Historical state at the top of OnBarUpdate() forcing an exit until the strategy transitions to the live state. He won't have access to historical performance statistics, but the strategy will always start clean on the first tick of live data, (no virtual positions/orders as a result of the historical state) .

 
Code
if (Historical) return;

Yes I do use that quite a lot too, but I think he wants the strategy to go live and then to be able to manually hit the Longs/Shorts On/Off buttons from a default 'Off' state rather than from a default 'On' state.

Travel Well
Reply With Quote
The following user says Thank You to ratfink for this post:
 
  #10 (permalink)
Trading Apprentice
San Antonio TX/USA
 
Futures Experience: Intermediate
Platform: tos
Favorite Futures: spy
 
Posts: 15 since Jan 2015
Thanks: 12 given, 3 received

Thanks guys


Yes he's right Trendwave. I wasn't sure what you were advising. But my case is exactly as Ratfink stated.
That's fine. I got an alternate strategy to work the way I want it to and it has all the necessary functionality.

Reply With Quote
The following user says Thank You to danyzuko for this post:

Reply



futures io > > > > > Edit Strategy to Start in Disabled State

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make strategy start another strategy zwentz NinjaTrader Programming 13 April 4th, 2015 10:00 AM
Where to start with Ninjatrader Strategy podski NinjaTrader 2 March 6th, 2013 02:08 PM
AOS strategy enabled on start up Merlin997 NinjaTrader Programming 1 December 5th, 2011 05:51 AM
Latest US Foreclosure 'Mess' Will Unfold State by State Quick Summary News and Current Events 0 September 29th, 2010 08:50 PM


All times are GMT -4. The time now is 03:23 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.13 seconds with 19 queries on phoenix via your IP 54.226.132.197