Using a button to run a task
-
Hi there I have 4 buttons that I am trying to use to:
close all open orders
close all open orders in profit
close all open orders in loss
delete all pending ordersThe picture below show my setup for the last (delete all pending orders). The issue I am having is that the button seems to execute right on loading (not by pressing) and just keeps running over and over.
My goal would be to have the button ready on stand by and when presses the appropriate action would happen (1 time) then go back to ready state.
Can anyone see my error in setup?
SD
......
FxD_3.png -
I hope the below picture helps you understand better how to go about it
......
button.JPG -
__I hope the below picture helps you understand better how to go about it[/quote:2fhm71bd]
Wow that is so not Howe I thought to do it. I really appreciate you taking the time to explain. I will give it a go.
SD
-
Try this: https://fxdreema.com/shared/Rb2GB8dNc
It seems that MQL4 buttons are not exactly buttons, because they are either pressed or depressed, at least visually.