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


Click => Sender
Started: by mk77ch Views / Replies:254 / 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: 75 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,298 since Jun 2009
Thanks: 3,505 given, 3,896 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.

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: 75 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: 75 since Oct 2010
Thanks: 12 given, 62 received

yes

Futures Edge on FIO

What value do you place on the webinars on FIO?

 
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,298 since Jun 2009
Thanks: 3,505 given, 3,896 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!

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)
 

Mastering Trading Pysychology w/Brett Steenbarger & Trading Technologies

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

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


All times are GMT -4. The time now is 10:34 AM.

no new posts
Page generated 2017-03-23 in 0.08 seconds with 19 queries on phoenix via your IP 23.23.49.196