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

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


ThatManFromTexas View Post
@lolu

@plethora posted her chart template earlier... ask her to post it again... only this time ask her to post the indicators in a zip with it....

@TMFT,

Could you kindly direct me to her chart template link ?

Lolu

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


lolu View Post
@TMFT,

Could you kindly direct me to her chart template link ?

Lolu

@lolu

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-592.html#post251191

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




@TMFT,

This template is different from that on the screenshot in post # 343.

Lolu

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


lolu View Post
@TMFT,

This template is different from that on the screenshot in post # 343.

Lolu

@lolu

Sorry about that.... try pm'ing @plethora

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
 
  #355 (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
@plethora: I very much hope that it was @ThatManFromTexas who has coded them and not me. .

I was in a rush and did not express myself clearly. I didn’t mean the indicator didn’t work properly – I meant I don’t use the indicator properly or feel that I was using it correctly.

I thought I read in this thread that the VisualSMA/EMA does not work on a tick chart. I don't understand if just applying the 30- or 60-minute VisualEma to my tick-chart is sufficient, or there is something more involved. What I also meant is that it seemed to work unbelievably well by just applying it simply to my chart. But I still think I did something wrong but don't know what. And, is it possible to show two tick data series on one chart and how? Non-equidistant spacing is fine.


Fat Tails View Post
The VisualSMA and VisualEMA should work correctly. Why do you think that they don't work? With a 30 min setting, the VisualSMA produces one signal every 30 minutes. If you put that on a tick chart,
there will be lots of new values during the night session, although there are only a few ticks. This means that the VisualSMA will approach price in a quick movement, which can be seen on the chart.

Fat Tails, did I put the VisualSMA on my chart correctly?

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


ThatManFromTexas View Post
@Fat Tails

I think @plethora was being facetious since the 2 trades were profitable.... in which case... yes it was because of an indie I wrote ....

Ding, ding, ding. We have a winner here. This is exactly what I thought.


Last edited by plethora; August 23rd, 2012 at 03:02 AM.
Reply With Quote
 
  #357 (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

Lolu, I'll send you my template if you continue nudging TMFT to complete the cockpit project. I thought TMFT's disclosure that he had a weakness for bling meant Prometheus was going to get a second life.


Last edited by plethora; August 23rd, 2012 at 03:41 AM.
Reply With Quote
 
  #358 (permalink)
Elite Member
detroit,mi
 
Futures Experience: Beginner
Platform: NT
Favorite Futures: NQ
 
sudhirc's Avatar
 
Posts: 300 since Sep 2011
Thanks: 1,467 given, 326 received

VisualSMA

@Fat Tails

Hi Guys,

I will explain what i'm trying to do and let me know whether it can be done with VisuaSMA?

What i did was called VisualSMA on to a script like the following
VisualSMA(30,false,false,Visual,Second,89,Close):-Basically calling in the value of 89SMA from a 30 second chart to a HTF chart. But when compiling it is giving me couple of errors.
1). The name Visual does not exist in the current context
2). The name Second does nto exist in the current context.

When i typed on to the script VisualSMA(............. it gave options on what to plug in (please see attached)



Can this be done? if it can be what should i plug for the following
VisualSMaCalcModethisCalcMode (i typed Visual in here)
VisualSMAPriceTypethisPriceType (i typed Close in here)

Thank you for your help,
CS.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

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


sudhirc View Post
@Fat Tails

Hi Guys,

I will explain what i'm trying to do and let me know whether it can be done with VisuaSMA?

What i did was called VisualSMA on to a script like the following
VisualSMA(30,false,false,Visual,Second,89,Close):-Basically calling in the value of 89SMA from a 30 second chart to a HTF chart. But when compiling it is giving me couple of errors.
1). The name Visual does not exist in the current context
2). The name Second does nto exist in the current context.

When i typed on to the script VisualSMA(............. it gave options on what to plug in (please see attached)

Can this be done? if it can be what should i plug for the following
VisualSMaCalcModethisCalcMode (i typed Visual in here)
VisualSMAPriceTypethisPriceType (i typed Close in here)

Thank you for your help,
CS.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



@sudhirc: There are ways to access the indicator, but you need to follow a few rules.


IN visual mode the indicator repaints back to the last node

In visual mode the VisualSMA uses a linear interpolation between the last node and the last price. This distance is therefore repainted with every tick. This is necessary to emulate the behavior of the default SMA with COBC = false. In 1-Tick correction mode, the VisualSMA sometimes repaints 1 tick on real-time data. In strategy mode the VisualSMA does not repaint at all.


The indicator exposes a public property that holds the value of the number of bars that were painted back to the last node.

If you want to access the indicator in 1-Tick-correction mode, you will need to access the current value and the prior value of the indicator with each incoming tick. If you want to access the indicator in visual mode, you will need to access the last N values of the indicator (all values that have been repainted). The parameter N can be accessed via
 
Code
int N = VisualSMA(period, false, true, VisualSMACalcMode.Visual, thisPeriodType, thisPeriodValue, thisPriceType).Repaint[0];

where thisPeriodType may take the values VisualSMAPeriodType.Minute, VisualSMAPeriodType.Second, VisualSMAPeriodType.Tick, VisualSMAPeriodType.Volume. Once you have retrieved the value of N, you will then need to access the current and the prior N values of the indicator and call them.


Limitations

The VisualSMA cannot perform calculations on Renko bars, I will take away that option. When the VisualSMA is called by another indicator, the option to calculate values from range bars is disabled, as those values will not be reproduced correctly.


Example

Attached is an access indicator, which shows how the VisualSMA can be accessed by another indicator.

Attached Files
Register to download File Type: cs AccessVisualSMA.cs (10.9 KB, 29 views)

Last edited by Fat Tails; September 13th, 2012 at 11:31 AM.
Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #360 (permalink)
Elite Member
detroit,mi
 
Futures Experience: Beginner
Platform: NT
Favorite Futures: NQ
 
sudhirc's Avatar
 
Posts: 300 since Sep 2011
Thanks: 1,467 given, 326 received


@Fat Tails

Hi FatTails,

I'm having trouble importing this file. It says i have duplicate method names - dont know what file it is refering to ?
any ideas on what to do from my side or can you change the method name and reattach it.

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

Reply With Quote

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)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

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 09:53 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-12 in 0.14 seconds with 20 queries on phoenix via your IP 54.221.93.187