fxDreema

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

    How can I identify next Monday?

    Questions & Answers
    2
    3
    514
    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.
    • isp00rt
      isp00rt last edited by

      I am building an EA designed to close all open trades when any of the following conditions are met:

      1. At the end of Friday's session.
      2. When two indicators are under certain conditions.

      Whatever happens first must close all open trades and no new orders must be open until next week. This is what I have so far:

      https://fxdreema.com/shared/37ik5l7ke

      A problem rises when the indicators conditions are activated before the end of Friday's session. How can I skip all remaining time this week until next Monday? I'm not used to using time filter blocks and I'm stuck now.

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        add variable which can working as "switch", reset this switch once per monday (set value to 1)
        when indicators conditions are active, set switch value to 0
        add this "switch" as condition for for Fridays session

        Between trading and gambling is a very small gap, be careful.

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

          Interesting. I'll try it.
          Thank you.

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

          Online Users

          A
          L
          O
          S
          E
          J
          D
          M
          X
          K
          E
          D

          26
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors