Forum

Issue with Indicator on MetaTrader - Objects with Future Dates

Hello everyone, I am facing an issue on MetaTrader where my indicator is not counting objects that have dates later than the current server time. Below is the code for reference. Can someone help me resolve this? Thanks in advance for the help

graphic screen freezing

Sometimes my metatrader 5 screen freezes. When I make a new connection it goes back to normal. Is there any script to monitor and perform the reconnection when it gets frozen

Change minimum graphic width

I'm trying to reduce the minimum width of the chart so I can have more charts open vertically. In the attached photo there are 12 but I need to put 16 graphics

Line do not plot on graph (mql5)

I've been racking my brain for a few days, but so far I haven't been able to plot the line on the chart - Expert Advisor. I will be very grateful if some kind soul can help me fix this code. Thank you in advance for all your help. #include <Trade/Trade.mqh> CTrade trade; double SMA50Array1M[]; void

Inform top and bottom line closest to current price

The attached code makes it possible to locate the line closest to the price, but I need a code that informs me: 1 - The closest line higher than the price; 2 - The closest line below the price. 3 - If possible, filter the names that start with .... Example "LinhaHigh" I'm doing my first codes, I

Loop delete object

#property indicator_chart_window #property indicator_plots 0 double Open1,Open2,Close1,Close2; int OnCalculate ( const int rates_total, const int prev_calculated, const int begin, const double &price[]) { Open1