Forum

BUG using minichart

Hi, i found a bug using minichart objects. If we create a minichart object in a chart with NO focus, ChartSymbol() and ChartPeriod() of minichart return wrong values. I need to focus the chart to get right values . Due to this bug, using ChartIndicatorAdd() for minicharts return false! In attachment

Why charts get closed/removed at shutdoown/restart?

Hi, sometimes it happens that some charts get automatically closed/removed at shutdoown/restart? Is there any reason for this? Also, these closed charts are not available in "Open deleted" list... This is log of what happened in journal: 2020.10.09 21:55:58.467 Experts expert Expert_1 (EUR,M15)

OnDeinit Asynchronous ?

Hi, using indicators i noted a weird stuff: when i switch period, the OnInit of new period is called before OnDeinit of prev period... How it is possible? Is OnDeinit call asynchronous

Chart close event?

Hi, I need to execute some stuff only just before a chart is manually closed. What is the right approach to code this? Thanks

MT5 100 charts limit include minicharts?

Hi, i would like to know if mt5 100 charts limit include minicharts or it takes into account only main window charts. Anyone know? Thanks

Changing order in "Charts Bar" via mql5: is it possible?

Hi, i would change order ( sequence ) of the chart labels in Charts Bar via code, would it be possible in some way? I don't find anything in the docs for such thing. Thanks

Timeframes toolbar on undocked charts

Hi, do you know if it possible add the timeframes quick buttons toolbar on undocked charts? Thanks

MT5 Bug in ChartIndicatorGet()

Hi, i have an indicator where i try to get the handle of an other indicator (inside the same chart) using ChartIndicatorGet(), but moving trough TF, indicator init and deinit stop working! And all became a lot slowly! Shoudn't simply give handle int value this call ? Attached an indicator that

MT5 BUG with iBarShift?

Hi, i really cannot understand why iBarShift is not working good in my code, it really seems an MT5 bug. Here the code, very simple: Print ("Symbols "+ _Symbol +" - period: "+ EnumToString ( _Period )+" - Bars : "+ iBars ( _Symbol , _Period )); Print ("shift 155 from W1: "+ iBarShift ( _Symbol

CList instance and "delete"

Hi, i would just question if in these code: CList *list= new CList(); list.Add( new MyClass()); list.Add( new MyClass()); list.Add( new MyClass()); delete list; the last command "delete" will also free memory pointed by MyClass instances? Obviously with memory management flag as deafault. Or i