I am wondering if when using an indicator within another indicator, if I need to put the period of the imported indicator if it is already correct in the original indicator. To clarify:
Indicator A is the main indicator - it is set at a period of say 20
IndicatorB to be imported is set at period 14
IndicatorC to be imported is set at period 6
Within indicator A, can I just use:
if (IndicatorB[0] > IndicatorC[0])
{result}
And IndicatorB will be set to 14 periods and IndicatorC to 6 periods, or do they default to the 20 periods for IndicatorA, so I need to code as follows:
if (IndicatorB(14)[0] > IndicatorC(6)[0])
{result}
Thank you.
Comment