if(High[0] >= hPiv - Math.Max(2*TickSize,(hPiv-lPiv)*0.1) && Close[0] > lPiv + 1/2 * hPiv-lPiv && pStop.StopPrice < (lPiv + 1/2 * hPiv-lPiv))
And i couldn't understand why it was equating to false when it should be true so I debugged with VS and can see that this part of the if statement is equating to false :-
pStop.StopPrice < (lPiv + 1/2 * hPiv-lPiv)
where
pStop.StopPrice = 140.46
lPiv = 140.49
hPiv = 140.96
This makes no sense can anyone tell em why this is?
I have attached a screenshot of VS.
Comment