Here is part of the code:
protected void checkForLowHighSwing(double SetL1Point){
double L1Point = 9999.00;
int foundAt = 0;
int p;
if(all[all.Count-1].Type == "low"){
p = all[all.Count-1].Bar;
} else {
p = all[all.Count-2].Bar;
}
if((Bars.GetLow(Bars.Count-1) - SetL1Point) <= 0.00){
Print("SetL1Point: "+SetL1Point);
Print("Current Bar Low: "+Bars.GetLow(Bars.Count-1));
Print("Math: "+Bars.GetLow(Bars.Count-1)+" - "+SetL1Point+" = "+(Bars.GetLow(Bars.Count-1) - SetL1Point));
Print("Lower - Break");
breakLHswing = true;
} else {
Print("SetL1Point: "+SetL1Point);
Print("Current Bar Low: "+Bars.GetLow(Bars.Count-1));
Print("Math: "+Bars.GetLow(Bars.Count-1)+" - "+SetL1Point+" = "+(Bars.GetLow(Bars.Count-1) - SetL1Point));
Print("Not Lower - No Break");
}
}
SetL1Point: 1876.25
Current Bar Low: 1876
Math: 1876 - 1876.25 = -0.25
Not Lower - No Break
the print out is saying that -0.25 is not <= 0................
Any Help is much appreciated

Comment