Ignore Sunday/alter EA variable look back
-
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
-
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.
-
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?