Download MetaTrader 5

how to maxmize chart ?

To add comments, please log in or register
Add our Facebook page to friends. Follow the latest news!
Ziheng Zhuang
1537
Ziheng Zhuang 2016.08.24 19:05 

I have an indicator with alert function.

When there is a alert, I hope the chart bring to top and maxmize it.

 Is there any function for that ?

Please advise, thanks. 

 

// test.mq4
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
    Sleep(5000);
    ChartSetInteger(0,CHART_BRING_TO_TOP,true);
    
    //--- how to maxmize chart ?
    
    
    
  }
//+------------------------------------------------------------------+
Marco vd Heijden
Moderator
4706
Marco vd Heijden 2016.08.24 19:11  
Ziheng Zhuang:

I have an indicator with alert function.

When there is a alert, I hope the chart bring to top and maxmize it.

 Is there any function for that ?

Please advise, thanks. 

 

No but you can maximize them all so it simply switches from one ot the other, or you can use one chart and call

ChartSetSymbolPeriod()
Ziheng Zhuang
1537
Ziheng Zhuang 2016.08.24 19:20  
Marco vd Heijden:

No but you can maximize them all so it simply switches from one ot the other, or you can use one chart and call

 Thanks,but this fucntion ChartSetSymbolPeriod() is for changing symbol and TF.

Marco vd Heijden
Moderator
4706
Marco vd Heijden 2016.08.24 19:35  
Ziheng Zhuang:

 Thanks,but this fucntion ChartSetSymbolPeriod() is for changing symbol and TF.

Exactly so you will have 1 chart for 16 Symbols in stead of 16 charts..
To add comments, please log in or register