Detect Friday of The First Week of The Month – To Detect NFP Day – EA MetaTrader 4

Detect Friday of The First Week of The Month - To Detect NFP Day - expert for MetaTrader 4
//+——————————————————————+ //|                                                  FirstFriday.mq4 | //|                                  Copyright 2023, MetaQuotes Ltd. | //|                                             | //+——————————————————————+ #property copyright “Copyright 2023, MetaQuotes Ltd.” #property link      “” #property version   “1.00” #property strict datetime lastTime = 0; // Variable to store the time of the last detected candle //+——————————————————————+ //| Expert initialization function                                   | //+——————————————————————+ int OnInit()       lastTime = iTime(Symbol(),PERIOD_D1,0);    return(INIT_SUCCEEDED); … Read more

High, Low and Close of the previous day, week or month – indicator MetaTrader 4

High, Low and Close of the previous day, week or month - indicator for MetaTrader 4
Optimized versions available for free:Metatrader 4: Metatrader 5: Follow on instagram: The indicator shows the High, Close and Low of the previous day, week or month. These levels are very commonly used as support and resistance among traders, so the indicator will draw them and leave a gap between periods to make it easy to … Read more

Days of the week – indicator MetaTrader 5

Days of the week
The indicator shows the current day of the week as a histogram. The histogram rule matches the numbering of days in the MqlDateTime structure: struct MqlDateTime   {    int year;           // year    int mon;            // month    int day;            // day    int hour;           // hour    int min;            // minutes    int sec;            // seconds    int … Read more

Days of the week color – indicator MetaTrader 5

Days of the week color - indicator for MetaTrader 5
A modification of Days of the week – now every day of the week is marked with a separate color: The DRAW_COLOR_HISTOGRAM style requires two buffers (a buffer of values HistogramBuffer and a color buffer HistogramColors): //+——————————————————————+ //|                                       Days of the week color.mq5 | //|                              Copyright © 2018, Vladimir Karputov | //|                                           | //+——————————————————————+ #property copyright … Read more