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,208 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

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

Have promoted the Opening Range and Initial Balance Range Bands indicators to the download section of the forum. Please let me know, if anything does not work as expected.


https://nexusfi.com/local_links.php?catid=19&sort=d&filter=o





Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #52 (permalink)
 maxreturn 
Grand Rapids, Michigan, United States
 
Experience: Intermediate
Platform: NinjaTrader
Trading: TF, 6E
Posts: 319 since Dec 2010
Thanks Given: 264
Thanks Received: 114

Hello Fat Tails. With the VisualSMAX2 that you provided I have been experimenting with overlaying a 12 tick renko SMA onto a 6 tick renko chart with it's own SMA. When eyeballing the charts some interesting relationships jumped out at me when comparing the two MA's. The most significant was at major tops and bottoms where frequently the 6 tick renko sma would diverge with the 12 tick renko sma, thus giving a heads up on a possible long term reversal.

I have attached a chart of the TF to show what I mean. It occurred to me that it would be beneficial if an oscillator could be created based on MTF MA's. I know this may be too ambitious or difficult to accomplish but I thought I'd plant the seed. Thanks for everything you do.

Best Regards

Attached Thumbnails
Click image for larger version

Name:	MTF MA Divergence.jpg
Views:	368
Size:	107.1 KB
ID:	41960  
Reply With Quote
Thanked by:
  #53 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110


Hi Fat Tails,
i only trade with moving averages and the indicator you coded is perfect for my trading. Thank you for that
The problem i have is that with a muti frame indicator it is very difficult to find the best settings. Different moving average types, period, displacement...
I was wondering if you could make NT show the moving averages that go over 2 or more points by clicking on the candels (or renko bar), high low or close. Nt should find the best MA in the best period and best displacement.
Maybe we could add some settings to eliminate small MA's, and a margin of more or less (x) points (if the indicator is to precise we won't have any MA)
Every indicator should set themselves automatically. (easy to say when your not a programmer )
If want to find witch moving averages cross themselves at one precise point, it would be easier to click on the highest (or lowest) candel and let NT do the job.
Excuse my english, i hope you understood me...
Thanks again for the great work you've already done.

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


SARdynamite View Post
Hi Fat Tails,
i only trade with moving averages and the indicator you coded is perfect for my trading. Thank you for that
The problem i have is that with a muti frame indicator it is very difficult to find the best settings. Different moving average types, period, displacement...
I was wondering if you could make NT show the moving averages that go over 2 or more points by clicking on the candels (or renko bar), high low or close. Nt should find the best MA in the best period and best displacement.
Maybe we could add some settings to eliminate small MA's, and a margin of more or less (x) points (if the indicator is to precise we won't have any MA)
Every indicator should set themselves automatically. (easy to say when your not a programmer )
If want to find witch moving averages cross themselves at one precise point, it would be easier to click on the highest (or lowest) candel and let NT do the job.
Excuse my english, i hope you understood me...
Thanks again for the great work you've already done.

Interesting idea, but I do not know of any self-setting moving averages. If you want them to be self-setting, you would need to specify the exact rules and backtest them first. Let me know, when you have it finished.

Started this thread Reply With Quote
  #55 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110


Fat Tails View Post
Interesting idea, but I do not know of any self-setting moving averages. If you want them to be self-setting, you would need to specify the exact rules and backtest them first. Let me know, when you have it finished.

Thank you for your quick reply.
By self setting i meant to find the more accurate moving average (ema, sma, hma etc..) and the more accurate timeframe going over the highest (+or- x points) or the lowest (+or- x points) or the close (+or- x points) of 2 or 3 candles we could select by clicking.
plus an option to eliminate the ma's under (x) period

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


SARdynamite View Post
Thank you for your quick reply.
By self setting i meant to find the more accurate moving average (ema, sma, hma etc..) and the more accurate timeframe going over the highest (+or- x points) or the lowest (+or- x points) or the close (+or- x points) of 2 or 3 candles we could select by clicking.
plus an option to eliminate the ma's under (x) period

What is a "more accurate moving average" and what is a "more accurate timeframe"? What means "+or- x points"?
Do you mean 2 or 3 candles, you need to decide. What means "(x) period"?

I don't understand this, although I am willing to understand.

Started this thread Reply With Quote
  #57 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110


Fat Tails View Post
What is a "more accurate moving average" and what is a "more accurate timeframe"?
i mean on a chart of a fdax 10 renkos by clicking on the highest of 2 candles NT shows every moving average that go over this two points in a multitimeframe mode.
for example a 150 period of an ema from a 3 renko chart, a 200 period hma of a 5 minutes candle chart...


What means "+or- x points"?
it means more or less (x) points. because if your looking only for moving averages that go exactly through this two points NT might not show any MA. (Because it would be to precise). So we add a setting that allows NT to choose the Ma even if the price doesn't touch the ma by x points or goes through the ma by x points.
Do you mean 2 or 3 candles, you need to decide. What means "(x) period"?
Yes two or 3 candles to decide.
[IMG]http://data.imagup.com/9/1123789868.2555png[/IMG]

I don't understand this, although I am willing to understand.

Thank you for your patience, i really need to work on my english

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


SARdynamite View Post
Thank you for your patience, i really need to work on my english

It is quite an unusual idea to adapt moving averages with hindsight. First this has nothing to do with multi-timeframe indicators, but you only need to find a period that corresponds to those anchor points that you have identified.

The only concept that I know and which comes close to your idea uses anchored volume weighted moving averages. You can select key pivot highs and lows as anchor points and start calculating a volume weighted average price from these points.

If you want to discuss this concept, I suggest opening a new thread - if need in the French subsection of the forum -, as it is not related to MTF coding.

Started this thread Reply With Quote
  #59 (permalink)
 SARdynamite 
Belgium
 
Experience: Advanced
Platform: SaxoTrader
Broker: SaxoBank
Trading: ESTX
Posts: 289 since Dec 2009
Thanks Given: 243
Thanks Received: 110


Fat Tails View Post
It is quite an unusual idea to adapt moving averages with hindsight. First this has nothing to do with multi-timeframe indicators, but you only need to find a period that corresponds to those anchor points that you have identified.

The only concept that I know and which comes close to your idea uses anchored volume weighted moving averages. You can select key pivot highs and lows as anchor points and start calculating a volume weighted average price from these points.

If you want to discuss this concept, I suggest opening a new thread - if need in the French subsection of the forum -, as it is not related to MTF coding.

Thanks for your answer. I thought it was an interesting option for all multi-timeframe indicators. No need to tweak anymore, just select anchor points. It is easier. It works for bollinger, ma's, macd etc...
Do you remember the name of the indicator you're talking about ?

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



SARdynamite View Post
Thanks for your answer. I thought it was an interesting option for all multi-timeframe indicators. No need to tweak anymore, just select anchor points. It is easier. It works for bollinger, ma's, macd etc...
Do you remember the name of the indicator you're talking about ?

Its creators Andrew Coles and David Hawkins call it the MIDAS method. The method uses anchored VWMAs. Follow the links below to get more details:

Book published on MIDAS:
https://www.amazon.com/gp/product/1576603725/ref=s9_simh_gw_p14_d0_i1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-2&pf_rd_r=0GHNBN5RKBVJPE7V4Z9F&pf_rd_t=101&pf_rd_p=470938631&pf_rd_i=507846

Home Page:
Home

Short description attached. Again this has absolutely nothing to do with MTF indicators.

Attached Thumbnails
Coding Multi Time Frame (MTF) Indicators with NinjaTrader-paul-levine-midas-method.pdf  
Started this thread 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