In a multi-timeframe strategy,the way one references the other timeframe bars is like Lows[0][0] or Highs[0][0]. But is there anyway to color the bars of lowertimeframe based on highertimeframe conditions.
Like if I do this in ninjascript it is not coloring bars in lower timeframe
===============
if (BarsInProgress == 1 ) // highertimeframe
{
if (condition1_in_higher_timeframe)
{
//color Bars in lower timeframe
BarColor = Color.Green;
}
}
=============
Should one do as below to reference lower timeframe barcolor while processing higher timeframe conditions.
BarColors = Color.Green;
or
BarColors[0] = Color.Green;
--
Shooter
Comment