fxDreema

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

    ADX Crosses on last 5 candles

    Questions & Answers
    2
    4
    1110
    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.
    • V
      VendettaFX last edited by

      Can someone help me. I would like a buy order to be triggered when the ADX Di+ crosses above the 27 level if the ADX itself is above 27, and if the Di+ has cross the Di- in the last 5 candles.

      https://fxdreema.com/shared/nKdlt5csc

      i also tried by changing cross width, doesn't work either

      Thanks

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

        try putting once per bar just before buy/sell blocks, so the conditions can be checked on every tick. it's possible that the cross condition can be skipped if once per bar is connected to it

        once per bar triggers at the start of a bar, and x> checks if on previous bar value was under and on current is above.
        at the start of the bar it can be bellow. then at the end of the bar it can be above. but we only check once at the start.

        so on the first trigger it was under on both candle A and candle B. and if during the bar your value crossed above
        on the next bar it will be above on candle B and candle C meaning the block will never trigger.

        1 Reply Last reply Reply Quote 0
        • V
          VendettaFX last edited by

          Thank you for answering. You are right and this is very logic 😉
          But there is still something wrong with it. on visual backtest i can see that sometimes, the entries are right on but it still miss some obvious on too. Can you see something else that could be wrong?
          https://fxdreema.com/shared/MaiPFRGed

          1 Reply Last reply Reply Quote 0
          • V
            VendettaFX last edited by

            My bad, everything is fine.
            thx again

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

            Online Users

            E
            Y
            S
            F
            E
            O
            S
            W
            A
            J
            M

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors