Change chart period - NinjaTrader Programming | futures io social day trading
futures io futures trading


Change chart period
Updated: Views / Replies:903 / 3
Created: by shazzmoe 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
 

Change chart period

  #1 (permalink)
Elite Member
Denver Colorado
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 9 since Aug 2012
Thanks: 0 given, 3 received

Change chart period

I've seen similar questions that the only solution is to use a send key.

I'm wondering if anyone has figured out a way to have an indicator change the chart's period.

Basically I'm trying to set up and indicator that looks at daily data (secondary time frame) and calculates from that what the primary time frame should be. I get this value just fine but don't know how to change the chart's period without doing a send key. Send key might work if there was a way to guarantee that chart had focus (if there is a way for that i'd appreciate any help).

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
Austin TX
 
Futures Experience: Intermediate
Platform: SaintGobain Crystal Ball
Favorite Futures: 6E
 
Posts: 80 since Oct 2010
Thanks: 102 given, 129 received


I hope this is what you are looking for:

 
Code
        protected override void OnStartUp()
        {
            this.Bars.Period.Id = PeriodType.Minute;
            this.Bars.Period.Value = 5;
        }
J

Reply With Quote
 
  #4 (permalink)
Elite Member
Denver Colorado
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 9 since Aug 2012
Thanks: 0 given, 3 received

thanks that does seem to adjust the chart settings but doesn't reload the chart.

I ended up doing this and it seems to work the majority of the time.

 
Code
if(BarsArray[0].Period.Value != PeriodSize)
			{
				ChartControl.BarsArray[0].Period.Value = PeriodSize;
				// Make sure chart window is active.
				ChartControl.ParentForm.Activate(); 
				// Ctrl-Shift-R = reload historical data.
				System.Windows.Forms.SendKeys.SendWait("^+R"); 
			}

Reply With Quote
The following user says Thank You to shazzmoe for this post:

Reply



futures io > > > > > Change chart period

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
Creating a 20 period EMA of a 60 min chart in a 5 min chart. CapeDR NinjaTrader 7 May 23rd, 2014 04:37 AM
Display on chart a specific time period ctmvas NinjaTrader Programming 2 October 20th, 2013 08:39 PM
4500tick aggregation period on 512tick chart El Chupacabraj ThinkOrSwim Programming 0 July 10th, 2013 10:20 PM
change backgroundcolor chart for certain days beursindex NinjaTrader Programming 3 November 12th, 2011 09:30 AM
Chart back ground change. tickvix NinjaTrader 4 February 4th, 2011 02:30 PM


All times are GMT -4. The time now is 02:44 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-11 in 0.08 seconds with 19 queries on phoenix via your IP 54.226.172.30