Coding Multi Time Frame (MTF) Indicators with NinjaTrader - NinjaTrader | futures io social day trading
futures io futures trading


Coding Multi Time Frame (MTF) Indicators with NinjaTrader
Updated: Views / Replies:103,211 / 411
Created: by Fat Tails Attachments:161

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
 161  
 
Thread Tools Search this Thread
 

Coding Multi Time Frame (MTF) Indicators with NinjaTrader

  #311 (permalink)
Elite Member
Scottsdale AZ
 
Futures Experience: Intermediate
Platform: NT
Favorite Futures: CL, TF
 
Posts: 11 since Sep 2011
Thanks: 91 given, 2 received

Visual SMA Crossover

I'm sorry if this had already been posted but has anybody created a VisualSMA Crossover indicator that would plot an arrow or colored background? Thanks

Reply With Quote
 
  #312 (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,601 received
Forum Reputation: Legendary


Cash4Ag View Post
I'm sorry if this had already been posted but has anybody created a VisualSMA Crossover indicator that would plot an arrow or colored background? Thanks

You would need to call the VisualSMA to do so, and that is not so easy. I have callable version as well, but due to the NinjaTrader archtecture, the called VisualSMA will not work if it loads secondary Range or Renko Bar.

But if you just want to use an SMA cross calculated from time-based, tick or volume bars, this can be done. The only problem is limited time to do it.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #313 (permalink)
Elite Member
Grand Rapids, Michigan, United States
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: TF, 6E
 
Posts: 318 since Dec 2010
Thanks: 263 given, 111 received

Question For Fat Tails


Hello Fat Tails. I know that you have indicated that there is an issue using the visual SMA on a non-time based chart like renko. I'm just wondering if this is because it can't be done in Ninja Trader or if it would just involve too much programming time to solve? The reason I'm asking is that I LOVE using RJay's renko hybrid chart and would LOVE to be able to use the visual SMA on this chart and get an accurate plot.

I've attached a screenshot of a 16 renko hybrid chart and an 8 renko hybrid chart. I have a 3 period SMA of the typical price plotted on the 16 renko hybrid and a 3 period visual SMA of the typical price of the 16 renko hybrid plotted on the 8 renko hybrid chart. On the 16 renko hybrid chart you'll notice that the highest price bar on the chart the SMA has a value of 820.20 while at the same time the visual SMA has a value of 819 on the 8 renko.

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-renkocomparison.jpg  
Reply With Quote
 
  #314 (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,601 received
Forum Reputation: Legendary


maxreturn View Post
I've attached a screenshot of a 16 renko hybrid chart and an 8 renko hybrid chart. I have a 3 period SMA of the typical price plotted on the 16 renko hybrid and a 3 period visual SMA of the typical price of the 16 renko hybrid plotted on the 8 renko hybrid chart. On the 16 renko hybrid chart you'll notice that the highest price bar on the chart the SMA has a value of 820.20 while at the same time the visual SMA has a value of 819 on the 8 renko.


Comparing Apples and Oranges (RenkoHybrid and Renko)

I think you are comparing apples and oranges. The left chart shows a SMA calculated from RJay's RenkoHybrid
bars. The right chart shows a SMA calculated from Renko bars.

The bar types are quite different and so is the SMA.


No issue with MTF Indicators Directly Applied to Chart

There is no issue with the VisualSMA or other MTF indicators that load range and Renko bars, as long as you use the VisualSMA or MTF indicator directly on a chart.

There is only an issue, if you call a MTF indicator which loads range or Renko bars. The VisualSMA and other MTF indicators cannot be used in a strategy, if they load range or Renko bars. They can be used in a strategy if they load minute, tick or volume bars.

Below I have compared the values returned for a simple MTF indicator and then for that same indicator being called by another indicator. The values should match, which is the case for minute, tick and volume bars. However, the values do not match for range and Renko bars. The problem with range bars is that they are only completed, once the range is exceeded. This seems to introduce a lag, when calling indicators that call range bars. Chart attached.

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

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #315 (permalink)
Elite Member
Mérida, Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: looking
Favorite Futures: CL
 
michaelf's Avatar
 
Posts: 508 since Mar 2011
Thanks: 1,153 given, 512 received

RSI MTF

Hi Fat Tails

How are you?

Small question, is it very dificult to code, for example, a 5min. RSI in a Renko chart?

thank you for you answer

regards
michael

Reply With Quote
 
  #316 (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,601 received
Forum Reputation: Legendary


michaelf View Post
Hi Fat Tails

How are you?

Small question, is it very dificult to code, for example, a 5min. RSI in a Renko chart?

thank you for you answer

regards
michael

It is feasible. I could use the same method as I used in the VisualSMA. The only difference is that the RSI has two plots, so you would need to execute the code twice - once for each plot. The VisualSMA has over 1,500 lines of code, but there may be some brilliant guys who find a simpler solution.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #317 (permalink)
Elite Member
Mérida, Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: looking
Favorite Futures: CL
 
michaelf's Avatar
 
Posts: 508 since Mar 2011
Thanks: 1,153 given, 512 received

Actually I stoped using the (RSI) Avg, I'm working now only with the RSI itself.


Edit:
When I think about it, I actually don't care so much about to see the RSI line on the chart. I care more of the value.
Is it posible to plot only the value of a 5min or 10 min RSI (like Market Analyzer) in a Renko or Range chart?


Last edited by michaelf; July 9th, 2012 at 03:09 PM.
Reply With Quote
 
  #318 (permalink)
Elite Member
Mérida, Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: looking
Favorite Futures: CL
 
michaelf's Avatar
 
Posts: 508 since Mar 2011
Thanks: 1,153 given, 512 received

Something like that

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-rsi.jpg  
Reply With Quote
 
  #319 (permalink)
Elite Member
Mérida, Mexico
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: looking
Favorite Futures: CL
 
michaelf's Avatar
 
Posts: 508 since Mar 2011
Thanks: 1,153 given, 512 received

VisualSMA Auto scale

Hi Fat Tails

a few moments ago I found out that on my chart the VisualSMA Auto scale function does not work. Can you please give me any help on this.

Thank you

michael

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-visualsma.jpg  
Reply With Quote
 
  #320 (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,601 received
Forum Reputation: Legendary



michaelf View Post
Hi Fat Tails

a few moments ago I found out that on my chart the VisualSMA Auto scale function does not work. Can you please give me any help on this.

Thank you

michael

There are two reasons for this:

(1) you have activated the nodes
(2) you use an older version of the VisualSMA

In the early versions of the VisualSMA I had set the Autoscale property of the nodes to true. As this caused unnecessary problems - as you are experiencing now - , I had changed that property later.

I think that the latest version in the Download section should not autoscale, when Autoscale is set to "false". If you install a new version, please make sure to remove the prior assembly first and to restart NinjaTrader, before you import the new assembly.

If you are too lazy to install the latest version, you may simply switch off the nodes.

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

Reply



futures io > > > > Coding Multi Time Frame (MTF) Indicators with NinjaTrader

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
Multi Time Frame Strategy Cancellation jthom NinjaTrader Programming 2 October 9th, 2014 12:00 PM
Close bar recognization in multi time frame strategy pinto552 NinjaTrader Programming 6 September 6th, 2011 10:07 AM
Multi-time frame strategy with periods of different size pequemec NinjaTrader Programming 2 February 24th, 2010 01:41 PM
visual multi-time frame scoring system. benbrooke Traders Hideout 1 October 4th, 2009 06:49 PM
Multi Volume/Time Frame Trading wh The Elite Circle 7 September 15th, 2009 05:55 PM


All times are GMT -4. The time now is 06:06 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-12 in 0.13 seconds with 20 queries on phoenix via your IP 54.167.44.32