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:99,162 / 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

  #141 (permalink)
Elite Member
Des Moines, Iowa
 
Futures Experience: None
Platform: Ninja, TOS
Broker/Data: AMP/CQG, TOS
Favorite Futures: CL, TF, GC
 
madLyfe's Avatar
 
Posts: 1,639 since Feb 2011
Thanks: 9,215 given, 1,008 received

so fat tails, your saying we shouldnt be using visual mode but strategy mode?

dont believe anything you hear and only half of what you see

¯\_(ツ)_/¯

(╯°□°)╯︵ ┻━┻
Reply With Quote
 
  #142 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,356 received
Forum Reputation: Legendary

For Strategies use VisualSMA in StrategyMode


madLyfe View Post
so fat tails, your saying we shouldnt be using visual mode but strategy mode?


Equidistant Bar Spacing

The VisualMode replicates the SMA as it would be shown on a separate DataSeries. You could for example add a secondary DataSeries to your chart, set it to transparent (invisible) and then move it to the main panel. Then you can apply the default SMA to that DataSeries.

As an alternative you can apply the VisualSMA to the first DataSeries and specify the secondary bars via indicator panel.

The only visible difference should be:

-> the first chart will show unevenly spaced bars
-> the second chart has the bars evenly spaced


Repainting

If you set the default SMA which uses the second DataSeries to CalculateOnBarClose = false, it will repaint with every tick the distance between the last, current invisible candle and the prior candle. All indicators do repaint the indicator value for the developing bar in CalculateOnBarClose = false mode.

In VisualMode, the VisualSMA simply mimics this behaviour, but relative to the primary DataSeries the repainting can cover a distance of several bars. This repainting over several bars makes it unusable. when called by strategies or indicators.


StrategyMode

The StrategyMode does not repaint. The indicator can be used by other indicators and strategies in StrategyMode. However it will not produce any interpolation of datapoints, but you will see a step function.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #143 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,356 received
Forum Reputation: Legendary


Had a look at the VisualSMA as well. The chart below shows that compared to the original SMA it comes very close, but there is a minor lag. After all it needs a candle to be displayed. I will still further test its behaviour.

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-6e-09-11-4-range-_-6e-09-11-10-range-05_09_2011.jpg  
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #144 (permalink)
Elite Member
Rechovot
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Index,Currency and Energy futures
 
perryg's Avatar
 
Posts: 1,703 since Jan 2010
Thanks: 504 given, 6,257 received


Fat Tails View Post
Had a look at the VisualSMA as well. The chart below shows that compared to the original SMA it comes very close, but there is a minor lag. After all it needs a candle to be displayed. I will still further test its behaviour.

Hello @Fat Tails
I believe since my webinar and showing people the use of the VisualSMA, you have been queried with dozens of questions as to the accuracy of the indicator i.e. is it lagging by one bar or not and many other questions. First of all I apologize for creating all this fuss. In MHO I think that people did not understand the use of using a HTF indicator and how to read it. The use of a 10 or 8 range on a 4 range chart is to show the DIRECTION of the trend and no more. In your chart today you show that no matter if it lags or not, the TREND is the same, and that is the main idea. The decision making in my use of this setup will NOT change as can been seen from your charts.
Once again thank you for an excellent indicator, it is far more advanced than the usual way NT uses HTF on one chart. I owe you one !!!!!

Reply With Quote
The following 3 users say Thank You to perryg for this post:
 
  #145 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,356 received
Forum Reputation: Legendary


perryg View Post
Hello @Fat Tails
I believe since my webinar and showing people the use of the VisualSMA, you have been queried with dozens of questions as to the accuracy of the indicator i.e. is it lagging by one bar or not and many other questions. First of all I apologize for creating all this fuss. In MHO I think that people did not understand the use of using a HTF indicator and how to read it. The use of a 10 or 8 range on a 4 range chart is to show the DIRECTION of the trend and no more. In your chart today you show that no matter if it lags or not, the TREND is the same, and that is the main idea. The decision making in my use of this setup will NOT change as can been seen from your charts.
Once again thank you for an excellent indicator, it is far more advanced than the usual way NT uses HTF on one chart. I owe you one !!!!!

@perryg : No problem, I am currently reviewing the indicator. It is a complex puece of code, so I may find ways to improve it. Will come back with the results.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #146 (permalink)
Elite Member
In the heat
 
Futures Experience: None
Platform: NT
Favorite Futures: Energy
 
PandaWarrior's Avatar
 
