Actually, the IF condition is working correctly. It's the enterShort that is off. The rest above is correct...when the close is below the Dot11High, the market enters on close whether or not the markets gets to Dot11High. When it gets there and the close is above the Dot11High it places the order as a stop entry the next day. ???????