fxDreema

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

    Ignore Sunday/alter EA variable look back

    Questions & Answers
    2
    3
    521
    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.
    • X
      Xander last edited by

      Hi Guys. I am trying to program an EA referencing data in the previous two days. It is working fine except for Mondays and Tuesdays as my broker has data for Sunday and the EA identifies this as a previous day. I would like to no if it is possible to tell the EA to ignore sunday data (not the trade option, but ignore the data for its conditions and go back one day further). The other solution I cam up with is to just copy the conditions and change them to go back one day further on Monday and Tuesday. But the weekday filter does not have this option only allows trade or no trade

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

        What are the conditions? But in general, if let's say you are using MA, that MA is plotted over the latest candles and MA doesn't care about the days at all. I think that Sunday data appears in the first minutes of Monday, I don't really know why.

        1 Reply Last reply Reply Quote 0
        • X
          Xander last edited by

          There are a few conditions, but the basic idea is the EA references the 4h candles in the previous trading day's data which works fine when there are 6 candles as in a normal day, but the 1st 4h candle of the week is the only candle for Sunday so there are not enough candles for the EA to work which causes problems. If I can somehow to get it to ignore "Sunday" and refer tot eh last full trading day (being Friday) it should work. Not sure how to do this?

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

          Online Users

          W
          M
          M
          N
          G
          H
          S
          E

          28
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors