Using Draw Methods to Plot to the Future Part of the Chart - NinjaTrader Programming | futures io social day trading
futures io futures trading


Using Draw Methods to Plot to the Future Part of the Chart
Updated: Views / Replies:2,341 / 6
Created: by Tempo 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
 

Using Draw Methods to Plot to the Future Part of the Chart

  #1 (permalink)
Just starting out...
Los Angeles
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 8 since Feb 2011
Thanks: 4 given, 0 received

Using Draw Methods to Plot to the Future Part of the Chart

I have a few projective approaches I'd like to test, projective in the way Fibonacci & Gann techniques are. They attempt to identify time & price points in the future that are of interest. The NinjaScript OnBarUpdate() method seems to prohibit programmatically drawing objects or plotting indicators to the future part of the chart, of whatever bar is being currently calculated. One can manually place rectangles and ellipses anywhere one desires, including the future area of the chart. Is there a way to programmatically place drawing objects to the future side (to the right) of whatever bar is being calculated, including the bar being created "now"?

I have seen some stuff on overriding the plot() method. Can that be used to programmatically draw the draw object methods like DrawRectangle(), DrawEllipse() on the future side of the chart, or does this only work for price-derivative indicators like MACD or RSI? And, does that require translating back and forth between time/price and X/Y coordinates?

Can the draw object methods themselves be overridden, so that they can take negative values for their x-axis/bars back values? They would then plot to the future. I prefer to stay with draw object methods if at all possible due to the simplicity of the arguments that they take, prices, numbers of bars, etc.

Thanks,
Tempo

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
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary



Tempo View Post
I have a few projective approaches I'd like to test, projective in the way Fibonacci & Gann techniques are. They attempt to identify time & price points in the future that are of interest. The NinjaScript OnBarUpdate() method seems to prohibit programmatically drawing objects or plotting indicators to the future part of the chart, of whatever bar is being currently calculated. One can manually place rectangles and ellipses anywhere one desires, including the future area of the chart. Is there a way to programmatically place drawing objects to the future side (to the right) of whatever bar is being calculated, including the bar being created "now"?

I have seen some stuff on overriding the plot() method. Can that be used to programmatically draw the draw object methods like DrawRectangle(), DrawEllipse() on the future side of the chart, or does this only work for price-derivative indicators like MACD or RSI? And, does that require translating back and forth between time/price and X/Y coordinates?

Can the draw object methods themselves be overridden, so that they can take negative values for their x-axis/bars back values? They would then plot to the future. I prefer to stay with draw object methods if at all possible due to the simplicity of the arguments that they take, prices, numbers of bars, etc.

Thanks,
Tempo


I have at least in one case used a DrawText() method and entered a negative value for the BarsAgo parameter. This worked as the text was plotted to the right of the current bar.

Just try and see what happens.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (permalink)
Just starting out...
Los Angeles
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 8 since Feb 2011
Thanks: 4 given, 0 received

Wow, Fat Tails,
That's the first time I've heard of that working. I have tried it with a rectangle before, but it did not work at the time. What version and build were you on? Tomorrow I will have time to code a test. If it works on NT7 (which is new to me) I will be thrilled, really.
Thanks for your quick reply,
Tempo

P.S. Confirmation or thoughts from others is welcome, too.

Reply With Quote
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,219 received


Fat Tails View Post
I have at least in one case used a DrawText() method and entered a negative value for the BarsAgo parameter. This worked as the text was plotted to the right of the current bar.

Just try and see what happens.

I believe it was added in NT7.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary


Big Mike View Post
I believe it was added in NT7.

Mike

I have used it in that Relative Volume indicator. It plots the info at position -1 to the right of the last bar of the histogram.
You can check the code.

Reply With Quote
 
  #7 (permalink)
Just starting out...
Los Angeles
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 8 since Feb 2011
Thanks: 4 given, 0 received

Fat Tails, Mike,

Yep. Didn't work in NT6.5 (so that's why I asked), and it now works in NT7, which is great for what I'm trying to do. Thank you guys for your help.

Best,
Tempo

Reply With Quote

Reply



futures io > > > > > Using Draw Methods to Plot to the Future Part of the Chart

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
Back to the Future! Back testing multi time frame strategy trades occuring in future mrticks The Elite Circle 10 April 2nd, 2011 10:54 AM
How many methods do you focus on? jonc Psychology and Money Management 6 December 15th, 2010 12:07 PM
Advice on Trading Methods tderrick Traders Hideout 2 October 1st, 2010 04:36 PM
draw text to the bottom of the chart Zsolt NinjaTrader Programming 5 August 30th, 2010 07:30 AM
New indicators and methods sharky NinjaTrader 0 July 24th, 2009 06:21 PM


All times are GMT -4. The time now is 08:40 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-12 in 0.10 seconds with 19 queries on phoenix via your IP 54.90.207.75