fxDreema

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

    Count "n" bars, then pass

    Questions & Answers
    3
    14
    3723
    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.
    • D
      dweleszczuk last edited by

      hello
      could you please help me how make something like "if trade is running count "n" bars and then pass"
      thanks for any help

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

        Depending on the situation:

        • Once per bar - If trade... - Count n...
          or
        • Once per bar - Count n... - If trade...
        1 Reply Last reply Reply Quote 0
        • P
          Processman last edited by

          Excuse me my stupid question and my bad english but how i know when "once per bar" pass through ... open , close or middle candle period ?
          It's hard to think(to me) same time candle , timeperiod , tick and EA program that run loop many times per second.
          I mean at i like eliminate "ghost" signal comparing last and next candle(some value) use to "delay" block with 1 or more candle properties.
          Huh .. how to say .. i mean at i like re-check some values between last and next candle(s) to go ahead ... maybe there is easy way do that
          but i dont notice yet(novice) ... Anyway , fxreema is genius and cheap tool making ea , also it makes clean code , no compling erros , cheers.

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

            Try this and you will see when Once per bar passes. It's when a new candle is created, because the block is executed on every tick (it's under "on Tick" event) and it checks if the current candle is new for the block.

            Also, right-click on it and hit "Information". Well, this seems to not working on the shared project, but you can do it in your profile.

            1 Reply Last reply Reply Quote 0
            • D
              dweleszczuk last edited by

              Is someone know why it doesn't work http://fxdreema.com/shared/7clrYFewc right side with counter
              Many thanks for any help

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

                To say why something does not work we must know how it should work. In the case I don't know what is the idea. But nevermind, to check if and when any block passes, use "Draw arrow" - this is the simplest way that I often use.

                1 Reply Last reply Reply Quote 0
                • D
                  dweleszczuk last edited by

                  I don't know why when trade is running and block 20 is pass and block 19 is pass after 34 bars trade is not closing and changing for the opposite trade

                  1 Reply Last reply Reply Quote 0
                  • D
                    dweleszczuk last edited by

                    I used arrow and problem is with no cover signals from blocks 20 and 19 , do you know how I can fix this problem
                    thanks

                    ......
                    no cover.PNG

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

                      What block does not work as expected?

                      1 Reply Last reply Reply Quote 0
                      • D
                        dweleszczuk last edited by

                        block 19, it give me only one tick per all period witch I need (in this time it is m15) so I need something what after "n" bars will be active all the time

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

                          I guess this is what you want to do (see propertied of 9 and 11):
                          http://fxdreema.com/shared/KsGEmGsad

                          1 Reply Last reply Reply Quote 0
                          • D
                            dweleszczuk last edited by

                            other things I cannot find answer what for is option "change status to" and what parameters I can write there

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

                              This changes this text on the chart that normally says "Working".

                              1 Reply Last reply Reply Quote 0
                              • D
                                dweleszczuk last edited by

                                thanks for all it working perfect but at this moment I don't know how but I will find out 😄

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

                                Online Users

                                E
                                H
                                R

                                17
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors