Ejemplo n.º 1
0
 public void testCalcTwice()
 {
     indicator = new TrueRange(values);
     addPoint(new Bar(2, 4, 1, 3), 3);
     values.set(new Bar(2, 4, 1, 3));
     AreEqual(indicator[0], 3);
 }
Ejemplo n.º 2
0
 public void testTrueRange()
 {
     indicator = new TrueRange(values);
     addPoint(new Bar(2, 4, 1, 3), 3);
     addPoint(new Bar(2, 4, 1, 3), 3);
     addPoint(new Bar(2, 2.5, 1, 2), 2);
     addPoint(new Bar(3, 5, 2.5, 4), 3);
 }
Ejemplo n.º 3
0
 public void testTrueRangeWithoutLookingAtTheValues()
 {
     indicator = new TrueRange(values);
     addPoint(new Bar(2, 4, 1, 3));
     addPoint(new Bar(2, 4, 1, 3));
     addPoint(new Bar(2, 2.5, 1, 2));
     addPoint(new Bar(3, 5, 2.5, 4), 3);
     AreEqual(2, indicator[1]);
 }