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

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


BankRobberNT View Post
I finally succeeded to code regular SMA and EMA indicators as functions inside my strategy. (the problem for me was how to do it with multi dimensional dataseries) So if you still don't use this approach in your indicator, you should do it, it will speed up the whole thing A LOT
Proudly can say that my strategy doesn't use any external indicators at all!!!

I hope that you do not mind that I cannot follow your exercise and do not understand what you are out for!

Good luck anyhow.

Reply With Quote
 
  #292 (permalink)
Elite Member
Barcelona / Spain
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ZenFire
Favorite Futures: CL
 
davidfa's Avatar
 
Posts: 93 since Feb 2010
Thanks: 217 given, 118 received

dots autoscale propertie

Hello Fat Tails, nice work.

I'd like if you could have the time to change something in the code if possible. It's about the autoscale property of the plotted dots.
Imagine a CL 4 range chart with a VisualEma of 1m 8ema at news time; although I have set up autoscale to false on that indicator, NT is autoscaling the chart out of the dots or nodes that the indicator plots.
NT allows me to change manually the dot autoscale property but only on a one by one basis

Would there be a way to change this behaviour? Or else allow not to plot the dots? (tho I find them useful)

Thank you.

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



davidfa View Post
Hello Fat Tails, nice work.

I'd like if you could have the time to change something in the code if possible. It's about the autoscale property of the plotted dots.
Imagine a CL 4 range chart with a VisualEma of 1m 8ema at news time; although I have set up autoscale to false on that indicator, NT is autoscaling the chart out of the dots or nodes that the indicator plots.
NT allows me to change manually the dot autoscale property but only on a one by one basis

Would there be a way to change this behaviour? Or else allow not to plot the dots? (tho I find them useful)

Thank you.

@davidfa: I have made the changes. If you download the latest version of the indicators from the download section of the forum, you should find that the dot autoscale property is set to false.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #294 (permalink)
Membership Temporarily Revoked
NYC
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Interactive Brokers
Favorite Futures: forex
 
Posts: 38 since Aug 2011
Thanks: 9 given, 25 received


Fat Tails View Post
I hope that you do not mind that I cannot follow your exercise and do not understand what you are out for!

Good luck anyhow.

Not at all, I was just trying to be helpful, with that 3-5% speed up thing.
Cheers

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


BankRobberNT View Post
Not at all, I was just trying to be helpful, with that 3-5% speed up thing.
Cheers

Thanks again. When I said that I could not follow, it was just a statement (not any criticism ).

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #296 (permalink)
Membership Temporarily Revoked
NYC
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Interactive Brokers
Favorite Futures: forex
 
Posts: 38 since Aug 2011
Thanks: 9 given, 25 received


Fat Tails View Post
Thanks again. When I said that I could not follow, it was just a statement (not any criticism ).

The function is 3-5% faster over calls to external
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
All you need to do is to try to
implement it.

Reply With Quote
The following user says Thank You to BankRobberNT for this post:
 
  #297 (permalink)
Elite Member
Abington, PA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL,NG,GC,FDAX,
 
Turtrend's Avatar
 
Posts: 49 since Aug 2009
Thanks: 107 given, 48 received

Visual SMA Color possibilities

Today I began to SIM practice trading PERRY METHOD with the new Visual SMA.
So far the results are outstanding.


The indicator alone is impressive, but I especially love how your paint bars allow one to see within the candle. (In general, I hate most colored candles for that reason). I love been able to see whether it was an up or down bar.

Thanks for sharing your work.

QUESTION: Would it be possible to paint the candle one color and have the actual line paint a different color?

Since gauging the degree of slope is so important with what I'm doing, I suspect others would find this visual distinction helpful too.

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


Turtrend View Post
Today I began to SIM practice trading PERRY METHOD with the new Visual SMA.
So far the results are outstanding.


The indicator alone is impressive, but I especially love how your paint bars allow one to see within the candle. (In general, I hate most colored candles for that reason). I love been able to see whether it was an up or down bar.

Thanks for sharing your work.

QUESTION: Would it be possible to paint the candle one color and have the actual line paint a different color?

Since gauging the degree of slope is so important with what I'm doing, I suspect others would find this visual distinction helpful too.

In the meantime you can apply the indicator twice, once for painting the candles and once for displaying the indicator line.

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-ugly.jpg  
Reply With Quote
The following 5 users say Thank You to Fat Tails for this post:
 
  #299 (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

Hello Fat Tails. I just installed the most recent version of the Visual SMA. I noticed that the size of the nodes when selecting "visual" seems to be related to the width of the price bars. I like large price bars but would like the ability to adjust the size of the nodes. I certainly understand if this may not be a high priority but hoping you can throw it on your already long to do list. Thanks again for all you do.

Best Regards
Chuck

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-nodes.jpg  
Reply With Quote
 
  #300 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,652 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



maxreturn View Post
Hello Fat Tails. I just installed the most recent version of the Visual SMA. I noticed that the size of the nodes when selecting "visual" seems to be related to the width of the price bars. I like large price bars but would like the ability to adjust the size of the nodes. I certainly understand if this may not be a high priority but hoping you can throw it on your already long to do list. Thanks again for all you do.

Best Regards
Chuck

The code uses the NinjaScript method DrawDot() which does not allow to adjust for size. But as this method is slow to plot, it is a good idea to replace it with a PlotSeries. This will also make the indicator faster, so I will shortly implement it.

Originally I had only used the colored dots for debugging the indicator, and then had left them as an option. This explains why I used the inefficient DrawDot() method.

Reply With Quote
The following 3 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 03:01 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-13 in 0.15 seconds with 20 queries on phoenix via your IP 54.163.209.109