fxDreema

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

    turn off/on block when certain number of trades are closed

    Questions & Answers
    3
    4
    242
    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.
    • N
      nasserminaei last edited by

      I have a news trading ea which opens multiple trades on different levels, SL/TP are dollar value levels. I want to turn off the ea when the first circle of trades are closed (no matter with loss or profit) after the data release and turn it on back to normal after X minutes. I have tried to use 'toggle blocks' to do what I want but it doesn't work. the shared project below is how I have done that. I can't figure out what is wrong with that.
      i have copied relevant blocks from 'on tick' and 'on trade' tabs. blocks 6,7 in 'toggle blocks' are 'buy now' and 'sell now' blocks.
      https://fxdreema.com/shared/EdUknGCjb

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

        Where is block 6, 7? Blocks under ontrade tab trade closed block will happen once, to use time to turn blocks back on you will need to do this ontick

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        N 1 Reply Last reply Reply Quote 0
        • N
          nasserminaei @jstap last edited by

          @jstap blocks 6,7 are in 'buy now' 'sell now' blocks on tick tab. I have moved them to 'on tick ' tab. the problem is that it does not restart after 'once per minutes' block. (toggle--->once per minutes----> toggle). this is how I have tried to turn blocks 6,7 off and on for a specific amount of time neither in 'on trade' or 'on tick' tabs

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

            Add the project that is not doing what you want, then say what blocks are not doing things right

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

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

            Online Users

            A
            Y
            H
            B
            K

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors