maximizing the chart window with mql4

To add comments, please log in or register
Essam Daoud
1129
Essam Daoud  

Hi

I need to maximize the chart window when the following event fires but it is not doing any thing? How can I fix it?

Playing around with the code below did not cut it for me. Any suggestions?

Thanks


void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)
  {
      ChartSetDouble(0,CHART_FIXED_MAX,1000); // <<<<< Not maximizing the chart as expected
      // also I tried this next line for no avail.
      ChartSetInteger(0,CHART_WIDTH_IN_PIXELS,854);

   
  }
To add comments, please log in or register