Click => Sender - NinjaTrader Programming | futures.io
futures.io futures trading


Click => Sender
Started: by mk77ch Views / Replies:226 / 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
 

Click => Sender

  #1 (permalink)
Elite Member
Switzerland
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Dorman
Favorite Futures: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 74 since Oct 2010
Thanks: 12 given, 62 received

Click => Sender

Hello,

I have an indicator with a click event defined on the ChartControl:

 
Code
ChartControl.ChartPanel.MouseUp += new MouseEventHandler(myMouseEvents);

private void myMouseEvents(object sender, MouseEventArgs e)
{
    TriggerCustomEvent(new CustomEvent(myCustomEvent), e);
}
Does anybody know if there is a possibility to find out if the click happened in the main chart window or if it happened in a sub-panel? I am able to get the x y coordinates of the click and also the size of the ChartPanel but i didnt found a possibility to find out how many sub panels are present.

Thank you,
mike

I never lose. I either win or learn.
Nelson Mandela
Reply With Quote
The following user says Thank You to mk77ch for this post:
 
  #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)
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,257 since Jun 2009
Thanks: 3,479 given, 3,846 received


Did you try in checking with the parent object of sender?
I have a similar indicator but I only used it with a single panel, I'll take a look if it's possible when I have a minute.

Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)
Reply With Quote
The following 2 users say Thank You to sam028 for this post:
 
  #4 (permalink)
Elite Member
Switzerland
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Dorman
Favorite Futures: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 74 since Oct 2010
Thanks: 12 given, 62 received


sam028 View Post
Did you try in checking with the parent object of sender?
I have a similar indicator but I only used it with a single panel, I'll take a look if it's possible when I have a minute.

hey sam,

thank you for your reply.
no i didnt check if the parent is available in this context.
will have a look at it!

thank you,
mike

I never lose. I either win or learn.
Nelson Mandela
Reply With Quote
 
  #5 (permalink)
Elite Member
Switzerland
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Dorman
Favorite Futures: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 74 since Oct 2010
Thanks: 12 given, 62 received

yes

Futures Edge on FIO

Which products do you trade?

 
i just found a simple solution by using the bounds form the Plot method.
so i simply check if e.Y is between the top and bottom bounds to find out if the click event was fired by the current panel.

cheers,
mike

I never lose. I either win or learn.
Nelson Mandela
Reply With Quote
 
  #6 (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,257 since Jun 2009
Thanks: 3,479 given, 3,846 received


mk77ch View Post
i just found a simple solution by using the bounds form the Plot method.
so i simply check if e.Y is between the top and bottom bounds to find out if the click event was fired by the current panel.

cheers,
mike

I assumed you already though about this solution and didn't used it as it was not the "cleanest" way to do it, but I was wrong . And if it works, let it be!

Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)
Reply With Quote

Reply



futures.io > > > > > Click => Sender

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

An Afternoon with FIO member Massive l

Elite only
 

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
Not making enough money in trading -----> Looking for a job>>PLEASE HELP!! AshleyQueenTrader Off-Topic 23 July 25th, 2016 11:56 PM
Global Dictionary sender and receiver RM99 EasyLanguage Programming 6 December 12th, 2014 12:25 PM
CLICK HERE if you are landlord>>> Creditor trying to garnish my precious rent budfox Off-Topic 16 May 12th, 2014 12:25 PM
ACD System>>>A & C Values for the ES budfox Index Futures Trading 3 October 28th, 2013 05:20 PM
Difference in simulator trading the ES and live trading with a small account>>> budfox Traders Hideout 8 July 6th, 2013 11:59 PM


All times are GMT -4. The time now is 07:02 AM.

no new posts
Page generated 2017-01-19 in 0.09 seconds with 20 queries on phoenix via your IP 54.92.229.162