It's if position on MT5

Pink blocks, for each trade - pips away - sell - open new pending
This should do it, you will have to leave the EA you add it to running on the chart to record the values: https://fxdreema.com/shared/x7P55s9ed
Yes, for each position starts a loop to get all relevent information, if position checks if a trade is running.
Do you mean the highesd and lowest price your account equity has reached?
Pink blocks should be in a separate tree, in another tree put if trade - breakeven, put a no trade above your buy block to prevent multiple pointless trades
Scripts only work if activated, you probably want to create an EA
Have you checked the time?
Looks like it, but as sktsec has said check the correct time is returning, backtest will always be server time
Put this in a comment as text code input and check the returned time is the same as your computer and the FX time:
TimeToString(TimeLocal(),TIME_DATE|TIME_MINUTES)
@stonegoldtz This is not the topic for that, create a question and place it it the questions forum.
What is or isn't happening with this EA?
If you know your broker times, time filter to stop opening trades at wrong time - market properties high/low in the required time
Add the shared link not the mq file
https://fxdreema.com/shared/JgpnXLmLd This is for buys, check the tab it's on
on trade tab - trade closed - pink for each closed trade - buy/sell block with loop in the LOT section for last trade LOT adjusted *2
You can try a condition to draw a new block, probably need to use orange blocks to draw though
project page - project tab - create a shared link - open in web page - copy address bar - past here
Add a shared link to see what you have done, in group select all manually opened and EA