Difference Values - Indicator Formula


This is the indicator that calculates the difference between the two curves.


This difference in value can be normal, i.e. calculated by simply finding the difference between two curves in the same point of the chart; its formula is as follows:


DV( t ) = CurveA( t ) - CurveB( t )


Or the difference in value can be a percentage, i.e. calculated by dividing the difference of the 2 values by the value of one of the two curves, subsequently multiplied by 100;


the formula named Percentage on the 1st value is as follows:


DV%( t ) = 100 * CurveA( t ) - CurveB( t ) / CurveA( t )


the formula instead known as Percentage on the 2nd value is as follows:


DV%( t ) = 100 * CurveA( t ) - CurveB( t ) / CurveB( t )


differences.png

Related Articles

Mathematical OperatorsTriple Exponential Moving Average (TEMA) - Indicator FormulaChart TemplatesHow to combine indicatorsBandwidth - Indicator FormulaStandard Indicators