Skip to main content

DIV

Type: div • Category: indicators

Description

Vector Arithmetic Div

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringprices datano
real0stringNumerator arrayno
real1stringDenominator arrayno

Help

DIV

Vector Arithmetic Div

Description

The DIV worker is an indicator used in financial analysis to perform vector arithmetic division. It calculates the division of two arrays, real0 (numerator) and real1 (denominator), to produce a resulting array.

What does this worker do?

The DIV worker takes in three parameters:

  • dataExp: prices data
  • real0: Numerator array
  • real1: Denominator array

It then performs element-wise division of real0 by real1, resulting in a new array where each element is the quotient of the corresponding elements in real0 and real1.

How to interpret the results

The resulting array from the DIV worker represents the ratio of the numerator and denominator arrays. This can be useful in various financial analysis applications, such as:

  • Calculating price-to-earnings ratios
  • Determining dividend yields
  • Analyzing relative performance between different assets

Usage

To use the DIV worker, simply provide the required parameters:

  • dataExp: The prices data
  • real0: The numerator array
  • real1: The denominator array

Refer to the following GIFs for a step-by-step guide on how to use the DIV worker:

Full GIF

[![Full GIF](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)

Short GIF

[![Short GIF](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)

Additional Knowledge

The DIV worker is a fundamental component in technical analysis, allowing users to create custom indicators and oscillators. By combining the DIV worker with other indicators and analysis tools, traders and analysts can gain valuable insights into market trends and make more informed investment decisions.

Note that when using the DIV worker, it is essential to ensure that the denominator array (real1) does not contain zero values, as division by zero is undefined. Additionally, users should be cautious when interpreting the results, as the DIV worker only performs the arithmetic operation and does not provide any additional context or validation.