Hello
I had a go at trying to modify one of Tomasz Janeczko's sample multi
time frame scaning formulas. All i get showing up is MTRSI = {empty}.
Any ideas as to why this is would be greatly appreciated?
Count = 0;
result = 0;
final = 0;
for( i = 5; i <= 360; i = i + 5 )
{
TimeFrameSet( i * in1Minute );
m = RSI();
TimeFrameRestore();
m = TimeFrameExpand( m, i * in1Minute );
result = result + IIf( m > 70, 1, IIf( m < 30, -1, 0 ) );
Count++;
}
final = result / Count;
plot( final, "MTRSI", colorBlue, styleThick );
plot( EMA(final, 7), "EMA(MTRSI,7)", colorLightGrey);