In OnBarUpdate() I have the following vars:
int lowestBarsAgo = LowestBar(Low, Bars.BarsSinceNewTradingDay)
double lowestPrice = Low[lowestBarsAgo]
then in my trade logic
if (Close[0] >= Open[0] && Low[0] <= lowestPrice)
<enter trade logc>
so here's the issue, when I have the above Low[0] <= lowestPrice it works as expected but when I change it to Low[0] < lowestPrice it doesn't run as expected. Any thoughts or suggestions as to why less than or equal works but not less than only?
Comment