C-Test (Coherency Test)

An indicator to perform a C-test, or Coherency test, which is a "methodological test for dimensional coherency" as advocated by mathematician William Eckhardt.

This test is used to detect whether or not an indicator may have scaling issues, i.e. the "scale" of the chart may bias the calculations depending on the time frame you pick for your chart. An indicator that doesn't pass the C-test may give inconsistent signals that change based on different time frames.

NOTE: This is not an indicator by itself, it is meant for testing other indicators.

User defined inputs

PlotNumber is the number of the plot in the indicator you wish to test. 1 is the main plot, 2 is the secondary, etc.

For example, a PlotNumber of 1 for the Stochastic is the K line, 2 is for the D line.

Constant doesn't need to be changed, any constant except 1, and no negative numbers, still is a valid test.
TestFunction is a string that defines which indicator you wish to test. It can be any installed indicator so long as it has plots.

Created By NinjaTrader_AdamP
NinjaTrader Version 7
File Size 3.0 KB
Create Date 07/16/2012
# of Downloads 469

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.