Rmma Ver. 2

This is an implementation of Rainbow Multiple Moving average. It is much more flexible than an original, posted here a few years ago.

It creates automatically nr. of plots and their colors, according to input parameters. The parameters are:
Average type, Low Average , high average , step, opacity, saturation , luminosity.

The last 3 parameters are needed only for playing with rainbow colors and opacity.
There is a glitch.Ninja Trader framework doesn't recognize user defined input values during Initialize() phase, therefore I'm using an input file to supply them instead of Ninja indicator interface.

The only input parameter is file path. In the image below, the path is C:NinjaRMMAv2.dat

Content of the file is :
EMA,2,160,2,128,0.75,0.5 which means EMA is used to create a rainbow with low average 2 , high average 160 , step between averages is 4.
Therefore in this case the indicator has (160‐2) / 4 plots.
The last 3 parameters manage colors in attached image.

You should copy and paste the text to the file as above.
If you want to change input file path, you should recompile the indicator with another input file path.The file path cannot be changed for a reason explained above.

If you want to change input values, change contents of the input file in external editor before placing the indicator on the chart. The line must have 7 values in the order as described above.

Allowed average types are SMA,EMA,WMA,HMA. Otherwise an empty indicator will be created.

For programmers ‐ you can add/change indicator types in switch statement in OnStartUp.

Created By xTrader1
NinjaTrader Version 7
File Size 10.4 KB
Create Date 07/04/2013
# of Downloads 1088

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.