Questions on CrossAbove() using the secondary time period.
[1] CrossAbove(BarsArray[1],EMA(BarsArray[1],14),5);
Does this test the following: Did any part of a secondary-period candle touch below but close above the secondary-period's EMA over the last 5 candles. That is if candle one closed above but had a low below and candle two had a close above then is that deemed to be a cross above when using the BarsArray as an input? I'm getting results I don't understand using BarsArray instead of Close. I presume with Close as the input if candle one closes below and candle two closes above then this is a cross above when using Close.
[2] CrossAbove(BarsArray[1],EMA(BarsArray[1],10)[0],5);
Is the '[0]' incorrect because this has CrossAbove taking a single element rather than array in its second variable?
[3] CrossAbove(Close[1],EMA(BarsArray[1],10),5);
If I want to only check that a cross above has occurred based on adjacent candle closes of the secondary period, is the above correct? Is Close[1] the close of the second candle of the primary period or an array of closes for the secondary period?
[4] Is it possible to use CrossAbove comparing arrayOne[n element] against ArrayTwo[n-1 element] over a given number of preceding candles.
Many thanks,
darmbk.
Comment