GetSplitNumerator

GetSplitNumerator ();

Description

Returns a split numerator for the current symbol.

Example

declare lower;
input initialPosition = 100;
def position = CompoundValue(1, if !IsNaN(GetSplitDenominator())
then position[1] * GetSplitNumerator() / GetSplitDenominator()
else position[1], initialPosition);
plot CurrentPosition = position;

This example shows trader position changes taking into account the splits presented on the chart.