Decimal Transformation Indicator

The Decimal Transformation Indicator is a versatile. It allows you to compute values using other indicators and constants. The indicator has 3 inputs:

  1. Decimal Tranformation: Plus, Minus, Multiply, Divide, Max, Min, Absolute, Log (Natural), Square Root
  2. Base Indicator: Any numerical indicator. For example Candle Range
  3. Coefficient Indicator: ANy numerical indicator. For example, ATR (14)

Lets take an example to understand this better. Lets us say you want to measure the Candle Range against the average true range to judge if the candle exceeds the ATR and by how much. We can achieve this with the Decimal Transformation Indicator by using Candle Range as the base indicator, Average True Range (14) (or any other ATR length) as the coefficient indicator and Divde as the Decimal Transformation. This would give us:

Range by ATR = Candle Range / ATR (14)

as the result of the indicator for each candle.

Note: For use in charts - The decimal Transformation Indicator's result might be meant for the main chart or a sub plot. You can control this via the Overlay setting - when false, the indicator will be plotted in its own sub plot.

Supported Operations:

A = Base Indicator
B = Coefficient Indicator

  1. Plus: Add the base indicator value with the coefficient indicator's value (A + B)
  2. Minus: Subtract the coefficient indicator's value from the base indicator value (A - B)
  3. Multiple: Multiply the base indicator's value with the coefficient indicator's value (A * B)
  4. Divide: Divide the base indicator's value with the coefficient indicator's value (A / B)
  5. Max: Return the larger (maximum) of the base indicator's value and the coefficient indicator's value ( Max( A, B ) )
  6. Min: Return the smaller (minimum) of the base indicator's value and the coefficient indicator's value ( Min( A, B ) )
  7. Abs: The absolute value of the base indicator's value. The coefficient indicator is not used. ( ABS( A ) )
  8. Log: Return the Natural Logarithm of the base indicator's value. The coefficient indicator is not used. ( Ln( A ) )
  9. Sqr: Return the Square Root of the base indicator's value. The coefficient indicator is not used. ( Sqr( A ) )

Usage

Screenshot%202025-08-30%20133515

The screenshot above shows the Decimal Transformation Indicator's property dialog.

Screenshot%202025-08-30%20133626

The screenshot above shows the drop down of supported Decimal Transformations.

Notes

There is no limit on the depth of indcators that can be used with a Decimal Transformation Indicator. For example, let us say you want to compute the width of the Money Zone as a percentage using the following formula:

Money Zone Width % = ( (Money Zone High - Money Zone Low) / Money Zone POC) * 100

This can be broken down as multiple decimal transform indicators:

    1. Minus: A = Money Zone High - Money Zone Low
      Screenshot%202025-08-30%20134338
    1. Divide: B = A / MZ-POC
      Screenshot%202025-08-30%20134416
    1. Multiple: C = B * 100
      Screenshot%202025-08-30%20134447

where we use the Constant Indicator for the number 100.
Screenshot%202025-08-30%20134629