NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe Moving Averages - Help to Refine this Indicator


Discussion in NinjaTrader

Updated
    1. trending_up 1,554 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
 Splex 
Toronto ON / Canada
 
Experience: Intermediate
Platform: NinjaTrader, Tadingview
Broker: IB
Trading: ES, GC, NG, GE
Posts: 2 since Apr 2018
Thanks Given: 0
Thanks Received: 1

Hi all,

One of my favorite indicators is the simple moving average of higher timeframes as they often provide reliable support and resistance levels and give a much better "big-picture" view of the market. I have attached two files for my Multi-Timeframe SMA indicators. I am trying to clean this indicator up but unfortunately, my coding abilities are limited.

Here are a few of the things I'd like to accomplish:
-Combine the Weekly and Monthly SMAs into one indicator
-Don't plot the early portion of the indicator if not enough data is loaded (i.e. On a daily chart, if I have 200 days of data loaded (40 weeks), and my period is 20 weeks, don't plot the line for the first 100 days as it is erroneous data. Obviously, this number of days will vary depending on the period and timeframe)
-Remove the "Daily SMA" plot which doesn't plot anyways but seems to be necessary for the higher timeframe SMAs to plot

Any other features you think might be useful, I am open to. I'd appreciate if someone could help refine this one.

Here's an Example with the 20 week sma, 50 week sma, 20 month sma, and 50 month sma:

Cheers,
Splex


Attached Files
Elite Membership required to download: MTFWeeklySMA.zip
Elite Membership required to download: MTFMonthlySMA.zip
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
White House Drops First Alien Files Today -- Market Says …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #3 (permalink)
 mavmoney 
boston usa
 
Experience: None
Posts: 6 since Mar 2019
Thanks Given: 0
Thanks Received: 1


Thanks for your post - I'm migrating from thinkscript, which I could code in as if it was my native language, to ninjascript, which is like being thrown into an alternate universe. A lot of my strategy is based on MTF indicators that visually look the way you've created these MTF moving averages - they are super easy to code on thinkscript - but I for the life of me cant figure out how to get them to work on ninja.

I've tried using others code to just get something on my screen, but no dice.

Any way you can run me through how you created this indicator? I'll be more than glad to collaborate on future MTF endeavors once I get a grasp of this!


Reply With Quote




Last Updated on February 10, 2020


© 2026 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 - Downloads - Top
no new posts