You can get the price from market properties, you may have to use candle properties and same into a variable, as crossing 00:00 changes days and may cause problems
That 'check profit' block should be connected below a 'For each position block. Otherwise it will not work correctly. Additionally, profit is checked once per bar. Shouldn't it be checked all the time? It should be disconnected from that position and use a separate block tree for that.
No EA will ever close any trade at the close price of a candle. That is not technically possible. The closest that can be done id doing it at the open price of the next candle. Would that work for you?