fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Using a button to run a task

    Questions & Answers
    3
    4
    700
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sdoppke last edited by

      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 orders

      The 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

      1 Reply Last reply Reply Quote 0
      • U
        uchiha last edited by

        I hope the below picture helps you understand better how to go about it

        ......
        button.JPG

        1 Reply Last reply Reply Quote 0
        • S
          sdoppke last edited by

          __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

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            F
            C

            5
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors