If I use the MIN function to confirm that the MIN value of an indicator on a 2Min basis is less then a certain value for x periods, the software uses the 10 minute periods rather then the 2 minute periods.
Here is the code:
// Conservative go long condition. 10Min RSI 0.50 or above, 2Min R+R swing low
if (BarsInProgress == 0)
{
if (DmRSI(Period)[0] > 0.48
&& DmREIplusRSI(BarsArray[1], 8)[0] > DmREIplusRSI(BarsArray[1], 8)[1]
&& DmREIplusRSI(BarsArray[1], 8)[1] < DmREIplusRSI(BarsArray[1], 8)[2]
&& MIN(DmREIplusRSI(BarsArray[1], 8),3)[0] < 35.0)
{
DrawArrowUp("GoLong1" + CurrentBar, true, 1, Low[0] + -5 * TickSize, Color.Gold);
}
}
See the MIN(DmREIplusRSI(BarsArray[1], 8),3)[0], the calculation is done using the 10 minute bars rather then the 2 minute bars.
What do I need to code to make it use the 2 minute bars here? This condition has to include both 10 minute and 2 minute statements.
Thanks

Comment