This is no entry limit, it is an entry stop. You can easily check if the script does what you want: first print the price at entering the trade, then the opening price in the "TradeIsEntry" event. The first price must be above the entry stop and the second below or in the proximity of the entry stop.