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

  #331 (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

Update VisualSMA and VisualEMA


Erez View Post
Hi @Fat Tails,

I 'm trying to use "VisualSMA" with displacement (positive number) and there is small issue with line plot color (last bar only) that paints with default gray color instead the selected rising/falling colors.
I've noticed that this behavior exist in all indicators that use "PlotColors[0][x]"
And my way to solve this in my indicators, is to use the inverse displacement value in "PlotColors"

I hope you will have time to check this issue.
Thanks

Erez

 
Code
protected override void OnStartUp(){PhaseShift = -1 * Displacement;}

 protected override void OnBarUpdate(){PlotColors[0][PhaseShift]}

I know that problem well, it is a pain. It affects plot colors, paint bars and draw methods. I have changed a few hundred lines of code to allow for displacement. Please let me know, if it works as expected.

The updated indicators can be found here:

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

The update would be needed for all indicators that have conditional plots (based on slope etc.), paint bars, use draw methods, so that would be real fun.

Reply With Quote
The following 9 users say Thank You to Fat Tails for this post:
 
  #332 (permalink)
Elite Member
Haifa,,,
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Futures
 
Posts: 186 since Mar 2011
Thanks: 181 given, 865 received


Fat Tails View Post
I know that problem well, it is a pain. It affects plot colors, paint bars and draw methods. I have changed a few hundred lines of code to allow for displacement. Please let me know, if it works as expected.

The updated indicators can be found here:

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

The update would be needed for all indicators that have conditional plots (based on slope etc.), paint bars, use draw methods, so that would be real fun.

It looks perfect so far.
You remind me that in my indicators I have changed this issue only in line plot, so I need to check paint bars etc…

Thanks for your effort.

Erez

Reply With Quote
The following 2 users say Thank You to Erez for this post:
 
  #333 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,237 received


Notifications sent.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #334 (permalink)
Elite Member
Toronto Canada
 
Futures Experience: Master
Platform: NinjaTrader 7
Favorite Futures: ES
 
Posts: 103 since Jul 2011
Thanks: 15 given, 15 received

Visual EMA

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


Ok so you can see what I have requested I need, sorry please can you do something like this or better

I have ploted 3 squares in the bottom corner of the screen that basically show the current color of each MA

it is needed when they are all together next to each other and the price is also there

the only way for me to tell the color is to expand the screen, this is what I am trying to avoid

to be able to tell the current color at all time even when they are on top of each other.

now it doesn't matter where you are going to place it on the screen as long as it is seen.

Thank you very much.

Great great job fat tail, I take my hat off for you.

Eli.

Reply With Quote
 
  #335 (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


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


Ok so you can see what I have requested I need, sorry please can you do something like this or better

I have ploted 3 squares in the bottom corner of the screen that basically show the current color of each MA

it is needed when they are all together next to each other and the price is also there

the only way for me to tell the color is to expand the screen, this is what I am trying to avoid

to be able to tell the current color at all time even when they are on top of each other.

now it doesn't matter where you are going to place it on the screen as long as it is seen.

Thank you very much.

Great great job fat tail, I take my hat off for you.

Eli.

You will already notice the colors on the price marker. If you select the colors accordingly, you will know which of the SMAs is rising or falling.

Plotting the rectangles as you suggested would require to code a custom indicator, accessing the three individual SMAs, it is not that easy.

Reply With Quote
 
  #336 (permalink)
Elite Member
Toronto Canada
 
Futures Experience: Master
Platform: NinjaTrader 7
Favorite Futures: ES
 
Posts: 103 since Jul 2011
Thanks: 15 given, 15 received

I understand, the price are really one on top of the other as you can see

but I understand if its a hustle

again thank you very much for everything.

Reply With Quote
 
  #337 (permalink)
Elite Member
UK London
 
Futures Experience: None
Platform: NT and XTrader
Favorite Futures: Piano
 
Posts: 1,358 since Sep 2009
Thanks: 1,356 given, 1,551 received

Visual SMA and EMA Background Colour

Hello @Fat Tails

If possible I'd like to request the option of Background colour for the Visual SMA and Visual EMA ?
Many thx and happy Fat Tails Day to you kind Sir...
(although I think "Happy Harry Day" has a better ring to it)

Every moment I wake up I realize I know nothing, and then I smile...

Last edited by zt379; August 18th, 2012 at 11:54 AM.
Reply With Quote
The following 2 users say Thank You to zt379 for this post:
 
  #338 (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


zt379 View Post
Hello @Fat Tails

If possible I'd like to request the option of Background colour for the Visual SMA and Visual EMA ?
Many thx and happy Fat Tails Day to you kind Sir...
(although I think "Happy Harry Day" has a better ring to it)

I am not yet entirely happy with the VisualSMA, I have to review it anyhow. Adding a backcolor option is possible, but there are lots of lines of code to be inserted. This indicator is no easy piece of code, the multi-timeframe logic of NinjaTrader is a bit quirky.

Reply With Quote
The following 4 users say Thank You to Fat Tails for this post:
 
  #339 (permalink)
Elite Member
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Rithmic
Favorite Futures: GC
 
plethora's Avatar
 
Posts: 639 since Dec 2010
Thanks: 1,174 given, 422 received


Fat Tails View Post
This indicator is no easy piece of code, the multi-timeframe logic of NinjaTrader is a bit quirky.

I bet the complexity is an understatement! It's too bad the Visual EMA/SMA cannot be used on a tick chart without the non-equadistant spacing.

Reply With Quote
 
  #340 (permalink)
Elite Member
Houston,Tx
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: TF
 
ThatManFromTexas's Avatar
 
Posts: 2,302 since Feb 2010
Thanks: 1,208 given, 4,293 received



plethora View Post
I bet the complexity is an understatement! It's too bad the Visual EMA/SMA cannot be used on a tick chart without the non-equadistant spacing.

@plethora

Oh, come on ... put up two separate charts ... you are young enough to still have some degree of hand eye coordination, multitasking ability and your synapses probably still synapse with some degree of regularity and dependability .... where as I have to pin my address to my shirt if I go outside...

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
The following 3 users say Thank You to ThatManFromTexas 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 08:06 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-17 in 0.24 seconds with 20 queries on phoenix via your IP 54.145.16.43