fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. lllll
    3. Best
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by lllll

    • RE: On-Off switch for Condition Block

      Hello. I found something somewhere before.

      0_1593788909993_On Off Strategy.JPG

      So, go on On init (so that when the EA is loaded, it will init and load what you`re about to make): create 3 blocks.

      1: Condition. Left operant: Value (boolean). Create a new constant, rename it how you want, but the type (whereas default is Double), has to be "bool". Bool means that can have values True or False.
      Return to your Condition block, right click on the left operand and click on your newly created boolean Constant.
      The right operand is again boolean and its value has to be set to True.

      Link your block to another block (Turn on) and write the block number you want to turn on, if your condition is set to True. (in my case is 750). And create a Turn off block, linked in the yellow dot of the Boolean Condition, so. if It is not true, means that the function "Otherwise" will be activated, thus the yellow dot will activate the next block (Turn off).

      It may seem complicated... and is not easy to grasp the first times... but go with trial and error and you will make it work.

      P.s. The only the first 3 blocks should go on On Init, the rest I would put it on On tick.

      posted in Questions & Answers
      L
      lllll
    • 1 / 1