Real-time tracking of mouse move NOT working - NinjaTrader Programming | futures io social day trading
futures io futures trading


Real-time tracking of mouse move NOT working
Updated: Views / Replies:450 / 2
Created: by LearnToCode Attachments:1

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
 

Real-time tracking of mouse move NOT working

  #1 (permalink)
Trading Apprentice
Danang, VN
 
Futures Experience: Advanced
Platform: NinjaTrader, FXCM Trading Station, Meta Trader 4
Favorite Futures: Forex
 
Posts: 6 since Nov 2013
Thanks: 8 given, 0 received

Real-time tracking of mouse move NOT working

Hi,

For some of my future projects, I need to capture the position of mouse cursor on charts.

Therefore, I decide to test my approach with this simple code, whose purpose is to handle MouseMove event for displaying the X and Y location of mouse in real time.

However, the problem is that the values of X and Y only update when I click (either right, left, or wheel click) on a chart. Can you instruct me a way to update X and Y real-time for any mouse move?

Thank you in advance.

 
Code
protected override void Initialize() {
        Overlay	 = true;
	CalculateOnBarClose = true;
	ChartControl.ChartPanel.MouseMove += new MouseEventHandler(OnMouseMove);
}

void OnMouseMove(object sender, MouseEventArgs e) {
	DrawTextFixed("info", "X = " + e.X + "\nY = " + e.Y, TextPosition.BottomRight, Color.Red, new Font("Arial", 20f), Color.Black, Color.Yellow, 100 );
}
		
protected override void OnBarUpdate() {
}

Screenshot: Please see my attachment
___

Attached Thumbnails
Real-time tracking of mouse move NOT working-test.png  
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 Apprentice
Danang, VN
 
Futures Experience: Advanced
Platform: NinjaTrader, FXCM Trading Station, Meta Trader 4
Favorite Futures: Forex
 
Posts: 6 since Nov 2013
Thanks: 8 given, 0 received


Hi,

Could anyone know the reason why MouseMove event handler does not work properly as expected? Please help me.

Thank you in advance.

Reply With Quote

Reply



futures io > > > > > Real-time tracking of mouse move NOT working

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
ACSIL: working with time and sales data yonatan Sierra Chart Programming 44 April 1st, 2015 04:52 PM
Convert mouse x/y location to Time & Price YuvalW NinjaTrader Programming 8 October 26th, 2014 12:11 PM
Is It Time to Move to NT 7? tderrick NinjaTrader 158 April 15th, 2012 05:48 PM
REAL Capitalists Move Our Money from Big Banks to Credit Unions Quick Summary News and Current Events 0 November 5th, 2011 07:40 PM
Austerity Isn't Working; It's Time for a Plan B Quick Summary News and Current Events 0 June 6th, 2011 07:40 AM


All times are GMT -4. The time now is 09:28 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-12 in 0.07 seconds with 20 queries on phoenix via your IP 54.221.93.187