something like this?

@jstap not really the same, but if the solution works for you, its great!
Hey,
does anyone know how to make the "write to file block" output location into a subfolder within the files location ?
@kehbooo
not really open co = close c1 if there is not a gap between but normally for your thing
c2_close below bollinger & c0_open > bollinger = buy now
@jstap and i only want to get the information the ea shows, and export it, so i need either a custom indicator that does the job or a script.
@biztet the ea doesnt trade at all, its just showing information, so the script is needed to export the information the ea produces.
but this only turns off the ea not the script, since with the end of the script it is terminated
which shifts you are using?
did you ever try with open prices instead of close ones?
@ekanters
you need to understand that mq4 and mq5 handle orders way different so its more a mt4 vs mt5 thing.
@duepips
you are sure about the formula? to me looks not correct!
for a margin call you first need to find the net position (+buy volume-sell volume) if you have multiple open positions on multiple symbols this is task itself! if your broker matches buy and sell without a topping you are lucky if not you need to take the topping into account, next you would need to determine how much margin is left and how many pips your net exposure can handle, so a margin call only can come on the downside, not once you are in profit!
@ekanters
if you need to make it work in mt5 i suppose to use custom code!
@l-andorrà
to clarify, the ea which runs on the chart isnt mine, so i dont have the code or can change any bit of it.
the task is:
an ea already runs on a chart and cant be changed
add a script that is just added once and will run oo, which means it pauses right before its terminated and restarts on a certain contain....
@l-andorrà
because an ea runs already on the chart and i cant run 2 on the same chart and i need data from the chart, which the script should collect.
So i need to add a script and pause/sleep or i need to make a custom indicator, since i didnt work much with indicators yet i prefer the script 
@simba296
so you wanna know:
if you already have reached the total allowed number of trades or if you allowed to open any trade (if OrdersTotal(); <max trades) means you are below max trades and can open another
if you are allowed to open trades on the current symbol basically the same but just with the current symbol check.
can look like this:

hey guys,
has anyone already paused a script with dreema, so the script just needs to be added once to the chart, and works lets say once a bar and then sleeps till a new bar comes and runs again ?
any help on this is appreciated, thanks!
@mr-lenny the challenge already done, the trophies handed over already? or still open ?
@tipsywisdom
always let the winners run and cut the others 
@tipsywisdom
or you try something like this

@watcharapon
you need to store the closing price in order to check if the price came back to it
today is a great day on US30, already 6 tp and no sl 