NT8 : User drawn box on chart with mouse - NinjaTrader Programming | futures io social day trading
futures io futures trading


NT8 : User drawn box on chart with mouse
Updated: Views / Replies:355 / 5
Created: by Popsicle 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
 

NT8 : User drawn box on chart with mouse

  #1 (permalink)
Elite Member
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 214 since May 2016
Thanks: 2,014 given, 462 received

NT8 : User drawn box on chart with mouse

Hi,

Does anyone maybe have any ideas, even general direction would be awesome, for allowing a user to draw a box with their mouse on a chart in NT8? I wrote code that will draw a box between two price bars if the user clicks on the first bar and then the second. I would like to adapt this code to do the following:

The user clicks somewhere on the chart and drags his mouse while holding in the left mouse button to draw a box around a set of price bars. When the user releases the left mouse button, that would be the user defined box.

My biggest problem at this point is the normal chart behavior that when a user left clicks on the chart and moves their mouse, the chart pans left and right. Not sure if this can be disabled in code for the period that the box is drawn.

I am developing this specifically for NT8. Any help or advice would be greatly appreciated.

Popsicle

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



Popsicle View Post
Hi,

Does anyone maybe have any ideas, even general direction would be awesome, for allowing a user to draw a box with their mouse on a chart in NT8? I wrote code that will draw a box between two price bars if the user clicks on the first bar and then the second. I would like to adapt this code to do the following:

The user clicks somewhere on the chart and drags his mouse while holding in the left mouse button to draw a box around a set of price bars. When the user releases the left mouse button, that would be the user defined box.

My biggest problem at this point is the normal chart behavior that when a user left clicks on the chart and moves their mouse, the chart pans left and right. Not sure if this can be disabled in code for the period that the box is drawn.

I am developing this specifically for NT8. Any help or advice would be greatly appreciated.

Popsicle

Surely it's one of the built-in drawing tools? It is in 7.

Travel Well
Reply With Quote
The following user says Thank You to ratfink for this post:
 
  #4 (permalink)
Elite Member
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 214 since May 2016
Thanks: 2,014 given, 462 received

NT8 : User drawn box on chart with mouse

Thanks @ratfink. Unfortunately I need more control over the drawn box in terms of the bars it spans etc. I think you gave me an idea though, thank you very much. Will try it out.

Popsicle


Sent from my iPhone using futures.io mobile app

Reply With Quote
The following user says Thank You to Popsicle 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


Popsicle View Post
Thanks @ratfink. Unfortunately I need more control over the drawn box in terms of the bars it spans etc. I think you gave me an idea though, thank you very much. Will try it out.

Popsicle

Ok, cool. Be good to have people involved in these areas. In NT7 there is a lot of stuff around to help with capturing low-level events and using direct graphics, so it will be good to see some NT8 equivalents as well.

Cheers

Travel Well
Reply With Quote
 
  #6 (permalink)
Elite Member
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 214 since May 2016
Thanks: 2,014 given, 462 received

Extending built in drawing tool

Thanks @ratfink for putting me on the right track. For those interested in doing something similar, it is now possible in NT8 to provide your own custom drawing tool. In NT7 this was quite a mission but they made it very easy in NT8.

I will be using the built in Rectangle drawing tool and writing a custom drawing tool to extend it with the functionality I need. The following Ninjatrader support forum post is an awesome place to start if this is something you want to do.

Custom Drawing Tool - NinjaTrader Support Forum


Last edited by Popsicle; September 26th, 2016 at 03:54 AM. Reason: Fixed spelling mistake
Reply With Quote
The following user says Thank You to Popsicle for this post:

Reply



futures io > > > > > NT8 : User drawn box on chart with mouse

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
Expiration date to drawn on the chart for the futures contract jamsab NinjaTrader 1 March 31st, 2016 09:00 PM
Inaccurate transfer of drawing objects from chart to chart in Ninja be fixed in NT8? moneypenny NinjaTrader 1 June 7th, 2014 11:31 AM
Accessing selected manually drawn chart drawing tag Xav1029 NinjaTrader Programming 14 October 7th, 2012 08:41 AM
ACSIL: How do I get the time value of a Vertical line that I have drawn on the chart yonatan Sierra Chart Programming 7 June 25th, 2012 08:20 AM
User input box UManiac NinjaTrader Programming 5 September 21st, 2010 08:57 PM


All times are GMT -4. The time now is 07:03 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-13 in 0.12 seconds with 19 queries on phoenix via your IP 54.90.92.204