if (FirstTickOfBar)
{
// look for nr7 indicator info.
double LastBarRange=Range()[1];
double MininLast7Bars=MIN(Range(), 7)[1];
if(MininLast7Bars==LastBarRange) {
NR7.Set(1,1);
}
Print(Time.ToString() + "Checking every bar" + "LastBarRange" + LastBarRange + " MininLast7Bars : " + MininLast7Bars);
}
i get the range =0 many times. This is strange as i have the chart showing a good movement on ES at the same time. in fact the last bar range shows >0 but the MininLast7bars shows 0.
01/07/2010 3:25:00 PMChecking every barLastBarRange1 MininLast7Bars : 0.75
01/07/2010 3:26:00 PMChecking every barLastBarRange0.75 MininLast7Bars : 0
01/07/2010 3:27:00 PMChecking every barLastBarRange1 MininLast7Bars : 0
01/07/2010 3:28:00 PMChecking every barLastBarRange2 MininLast7Bars : 0
01/07/2010 3:29:00 PMChecking every barLastBarRange1.5 MininLast7Bars : 0
01/07/2010 3:30:00 PMChecking every barLastBarRange0.75 MininLast7Bars : 0
01/07/2010 3:31:00 PMChecking every barLastBarRange1 MininLast7Bars : 0
01/07/2010 3:32:00 PMChecking every barLastBarRange1.5 MininLast7Bars : 0
01/07/2010 3:33:00 PMChecking every barLastBarRange1 MininLast7Bars : 0
Comment