Chart enters strange scroll mode - NinjaTrader Programming | futures io social day trading
futures io futures trading


Chart enters strange scroll mode
Updated: Views / Replies:660 / 5
Created: by MarpleTrading 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
 

Chart enters strange scroll mode

  #1 (permalink)
Elite Member
Nederland
 
Futures Experience: Advanced
Platform: Sierra charts
Broker/Data: IB/IQFeed
Favorite Futures: Crude
 
Posts: 66 since Nov 2012
Thanks: 18 given, 40 received

Chart enters strange scroll mode

Hi,

I have created an indicator that reacts to a mouse click in the chart.
When the chart is not scrolled back the indi works just fine.

However, when it is scrolled back the first time I click after the indi is loaded makes the chart enter a scroll mode where when I move the mouse the chart scrolls left or right in accordance with the mouse movement. I have to double click to leave this mode. After some clicking my indi "gets it" and works as supposed.

Does anyone know who to get rid of this phenomena?

Thanks:
 
Code
		protected override void OnStartUp()
		{
			if (!_found)
			{
				ClearOutputWindow();
				this.ChartControl.ChartPanel.MouseClick += new MouseEventHandler(chart_MouseClick);
				this.ChartControl.ChartPanel.KeyDown += new KeyEventHandler(chart_KeyDown);
				chartHelper = new ChartHelper (this.ChartControl, this.Bars, this.TickSize);
				_t = Instrument.MasterInstrument.TickSize;
				_found=true;
			}
		}

...
		private void chart_MouseClick(object sender, MouseEventArgs e)
		{
			Panel chartPanel = sender as Panel;
			
			if (chartPanel == null)
				return;
			
			if (e.Clicks == 1 && (e.Button == MouseButtons.Left))
			{
				clickedBar = chartHelper.ConvertXtoBarIdx(e.X);
				int barsAgo = Count -  clickedBar - 1;
				entryPrice = Open[barsAgo];
				if (TradeParametersForm() == DialogResult.Cancel) return;

				if (isLong) 
				{
					DrawArrowUp("Up"+ArrowCount++, barsAgo, Low[barsAgo] - 2 * _t, Color.Blue);
				}
				else
				{
					DrawArrowDown("Down"+ArrowCount++, barsAgo, High[barsAgo] + 2 * _t, Color.Magenta);
				}
					
				StartAnalysis();
			}	
		}

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
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received



MarpleTrading View Post
Hi,

I have created an indicator that reacts to a mouse click in the chart.
When the chart is not scrolled back the indi works just fine.

However, when it is scrolled back the first time I click after the indi is loaded makes the chart enter a scroll mode where when I move the mouse the chart scrolls left or right in accordance with the mouse movement. I have to double click to leave this mode. After some clicking my indi "gets it" and works as supposed.

Does anyone know who to get rid of this phenomena?

Thanks:

Is this behavior repeatable on demand, or is it occasional? I've seen this happen occasionally, but not very often, I just chucked it up to some kind of obscure NT bug. But, if you can get it to happen predictably, then it's worth looking into.

Reply With Quote
 
  #4 (permalink)
Elite Member
Nederland
 
Futures Experience: Advanced
Platform: Sierra charts
Broker/Data: IB/IQFeed
Favorite Futures: Crude
 
Posts: 66 since Nov 2012
Thanks: 18 given, 40 received

It suddenly came (after adding some code that should not have any impact on the mouse or keyboard), but now it is reproducible.

Reply With Quote
 
  #5 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


MarpleTrading View Post
It suddenly came (after adding some code that should not have any impact on the mouse or keyboard), but now it is reproducible.

If it is reproducible, you should be able to pinpoint the culprit line(s) of code, by commenting them out, until you pinpoint the exact code.

Reply With Quote
The following user says Thank You to monpere for this post:
 
  #6 (permalink)
Elite Member
Nederland
 
Futures Experience: Advanced
Platform: Sierra charts
Broker/Data: IB/IQFeed
Favorite Futures: Crude
 
Posts: 66 since Nov 2012
Thanks: 18 given, 40 received

Strange, but I think your first suggestion was true.

I took out all code and the behaviour was gone. I put it back bit by bit and now all code is there again, but the scroll mode didn't come back

Reply With Quote

Reply



futures io > > > > > Chart enters strange scroll mode

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
Vertical Scroll Experimental devdas The Elite Circle 100 November 23rd, 2012 11:42 AM
How to scroll UP and DOWN on chart in MultiCharts? ReaM MultiCharts 6 August 8th, 2012 09:46 AM
is it possible to scroll to a specific bar through Ninjascript/Keyboard shortcuts? ejtrader NinjaTrader Programming 2 July 30th, 2012 11:57 AM
Question: how to get BMT home page w/out scroll bar kbit Tech Support 12 July 29th, 2011 01:32 AM
Trend Mode or Cycle Mode? gregid The Elite Circle 10 April 20th, 2010 06:52 PM


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

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-15 in 0.08 seconds with 19 queries on phoenix via your IP 54.226.132.197