Forum

CopyTicks vs DOM : datas consistency problem

I saw some differences between DOM timesandsales and CopyTicks in indicator. I attach a simple Indicator as example and an image to explain it. //+------------------------------------------------------------------+ //| OnTicksExampleForForum.mq5 | //|

sma on MT5 random result

Hi, I'm developing an indicator based on sma of a limited set of bars. Trying different way to calculate sma I obtain different result for the same bar. I use 4 different way to calculate the sma: 1) using SimpleMAOnBuffer on all available bars (rates_total) 2) using SimpleMA on a limited set of bar

MT5 socks

Why MT4 works fine with socks 5, and MT5 with the same configurations give the message: "ActivTrades-Server through proxy failed (Socks5 - connection is not allowed by ruleset)". Why they implemented differently socks usage in the two platform

Canvas class scroll

Is it possible to fix canvas size to half of datas dimension and to set a scroll on the horizontal axis? Here I attach a code which can set as input canva size. If canvas size is bigger than datas size no problem, othervise the chart doesn't display correctly. I'd like to have a scroll function to

How to enable/disable fixation of a minimum value for an Indicator subchart

Hi, Anyone know how is possible to disable by code the fixed minimum flag after setting it to a choosen value with the function IndicatorSetDouble(INDICATOR_MINIMUM,0,ScalaMin) ? I can't find a function that disable fixed minimum flag for the indicator window. By hand with mouse click is possible to

CChart.Next() probblem

In my mt5 there are two opened chart with a timeframe (1H) and a superiortimeframe (4Hour) It seems the method Next of calls CChart doesn't work. It remain always on the same chart. Here the code #include <Charts\Chart.mqh> ...... CChart indexChart; ...... indexChart.FirstChart(); int limit= 30 ;

refresh

Hi, I'd like to know how to emulate with mq5 code the "chart refresh" obtained by pressing left key in the chart. Using the function ChartRedraw() the effect is not the same. Clicking the update with the mouse do something more that resolve the problem told here https://www.mql5.com/en/forum/13676

changing strategy tester background color

Hi, How can I change background color in MT5 srtategy tester. The default is black, and I would like to change it. Thanks in advance