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


NT8 : User drawn box on chart with mouse
Started: by Popsicle Views / Replies:166 / 5
Last Reply: Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

NT8 : User drawn box on chart with mouse

  #1 (permalink)
 Vendor: www.algoworx.com 
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 198 since May 2016
Thanks: 1,361 given, 438 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)
Market Wizard
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 2,961 since Dec 2012
Thanks: 9,565 given, 5,866 received
Forum Reputation: Legendary



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)
 Vendor: www.algoworx.com 
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 198 since May 2016
Thanks: 1,361 given, 438 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

If you have any questions about our services at Algoworx Trading please send me a private message.
Reply With Quote
The following user says Thank You to Popsicle for this post:
 
  #5 (permalink)
Market Wizard
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 2,961 since Dec 2012
Thanks: 9,565 given, 5,866 received
Forum Reputation: Legendary

Futures Edge on FIO

Which products do you trade?

 

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)
 Vendor: www.algoworx.com 
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 198 since May 2016
Thanks: 1,361 given, 438 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)
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

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 09:13 AM.

no new posts
Page generated 2017-01-24 in 0.11 seconds with 20 queries on phoenix via your IP 50.16.5.192