Multi Time Frame Mas

I needed 2 MAs from a 5 minute chart on my range chart. This defaults to a 50 and 200 EMA from a five minute time frame. Since I use this on range (non time based) charts I required 600 bars of data to plot, so you may need several days of data to plot correctly.

If I get time I will make this more general to allow selectable MA types. For now if you need a different MA type you will have to change the 'EMA' in lines 53 and 54 to the type of MA you want.

Thanks to sledge who basically posted the majority of this code in the forums!

Created By Carl10
NinjaTrader Version 7
File Size 3.9 KB
Create Date(s) 11/26/2013
# of Downloads 759

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.