here is part of the code where the issue is (simplified )
// variable private bool entry = false // // if (Position.MarketPosition == MarketPosition.Long) { entry = false; } else { entry = true; } // when the current price crosses above last hours high if (Close[0]>= High[1] && entry == false ) { EnterLong(100) }
Comment