NexusFi: Find Your Edge


Home Menu

 





Coding Multi Time Frame (MTF) Indicators with NinjaTrader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 180 posts (562 thanks)
    2. looks_two Zondor with 19 posts (29 thanks)
    3. looks_3 madLyfe with 16 posts (10 thanks)
    4. looks_4 BankRobberNT with 14 posts (16 thanks)
      Best Posters
    1. looks_one gomi with 3.7 thanks per post
    2. looks_two Fat Tails with 3.1 thanks per post
    3. looks_3 Zondor with 1.5 thanks per post
    4. looks_4 BankRobberNT with 1.1 thanks per post
    1. trending_up 189,095 views
    2. thumb_up 743 thanks given
    3. group 87 followers
    1. forum 424 posts
    2. attach_file 166 attachments




 
Search this Thread

Coding Multi Time Frame (MTF) Indicators with NinjaTrader

  #151 (permalink)
 
madLyfe's Avatar
 madLyfe 
Des Moines, Iowa
 
Experience: None
Platform: Ninja, TOS
Broker: AMP/CQG, TOS
Trading: CL, TF, GC
Posts: 1,641 since Feb 2011
Thanks Given: 9,220
Thanks Received: 1,020


Fat Tails View Post
@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:




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.

i am testing it now as well fatty.. thanks again for your hard work!

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

¯\_(ツ)_/¯

(╯°□°)╯︵ ┻━┻
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #152 (permalink)
 
Braulio's Avatar
 Braulio 
Portugal
 
Experience: Beginner
Platform: Ninjatrader, Multicharts
Broker: Amp Futures/Zen-Fire
Trading: ES, 6E
Posts: 229 since Aug 2009
Thanks Given: 407
Thanks Received: 217

Glad to see that the time we spent had a positive and productive outcome

I will test it tomorrow in real-time and let you know.

Thank you.


Fat Tails View Post
@ 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:




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.


Visit my NexusFi Trade Journal Reply With Quote
  #153 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603



PandaWarrior View Post
[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.

The bbcode is screencast, not screenshot.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #154 (permalink)
 
PandaWarrior's Avatar
 PandaWarrior 
In the heat
 
Experience: None
Posts: 3,165 since Mar 2010
Thanks Given: 6,329
Thanks Received: 13,405


Big Mike View Post
The bbcode is screencast, not screenshot.

Mike

well duh...my mental black hole kicking in again.

Thanks....

Simplicity is the ultimate sophistication, Leonardo da Vinci


Most people chose unhappiness over uncertainty, Tim Ferris
Reply With Quote
  #155 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842

@Fat Tails,

How hard would the anaKeltnerUniversal be to turn into MTF?

Not that important, but useful I would think.

You are awesome dude.

Visit my NexusFi Trade Journal Reply With Quote
  #156 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


bluemele View Post
@ Fat Tails,

How hard would the anaKeltnerUniversal be to turn into MTF?

Not that important, but useful I would think.

You are awesome dude.

Somewhat complex, but can be done. I did not release too many MTF indicators on purpose, as there is a learning curve. Just had to remove a bug from the VisualSMA and VisualEMA yesterday - and I was quite happy that only 2 indicators were affected.

When the first indicators are 100% tested and safe, the know-how can be applied to other projects.

Started this thread Reply With Quote
Thanked by:
  #157 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842


Fat Tails View Post
Somewhat complex, but can be done. I did not release too many MTF indicators on purpose, as there is a learning curve. Just had to remove a bug from the VisualSMA and VisualEMA yesterday - and I was quite happy that only 2 indicators were affected.

When the first indicators are 100% tested and safe, the know-how can be applied to other projects.

Yes, I see. It is unfortunate that NT doesn't make it easier. I don't understand c# at all, so thanks for all your hard work.

Visit my NexusFi Trade Journal Reply With Quote
  #158 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


bluemele View Post
Yes, I see. It is unfortunate that NT doesn't make it easier. I don't understand c# at all, so thanks for all your hard work.

I think that it is just a complex subject. I am not sure that it would be a lot easier with another software package.

Started this thread Reply With Quote
  #159 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603

@Fat Tails, I confess to not understanding why there are two separate packages for SMA and EMA, why not just one package with a selectable MA?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #160 (permalink)
 
Braulio's Avatar
 Braulio 
Portugal
 
Experience: Beginner
Platform: Ninjatrader, Multicharts
Broker: Amp Futures/Zen-Fire
Trading: ES, 6E
Posts: 229 since Aug 2009
Thanks Given: 407
Thanks Received: 217


Here's how I approached the testing scenario:

1. The first thing I wanted to do was compare the charts I've posted here to see how the historical/real-time data issue was. So I opened a new chart(historical) with the new version of the anaVisualSMA and took a picture right at the same place. The picture is attached and it's called "Testing 05-09-2011". From this first approach I can assume that it still behaves differently on historical and real-time data.

2. Also wanted to have real-time data on a chart from today and open up a new chart (historical) to compare it with the real-time data of just today. You can see the pictures "Today - Real-time" and "Today - Historical", they do not match.

3. Now I can't compare the old with the new version as Ninja won't let me have both installed, but to test the improved precision of the VisualSMA's I did just what you did Fat Tails, placed a chart with 2 dataseries in 4Range and 8Range. On top we have the VisualSMA and on the bottom panel the SMA that should be mimicked. I agree that the problem appears to be solved. This is just a first test and I would like to continue and monitor its behavior so that we can get a better confirmation.

Thank you for improving even further these great indicators.

B

Attached Thumbnails
Click image for larger version

Name:	Testing 05-09-2011.JPG
Views:	254
Size:	86.0 KB
ID:	48657   Click image for larger version

Name:	Today - Historical.JPG
Views:	191
Size:	90.2 KB
ID:	48658   Click image for larger version

Name:	Today - Real time.JPG
Views:	215
Size:	92.9 KB
ID:	48659   Click image for larger version

Name:	Tops + Bottoms.JPG
Views:	208
Size:	115.2 KB
ID:	48663  
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on April 19, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts