so here is my solution,

set once a day block before buy and sell
so here is my solution,

set once a day block before buy and sell
save it in variable , if its unrealized profit , there is blue block check unrealized profit
I tried all possibles variabel under if testing. it works with mt5, can not pass mt4. Maybe will try to make new block from studio, but i cant find tutorial here
this is input, i tried to set 10 , not working too. Error 28 order opened
no i set those from input
use pink block for each closed trade

thats right, place those timefilter above all action buy/sell, close and see what time error. you should filter those error with this block
after pass blockm plece comment block and use those variable
or you do like this https://fxdreema.com/shared/JGfo98tOb
yes limit is 60 but i set lower and it is not working too.
On my terminal? It works without error.. On mql5 vallidation error occurs.
Yes I have set using normal order instead of pending order. And limiting with blue block check order count. But it still not working.
I'm stuck at automatic validation, sometimes works, sometimes doesnt. Does anyone have experience with this?
https://www.mql5.com/en/articles/2555 this article doesnt any help for me.

This error happening for my ex4 file, mt4 expert advisor.
Any advice ?
@Mani13 Hi, can you show how you solve this? Thank you

place this on init tab

place this on chart tab
do it like this
Here is updated solution, i dont know some metatrader can not work with bucket
@DragonZueloTrends nevermind i found it here and i share this , maybe someone have same problem like me,
@OntradingX it works, but how to calculate total lots if we have several open order?, i cant get it.
Initial Volume or Current Volume ? What to do with this? Any one have solution?