Hello, How can I, in an indicator, detect when the current bar closes and breaks the current daily high/low? I need to check when a bar closes, if it breaks the daily high/low so far, from the first daily bar to the last bar (not counting the current
Hello, I have global variables in an include file, defined like this include.mqh double variable1 = 5 ; then I use this include for different indicators, eas and scripts. script 1 #include <include.mqh> indicator 1 #include <include.mqh>
Hi, I have MT5 open with 5 or 6 charts. I use an expert advisor and various custom indicators . The charts move automatically, each tick is refreshed. But there comes a time, some chart stops, the ticks do not update, as if the market were
Hi, I use the loop for all open charts a lot of times on my code. So I'm repeating the code a lot. Is there any way to create a generic function to iterate the charts, and do something variable? Something like this void sample() {
Hi, the first time the indicator is executed when opening MT5, it fails to get iBarShift function, the second or third time the event OnCalculate is executed, it works OK int OnCalculate ( const int rates_total
Hi, Is it possible to convert any date on a specific zone to UTC? For example if I have 10/10/2021 in the 'Europe/London' zone, how could change it to UTC (taking into account the daylight saving)? In javascript there is momentjs library, but I
Hi I have programmed an indicator to mark the high and low of the previous day, the weekly and the ADR. The indicator works, but suddenly it initializes and starts making the highs from the current candlestick. I am not able to understand why it does
Hi, I am trying to retrieve the calendar from the investing website to show on MT5. void test() { string cookie= NULL ,headers; char post[],result[]; int res; int timeout= 5000 ; string
Hi, I'm developing this indicator, an ADR for MT5. The algorithm is, get the sum of daily range high and low from last N days (14 in my sample), begining from yesterday, and divide it into N periods (14). Getting the average. I don't know which is
Hi, I am developing an indicator and I don't understand the OnCalculate event at all. From what I can see, this indicator runs every time there is a new tick on the chart. So, I calculate for all candles the indicator (I limit it to 1000 candles) for
HI, could you help me with this? I need for every candle in OnCalculate event, to know the high and low of yesterday, relative to this candle. If I use this double highestY = iHigh ( Symbol ()
Hi, I need futures exchange data to use a volume profile indicator on MT5. I've only found a broker with futures data, but this broker gives the DAX data delayed on the demo account . Do you know if exists another broker that provides futures data on
Hi, I need to develop an expert on MT5 that each 5 minute candle collects the volume of various currencies and if there is an increase in volume, launch an alert. I have no idea how to start it, any help? A base template with a sample would be a