fxDreema

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

    flag reset not working

    Questions & Answers
    2
    3
    284
    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.
    • P
      PipTheRipper last edited by

      Hi, Im trying to make the following.

      1: When fast MA cosses above slow MA -> set "uptrend-flag" to true.
      2: When "uptrend-flag" = true -> place pending order.
      3: once pending order has been closed-> set "uptrend-flag" to false.

      It seems to work through the first cycle, but once the trend has gone through a down trend and then to an uptrend again, it seems as if the "uptrend-flag" does not get reset to true.

      Can anyone see what is wrong?

      https://fxdreema.com/shared/bTDFAIYJb

      TipsyWisdom 1 Reply Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @PipTheRipper last edited by

        i might try removing the blue block above the false setting flag, and use a pink once trade. that'll get rid of the need for a counter.

        1 Reply Last reply Reply Quote 0
        • P
          PipTheRipper last edited by

          @TipsyWisdom Thank you! That works!

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

          Online Users

          T
          S
          A
          S
          I
          H
          M
          D
          A
          W

          19
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors