Forum

[MQL4/MQL5] How to show ampersand character (&) in tooltip text

This is just an information, not a question. Since I can't find the documentation in MQL4/MQL5 site, I decided to write it at here. If you try to show an ampersand character (&) in object's tooltip text like this: ObjectSetString ( 0 ,obj_name, OBJPROP_TOOLTIP , "A & B" ); It won't work, the "&"

MT5 incomplete chart data issue after switching symbol on weekend or closed market

I have a chart symbol changer indicator <Deleted> and a daily open line indicator ( https://www.mql5.com/en/code/18523 ) that I put on a chart in MT5. The problem is when market is closed (on weekend for forex especially) and if I switched the symbol with chart symbol changer indicator, the chart

Horizontal Line Object doesn't get removed when the indicator's visualization is unchecked

Anyone know why the horizontal line in this code doesn't get removed when the indicator's visualization value is unchecked from the property dialog? Here is the sample code (Test1.mq4) that shows a blue horizontal line on chart: #property strict #property indicator_chart_window int OnInit () {

Need help to improve performance on this VWAP indicator

Hi, I have this VWAP indicator that can show Daily, Weekly, and Monthly VWAP lines, but there is a problem, if I switch to the lower timeframe like M1, the indicator is slow to load, especially if the Weekly/Monthly VWAP is enabled. So anyone can help me to improve the code performance on the lower