Posts: 3,155 since Mar 2010
Thanks: 6,306 given, 13,231 received

Having an SMA from a five min chart on my range chart is outstanding, however, it appears to have stopped working today. Attached is a pic from my range chart with a 21visual SMA from a 5 min chart.

[screenshot]http://screencast.com/t/XQeuGtBT[/screenshot]....can someone tell me how to make my jing screenshots show up in the post. I thought this was the way but obviously I am wrong.

2011-09-05_1532 - aztrader9's library

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Reply With Quote
 
  #147 (permalink)
Elite Member
In the heat
 
Futures Experience: None
Platform: NT
Favorite Futures: Energy
 
PandaWarrior's Avatar
 
Posts: 3,155 since Mar 2010
Thanks: 6,306 given, 13,231 received

Re started ninja, entirely new look to the charts. Not sure what happened there but it appears to be correct now.

2011-09-05_1617 - aztrader9's library

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Reply With Quote
 
  #148 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,356 received
Forum Reputation: Legendary


PandaWarrior View Post
Having an SMA from a five min chart on my range chart is outstanding, however, it appears to have stopped working today. Attached is a pic from my range chart with a 21visual SMA from a 5 min chart.

[screenshot]http://screencast.com/t/XQeuGtBT[/screenshot]....can someone tell me how to make my jing screenshots show up in the post. I thought this was the way but obviously I am wrong.

2011-09-05_1532 - aztrader9's library

I have no idea, why it stopped working. Could you please tell me

(1) whether your chart shows real-time data or historical data
(2) whether refreshing the chart via F5 changes anything
(3) whether the problem also occurs with conventional range bars (as opposed to RangeNoGap bars).

Reply With Quote
 
  #149 (permalink)
Elite Member
In the heat
 
Futures Experience: None
Platform: NT
Favorite Futures: Energy
 
PandaWarrior's Avatar
 
Posts: 3,155 since Mar 2010
Thanks: 6,306 given, 13,231 received


Fat Tails View Post
I have no idea, why it stopped working. Could you please tell me

(1) whether your chart shows real-time data or historical data
(2) whether refreshing the chart via F5 changes anything
(3) whether the problem also occurs with conventional range bars (as opposed to RangeNoGap bars).

1) Real time
2) F5 does not APPEAR to change anything.
3) I will need to see about the RangeNoGap bars. I've only had them on the chart for two days. Previously used conventional range bars.

I will report any future abnormalities as I discover them.

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Reply With Quote
The following user says Thank You to PandaWarrior for this post:
 
  #150 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,598 since Mar 2010
Thanks: 4,222 given, 25,356 received
Forum Reputation: Legendary

Indicator Update VisualSMA and VisualEMA



Braulio View Post
Fat Tails,

I'm using the latest version of the anaVisualSMA and today I noticed the following on my charts :

You can see on the attached pictures that the first one(TRADE#8) was taken yesterday while I was trading, and the second one was taken at the exact same spot today(after shutting down my computer and closing ninja).

The VisualSMA's look different but everything else is in place.

Thanks.

B

@Braulio: I have had a look at the VisualSMA and VisualEMA again. In VisualMode and real-time the indicator plotted in an inconsistent way, as there was a bug in the interpolation algorithm. I have now recoded that section of the indicator, and the tests which I have made suggest that the problem is solved.

The updated indicators are here:

https://futures.io/free_downloads/ninjatrader-7/indicators/942-download.html?view
https://futures.io/free_downloads/ninjatrader-7/indicators/939-download.html?view

The chart below shows the new version (blue) compared to the old version (red, dashed). Below is the SMA, which is directly calculated from 8 range bars (orange) for comparison.

Could you please check and confirm that it now works as expected.

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-visualsma-real-time.jpg  
Reply With Quote
The following 5 users say 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)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Time Frame Strategy Cancellation jthom NinjaTrader Programming 2 October 9th, 2014 11:00 AM
Close bar recognization in multi time frame strategy pinto552 NinjaTrader Programming 6 September 6th, 2011 09:07 AM
Multi-time frame strategy with periods of different size pequemec NinjaTrader Programming 2 February 24th, 2010 12:41 PM
visual multi-time frame scoring system. benbrooke Traders Hideout 1 October 4th, 2009 05:49 PM
Multi Volume/Time Frame Trading wh The Elite Circle 7 September 15th, 2009 04:55 PM


All times are GMT -4. The time now is 02:41 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-07-27 in 0.14 seconds with 21 queries on phoenix via your IP 23.20.218.77