Over the Christmas holiday period some of my EAs got into trades they shouldn't have because my broker closed the platform for bank holidays mid-week and my EAs are not coded for this.
On one, I look for daily inside candles. I ignore Sunday as most brokers are only open for a few hours and so the chances of an inside candle are increased. But it doesn't look to see if Wednesday was a holiday.
I would like to find a test (some code) that will tell me if the day before was a holiday!.
I can't think how to do this so any help will be much appreciated.
On one, I look for daily inside candles. I ignore Sunday as most brokers are only open for a few hours and so the chances of an inside candle are increased. But it doesn't look to see if Wednesday was a holiday.
I would like to find a test (some code) that will tell me if the day before was a holiday!.
I can't think how to do this so any help will be much appreciated.