How to create a close all profits button
-
hey there i need help with creating a close all profits block thats clickable on the charts to secure all opened profitable, as in bulk operation for profits.
-
Can you please share the link to your current project?
-
@l-andorrà Sorry for late reply , was out for work
This is basically the project that I'm working on
It's a Fundamental Expert Advisor that trades fundamental news events by executing pending orders when attached on the charts:
https://fxdreema.com/shared/WzsAXisnb
What I want is to make is a close all profits button , and probably as an addition a delete all position button
Your help would be much appreciated. -
@Julio101 Espero que esto te ayude...
3327a86e-aca8-4064-82ef-cc33d8a08f10-Botonera editable (Lote - Stop Loss - Take Profit).mq4
-
-

place this on init tab
place this on chart tabdo it like this
-
This project will step a line on MT5 backtest so you can move SL or TP, the principle is the same on MT4, and it eliminates the mouse clicked on object so you can use backtest and live: https://fxdreema.com/shared/wqmrHi9wc
-
@Byens project link?
-
@jstap Interesting. Are those condition blocks on top of 'on chart' block trees supposed to be triggered every single tick as per 'on tock' tab? If so, why using them there?
-
I do not know if on chart happens every tick, or just when something happens, but for live it uses fewer resources. I use those blocks there just so I can create on tick, then just copy them onto on chart, the mouse clicked logic is already in meta button logic.
-
@jstap Interesting. Thank you.