User input to running NT strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


User input to running NT strategy
Updated: Views / Replies:2,869 / 12
Created: by gain247 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
 

User input to running NT strategy

  #1 (permalink)
Survivor
Helsinki, Finland
 
Futures Experience: Advanced
Platform: NT8
Broker/Data: NTB
Favorite Futures: ES, CL
 
gain247's Avatar
 
Posts: 134 since Apr 2010
Thanks: 125 given, 122 received

User input to running NT strategy

Hi guys,

I have a strategy which I'd like to "pause" occasionally to avoid some clearly risky entry locations or times. In this case the general "disable" function is not a good way to do it because of the way my strategy prepares and locates the entry areas before triggering an entry, so I don't want to close/restart the strategy at that point as it would start strategy calculations from the scratch again thus missing this previously calculated entry area. I just want to inhibit any actual entries at some times without disabling the whole strategy.

So, I would like to interact with the running strategy via a dialog screen or button to put strategy to "idle" (ie not to take entries but still to keep calculating strategy as normal) and then later turn it back on "active" to let the strategy to take the entries again as normally. This maybe could be done using a check box dialog on the chart? Would somebody be able to tell / point me how to do this? Any C code example would be really helpful. I just need an example of how to build a chart dialog box object and how a running strategy would read it's input real time.

Thanks a lot!

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)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received


Afaik, when the strategy is running (i.e. enabled), it locks all user input. Otherwise, you could just use a region var.

So, the only thing that I can think of is to have a file read on every call to OnBarUpdate (or maybe on every bar). When you want to disable the strat from taking entries, edit the file to include some value that the strat reads to disable entries. Edit it back to take 'em again.

Note: haven't tried this ...


Last edited by kandlekid; June 21st, 2011 at 05:12 AM.
Reply With Quote
 
  #4 (permalink)
Elite Member
London, UK
 
Futures Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker/Data: IB/IQFeed
Favorite Futures: EUR/USD
 
Adamus's Avatar
 
Posts: 1,085 since Dec 2010
Thanks: 470 given, 778 received

You can affect the strategy variables, but NinjaTrader don't offer any support. You have to know C# well and how to link into a DLL which you program to pop up a dialog box to accept the input. Beyond that I know nothing, sorry - except that I know that people have done it or had it programmed for them.

As for placing your own buttons on the NinjaTrader menus - I'm watching this thread with interest to find out if anyone can confirm that it's possible.

You can discover what your enemy fears most by observing the means he uses to frighten you.
Reply With Quote
 
  #5 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received

What I'm doing is adding a button on the toolbar, which change the value of a boolean. This boolean is tested before each potential entry, and the order is not set if the boolean variable is false.
I think we have such button examples in the forum, here for example.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following 3 users say Thank You to sam028 for this post:
 
  #6 (permalink)
Survivor
Helsinki, Finland
 
Futures Experience: Advanced
Platform: NT8
Broker/Data: NTB
Favorite Futures: ES, CL
 
gain247's Avatar
 
Posts: 134 since Apr 2010
Thanks: 125 given, 122 received

Thanks for all your suggestions!

Sam028, your method looked like one that would work in my case. I just need a user definable, real time "on/off flag" that the strategy could read before triggering any order. However, I'm not Elite member and couldn't access the toolbar example link you posted... Any chance to get that example via pm?

Thanks!

Reply With Quote
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,352 given, 83,233 received

Elite stuff is not to be shared to non-Elite members so please do not ask for someone to PM you something you don't have access to.

But I agree the toolbar is the recommended method, this is what I've used in the past for myself and customers who hired me for strategies.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #8 (permalink)
Survivor
Helsinki, Finland
 
Futures Experience: Advanced
Platform: NT8
Broker/Data: NTB
Favorite Futures: ES, CL
 
gain247's Avatar
 
Posts: 134 since Apr 2010
Thanks: 125 given, 122 received

I understand.

Reply With Quote
 
  #9 (permalink)
Elite Member
Kansas City, Mo
 
Futures Experience: Beginner
Platform: Ninjatrader
Broker/Data: Zen-fire
Favorite Futures: ES, Oil
 
Posts: 19 since Mar 2010
Thanks: 1 given, 11 received


gain247 View Post
Thanks for all your suggestions!

Sam028, your method looked like one that would work in my case. I just need a user definable, real time "on/off flag" that the strategy could read before triggering any order. However, I'm not Elite member and couldn't access the toolbar example link you posted... Any chance to get that example via pm?

Thanks!

Try the link below:
TradeTimer for Ninjatrader 7: Installation and Usage Guide Read the Prospectus

Reply With Quote
The following 2 users say Thank You to aqawle for this post:
 
  #10 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received




And compare its cost ($100) with the cost of an Elite membership, with its tons of resources.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following user says Thank You to sam028 for this post:

Reply



futures io > > > > > User input to running NT strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the benefit of L2 data when running a strategy on Market Replay? benharrell NinjaTrader 9 April 3rd, 2015 05:29 PM
Frustration: NT not running with MBTrading jmjstrider The Elite Circle 2 May 27th, 2011 05:18 PM
Input's while in running an EA pmm2 MetaQuotes MetaTrader MQL Programming 1 March 13th, 2011 05:11 PM
User input box UManiac NinjaTrader Programming 5 September 21st, 2010 08:57 PM
User Interaction with running strategy dimkdimk NinjaTrader Programming 1 January 21st, 2010 09:05 AM


All times are GMT -4. The time now is 06:50 PM.

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-14 in 0.12 seconds with 19 queries on phoenix via your IP 54.226.227.175