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



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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Tempo with 3 posts (0 thanks)
    2. looks_two Fat Tails with 2 posts (1 thanks)
    3. looks_3 Big Mike with 1 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,873 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

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

(login for full post details)
  #1 (permalink)
Los Angeles
 
 
Posts: 8 since Feb 2011
Thanks: 4 given, 0 received

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

Can you help answer these questions
from other members on futures io?
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received



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:
 
(login for full post details)
  #4 (permalink)
Los Angeles
 
 
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
 
(login for full post details)
  #5 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,790 since Jun 2009
Thanks: 32,314 given, 97,610 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #6 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,731 received


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
 
(login for full post details)
  #7 (permalink)
Los Angeles
 
 
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


futures io Trading Community Platforms and Indicators NinjaTrader > Using Draw Methods to Plot to the Future Part of the Chart


Last Updated on February 24, 2011


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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