fxDreema

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

    How to give if signal stays more than few seconds

    Questions & Answers
    3
    3
    336
    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.
    • J
      jithin last edited by

      https://fxdreema.com/shared/U5IC7A0C
      The indicator iam using gives buy/sell arrows which are repainted many times before confirming.
      Here i want to give a condition before buy & sell - if indicator is visible continuoesly more than 3 seconds perform buy or sell
      Here i used delay (3) which doesnot work. once indicator visible(2) passes it goes to delay(3) wait for 3sec goes to indicator visible(4) and take trade then if indicator starts repaiting canot control the trades.
      So i need to give a simple condition since my indicator blinks buy,sell,buy,sell...at the time of changeover, **IF INDICATOR VISIBLE MORE THAN 3SECONDS I WANT TO PERFORM ACTION **
      Plz help me out iam aunable to find solutuin for this

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @jithin last edited by

        @jithin You can use the 'on timer' tab this way:

        https://fxdreema.com/shared/VczmUsYFb

        However, depending on the action required you will need a second variable to move the action bact to the 'on tick' tab.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

          If you stop the timer, I think it stops forever... I mean until you start it from somewhere else. But yes, the Timer is the most accurate in this case, if we really care about the time. Because we can look at the ticks, but they can come very fast or too slow.

          But there is another way to measure the time. If you have datetime variable and you save some time in it, which actually looks like this: https://www.epochconverter.com/, then in the future you can calculate what is the difference between the current time and that old saved time. The difference will be in seconds. I think it was seconds in MQL, because sometimes it could be in milliseconds (x1000).

          In MQL you can use the TimeCurrent() or TimeLocal() function if it's easier for calculations.

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

          Online Users

          X
          A

          6
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors