Hi,
When we talked about the closing price, I thought the closing price of a closed candle not of the current one...
In your case - in any case if the price increases or falls more than by X points and then returns back by X points, there will be a signal to open an order. It does not make sense to mention here the open price at all... But not a problem, I will fix it.
" to provide some assistance?" - Tell me please, what do you mean? Thanks