Future plot with NinjaTrader - NinjaTrader | futures io social day trading
futures io futures trading


Future plot with NinjaTrader
Updated: Views / Replies:3,631 / 8
Created: by ehlaban Attachments:4

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
 

Future plot with NinjaTrader

  #1 (permalink)
Elite Member
Netherlands
 
Futures Experience: Advanced
Platform: Ensign, Multicharts
Favorite Futures: SP500
 
Posts: 95 since Nov 2009
Thanks: 66 given, 56 received

Future plot with NinjaTrader

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I've been looking at NinjaTrader for a very long time especially because I wanted to program
my own calculations and methods. Since i do a lot of Cycle and Planetary analysis i need
to plot a line into the future e.g. behind the last plotted bar to do visual analysis.

I heard for a long time that it was not possible to plot into the future till recently i heard
about overiding the Plot() method and do a custom plot.
There are some good examples from Ninja on that and a good Ichimoku example from this forum.
Custom Drawing

This works pretty well but i wasn't able to get the cursor to show future dates. Also
plotting in an indicator pane had some drawbacks.

When working with the MS Chart component in Visual Studio i added bars to the bars series
to be able to plot into the future.

I tried this with NinjaTrader and to my surprise this works quite well and you are able to
see the values on the future x-axis as well.

The basic concept is to add filler bars to the Bar array with the high,low etc all the same price
BarsArray[0].Add(
and then because the bar is a line, by giving the high, low etc the same value,
make the future bars invisible by
CandleOutlineColor = Color.Transparent;

In OnTerminate() you can do some clean up if you want and delete the extra bars.

I made an example indicator as proof of concept. As this is my first ever NinjaTrader coding
it might still be a bit rough.

This indicator only works on Daily charts but my testing showed the current concept also works
on weekly and monthly. With some adaptions intraday will be possible as well.

The chart shows the indicator in action and this will open up a lot of possibilities i think.
Hope we can bring this implementation to a 1.0 version with all the knowledgable people in this forum.

Attached is a picture of a Planetary Indicator i'm working on that shows how usefull the concept can be.
When finished it will be posted here as well.

Attached Thumbnails
Future plot with NinjaTrader-ninja-pi.png  
Attached Files
Register to download File Type: zip FuturePlot_v0.5.zip (2.9 KB, 219 views)
Reply With Quote
The following 17 users say Thank You to ehlaban for this post:
 
  #2 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


ehlaban View Post
I made an example indicator as proof of concept. As this is my first ever NinjaTrader coding
it might still be a bit rough.

This indicator only works on Daily charts but my testing showed the current concept also works
on weekly and monthly. With some adaptions intraday will be possible as well.

@ehlaban,

Thanks a bunch. This is certainly a great method. It will be very useful for plotting time-related future events and formulas (calendars, cyclical events, seasonal tendencies, behavioral outcomes, possibly AI, etc.).

I contacted NinjaTrader on this limitation and they said that it is not possible in the current code. Then, I mentioned to them the example of Ichimoku and they went quiet and said it will be placed on the improvements list. What do they know?

It would be nice when your method is capable of plotting future events for any time frame.

Keep up the good work!

Thanks again.

Reply With Quote
The following 4 users say Thank You to aligator for this post:
 
  #3 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

An Update on Plotting Into Future in NT


@ehlaban,

I just noticed that the major problem with NT7 is that the cursor will not function (show time) on X-axis beyond the current time and into future. If they (NT) can just make this simple fix for cursor to be responsive beyond the current time, plotting into future needs no special coding.

I plotted your indicator first on a daily chart, then when I dropped any other time-related indicator the output for my indicator was also calculated and shown in the future. The issue is the NT cursor.

Currently, in Ninja, while you can scroll the chart into future the cursor will only show the current time. And, as you know that is the issue.

My current fix is to plot your indicator first, hide it, and then drop my other indicators - and it rocks. All is needed now is to be able to plot in intraday time frames down to minutes (perhaps seconds).

Thanks again!

Reply With Quote
 
  #4 (permalink)
Elite Member
Netherlands
 
Futures Experience: Advanced
Platform: Ensign, Multicharts
Favorite Futures: SP500
 
Posts: 95 since Nov 2009
Thanks: 66 given, 56 received

I intend to make an upgrade without the plotting so you can use it as an add in, like you did,
to plot into the future with other indicators.

Reply With Quote
 
  #5 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


ehlaban View Post
I intend to make an upgrade without the plotting so you can use it as an add in, like you did,
to plot into the future with other indicators.

@ehlaban,

Hi, any chance you upgraded your plotting in the future approach?

Appreciate if you can share. So far, no one here has picked up on your marvelous idea.

Great work, many thanks.

Cheers!

Reply With Quote
The following user says Thank You to aligator for this post:
 
  #6 (permalink)
Trading Apprentice
United States
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: NQ
 
Posts: 8 since Aug 2010
Thanks: 5 given, 8 received


aligator View Post
@ehlaban,

I just noticed that the major problem with NT7 is that the cursor will not function (show time) on X-axis beyond the current time and into future. If they (NT) can just make this simple fix for cursor to be responsive beyond the current time, plotting into future needs no special coding.

My cursor shows the chart time in the future when I turn off the equidistant bar spacing.

Attached Thumbnails
Future plot with NinjaTrader-untitled.png  
Reply With Quote
The following user says Thank You to lOQl for this post:
 
  #7 (permalink)
Elite Member
Netherlands
 
Futures Experience: Advanced
Platform: Ensign, Multicharts
Favorite Futures: SP500
 
Posts: 95 since Nov 2009
Thanks: 66 given, 56 received

I'm afraid I haven't done any Ninja coding anymore. I hope
version 8 solves these kind of challenges as well.

Reply With Quote
 
  #8 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


lOQl View Post
My cursor shows the chart time in the future when I turn off the equidistant bar spacing.

@lOQl,

Thank you for pointing out this feature. True, if equidistant bar spacing is set to false the cursor will show future times. However, any future event related indicator such as a news calendar will not plot into the future because there are no filler bars as provided by @ehlaban's Future Plot indicator.

It is a unfortunate that @ehlaban is no longer able to make the needed improvements to include hrs, minutes, and seconds to his indicator and make it useful for intraday charts.

Hopefully, some maverick coders here would take the challenge and volunteer to do these improvements to the code.

It is unreal that NT Support would not do this much needed future plotting capability like most other vendors having it as standard in their charting packages. The anticipated Version 8 seems to be basically a beautification of Version 7, so far as we have heard. Improvements seem to be in DOM and order execution areas. Nothing on charting has been shared.

Keeping fingers crossed.

Reply With Quote
The following user says Thank You to aligator for this post:
 
  #9 (permalink)
Elite Member
Boston, MA/USA
 
Futures Experience: Intermediate
Platform: Sierra
Favorite Futures: ES
 
Posts: 13 since Aug 2012
Thanks: 38 given, 3 received


ehlaban View Post
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I've been looking at NinjaTrader for a very long time especially because I wanted to program
my own calculations and methods. Since i do a lot of Cycle and Planetary analysis i need
to plot a line into the future e.g. behind the last plotted bar to do visual analysis.
...................
Attached is a picture of a Planetary Indicator i'm working on that shows how usefull the concept can be.
When finished it will be posted here as well.


Hi ehlaban,

Can you tell us what you use to get planetary data and how you link to it - also if you are doing calculations in Ninja trader itself? Can you give us as an example how you gather the mercury declination data?

Thanks very much

Reply With Quote

Reply



futures io > > > > Future plot with NinjaTrader

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
Ninjatrader: plot a marker after x bar have passed since... johnlucas NinjaTrader Programming 4 October 20th, 2011 12:33 PM
Seeing into the future...with Cycles. NMTrader Traders Hideout 40 October 17th, 2011 04:01 AM
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
Using Draw Methods to Plot to the Future Part of the Chart Tempo NinjaTrader Programming 6 February 24th, 2011 01:14 AM
NinjaTrader Future Consideration changes Big Mike NinjaTrader 13 September 13th, 2010 06:24 PM


All times are GMT -4. The time now is 02:36 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-14 in 0.15 seconds with 20 queries on phoenix via your IP 54.221.76.68