fxDreema

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

    Execute 1 second before candle close.

    Questions & Answers
    2
    5
    548
    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.
    • Johann 0
      Johann 0 last edited by Johann 0

      I'm using ATR values on current candle to set TP, SL and ATR so I need to do it just before candle close to get good ATR values.
      Candle 1 ATR values throws calculations out.
      Is there some way to do the calculations just before candle 0 close?

      Update - Perhaps [DELAY] block ?

      Johannes

      AlphaOmega 1 Reply Last reply Reply Quote 0
      • AlphaOmega
        AlphaOmega @Johann 0 last edited by AlphaOmega

        @johann-0 . you need an indicator on when the candle will close ... then write a variable to save the time .. then use the timer indicator variable as condition for when to insert your order
        Here is an indicator for candle time close
        0_1619540805851_candle-closing-time-remaining-cctr-v3.mq5

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

          Downloaded a few but gives no buffer readings.
          PS. Using MT4

          Johannes

          AlphaOmega 1 Reply Last reply Reply Quote 0
          • AlphaOmega
            AlphaOmega @Johann 0 last edited by AlphaOmega

            @johann-0
            I did not checked it because I do not have mt4 ... You can also use miro1360 tutorial 07 I think.. find objects on chart just to get the time..
            0_1619547590407_candle-closing-time-remaining-cctr-v3.ex4

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

              Thank you @AlphaOmega
              Will try tomorrow. Have been playing with blocks the whole day and am pretty tired now.
              Built the Boss trading system with NNFX TP,SL,TS and ATR Limits.
              The ATR bit i'm working on with this candle close info.

              https://fxdreema.com/shared/Eyhnze5ed

              Johannes

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

              Online Users

              A
              N
              S
              E
              A
              M
              T
              M
              A
              E
              K

              26
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors