NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe Moving Averages - Help to Refine this Indicator


Discussion in NinjaTrader

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




 
Search this Thread

Multi Timeframe Moving Averages - Help to Refine this Indicator

  #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?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
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
  #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


© 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