Hello!
I run the script above.
Somehow lChart.SetInteger(CHART_SHOW_PERIOD_SEP,1); doesn't work.
Anyone experiences the same thing?
Build 787
Thank you!
Use :
lChart.ShowPeriodSep(true);
If you use a class (CChart) then use its methods and properties.
If you use SetInteger, then set correct value type, CHART_SHOW_PERIOD_SEP is a bool (true or false), not an integer (1).
Use :
If you use a class (CChart) then use its methods and properties.
If you use SetInteger, then set correct value type, CHART_SHOW_PERIOD_SEP is a bool (true or false), not an integer (1).
Hello!
I tried both ways, but it didn't work out.
//+------------------------------------------------------------------+ //| CChartTEST03.mq5 | //| Copyright 2013, MetaQuotes Software Corp. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2013, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ #include <Charts\Chart.mqh> string gSymbol = "EURUSD"; void OnStart() { CChart lChart; lChart.Open(gSymbol, PERIOD_M15); lChart.ApplyTemplate("blank"); // You have to modifiy this code to use your template lChart.SetInteger(CHART_SHOW_PERIOD_SEP,true); lChart.ShowPeriodSep(true); lChart.Redraw(); while(!IsStopped()) {}; }
Chart is presented in MT5 but period separators are just not shown. If I hit Crtl+Y they are displayed though.
Any help would be much appreciated!
Thank you!
Seems a bug. If I add this code, it works :
Print("Chart separator : ", lChart.ShowPeriodSep());
That give :
void OnStart() { CChart lChart; lChart.Open(gSymbol, PERIOD_M15); lChart.ApplyTemplate("blank"); // You have to modifiy this code to use your template Print("Chart separator : ", lChart.ShowPeriodSep()); lChart.ShowPeriodSep(true); lChart.Redraw(); while(!IsStopped()) {}; }
You can write to ServiceDesk.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello!
I run the script above.
Somehow lChart.SetInteger(CHART_SHOW_PERIOD_SEP,1); doesn't work.
Anyone experiences the same thing?
Build 787
Thank you!