Step 1:
Most of the time, it’s easier to start from a pre-loaded script you want to modify, adapting to a specific problem to resolve. In order to do that, open the custom indicator panel, using the Tools Navigator, Custom Indicators.
Press the button
709-plus. You should now see a blank text field, and the name of the new indicator, arbitrarily set to « New Indicator».

Screenshot 2013.09.23 09.35.02




Step 2:
Copy and paste the original script into the blank text field.

Make sure you select the right configuration: In this particular case, we’re going to modify the Derivative Oscillator to display a histogram rather than two curves. We select « bar » and we select « indicator ».
We could have changed the color by clicking on the color well, but let’s say Red is fine.

Screenshot 2013.09.23 09.35.24


Modify the script.

In this case, we replaced:
notifyResult(firstResult,secondResult)
by:
derivHisto = firstResult - secondResult
notifyResult(derivHisto)


Screenshot 2013.09.23 09.35.45



Step 3:

Time to test how smart we are… Just press the « Compile » button.

If the script is right, you should see the result in the preview.

Screenshot 2013.09.23 09.36.08


Screenshot 2013.09.23 09.36.35



Step 4:

There is no step 4… Just press the « Done » button. The « New  Indicator» indicator should now appear in all the menus.