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,470 / 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

  #181 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


madLyfe View Post
will playing with these have any effect on currently installed visualSMA/EMA indies?

They have different names and do not use the same enums, so there is no conflict between the new and the old versions.

You can therefore install them in parallel.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #182 (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,641 since Feb 2011
Thanks: 9,217 given, 1,011 received

getting pretty drastic differences in plots with the same options set.. Black is the current visualSMA lines, and the equal counterparts are the newvisualSMA lines colored in red:

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

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

¯\_(ツ)_/¯

(╯°□°)╯︵ ┻━┻
Reply With Quote
The following user says Thank You to madLyfe for this post:
 
  #183 (permalink)
Elite Member
Lagos, Nigeria
 
Futures Experience: Intermediate
Platform: NinjaTrader, SierraChart
Favorite Futures: Euro Currency & Oil
 
lolu's Avatar
 
Posts: 2,440 since Jun 2009
Thanks: 1,000 given, 1,595 received



Fat Tails View Post
I have been further digging into the NinjaTrader architecture, and the result is a simpler version of the VisualSMA and the VisualEMA. The new versions were entirely recoded from scratch and the code is about 80 lines shorter than the code of the previous versions.

Simplicity always means performance gain and robustness, so here are some of the main improvements:

-> loading time of the indicator on historical data reduced by a factor 10
-> lag of the indicators reduced
-> indicators can be safely called from other indicator or strategy

The chart below shows the 20-period EMA and 20-period SMA, both calculated from a 5 minute chart, but displayed on a 50 tick chart of the FDAX 12-11.

The new indicators are attached below. After installation you will find them as NewVisualSMA or NewVisualEMA in the dropdown menu of the indicator dialogue box. These are not the final versions, but pre-versions for testing.

Fat,

What are the differences between the anaVisualEMA, anaVisualSMA and VisualEMAX(x), VisualSMAX(x) ? I seem to be more comfortable with ...MAX series.

Lolu

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


madLyfe View Post
getting pretty drastic differences in plots with the same options set.. Black is the current visualSMA lines, and the equal counterparts are the newvisualSMA lines colored in red:

This is still a bug in the new indicator, will change the code and post it later. Nothing serious, just forgot to implement the Typical Price correctly, so it is displaying the Close.


Last edited by Fat Tails; October 21st, 2011 at 03:58 PM.
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #185 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


lolu View Post
Fat,

What are the differences between the anaVisualEMA, anaVisualSMA and VisualEMAX(x), VisualSMAX(x) ? I seem to be more comfortable with ...MAX series.

Lolu

I use X for experimental, it was a pre-version. There is a learning curve involved in coding MTF indicators, I am gradually getting better at it. An expert is somebody, who has made every possible mistake.

I really suggest to switch to the newest version available in the download section of the forum. I am learning from my own and other people's mistakes and adapt the indicators accordingly.

I now recommend the new test version as it is faster, more stable and also has a reduced lag depending on the bar series loaded.

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

Bug Removed


madLyfe View Post
getting pretty drastic differences in plots with the same options set.. Black is the current visualSMA lines, and the equal counterparts are the newvisualSMA lines colored in red:

Suggest that you test again now. I have now added that little feature, which allows to set the Typical Price, High, Low. The chart below shows the indicator in OneTickCorrection Mode and Visual Mode applied to the high, low and typical of a 30 min bar series.

I have also found two minor other bugs, so I suggest that the few who have downloaded the first version swap it for this one.

https://futures.io/ninjatrader/9393-coding-multi-time-frame-multiple-time-frames-indicators-ninjatrader-18.html#post163814

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-es-12-11-5-min-21_10_2011.jpg  

Last edited by Fat Tails; October 22nd, 2011 at 07:47 AM.
Reply With Quote
The following 5 users say Thank You to Fat Tails for this post:
 
  #187 (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,641 since Feb 2011
Thanks: 9,217 given, 1,011 received

does this look more like what it was supposed to be plotting? im using the same settings as the previous picture i posted..

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

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

¯\_(ツ)_/¯

(╯°□°)╯︵ ┻━┻
Reply With Quote
The following user says Thank You to madLyfe for this post:
 
  #188 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


madLyfe View Post
does this look more like what it was supposed to be plotting? im using the same settings as the previous picture i posted..

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

If you look at the chart, you will note that in some places the new version (red) leads the old version (black) by one bar. This would be an improvement. Is your chart data historical or real-time data?

Reply With Quote
 
  #189 (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,641 since Feb 2011
Thanks: 9,217 given, 1,011 received


Fat Tails View Post
If you look at the chart, you will note that in some places the new version (red) leads the old version (black) by one bar. This would be an improvement. Is your chart data historical or real-time data?

its real time.. in the fact that i trade from the live market...?

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

¯\_(ツ)_/¯

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



madLyfe View Post
its real time.. in the fact that i trade from the live market...?

Once you press F5, real-time data is replaced with historical data.

Reply With Quote
The following 2 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)

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
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 04:03 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-17 in 0.14 seconds with 20 queries on phoenix via your IP 107.20.115.174