Maybe you can check the condition of:
if(ChartGetInteger(0,CHART_BRING_TO_TOP)==true)
{
// Do Something...
}
{
// Do Something...
}
Please see:
![Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties](/i/community/logo_mql5_small.png)
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties
- www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Chart Properties - Reference on algorithmic/automated trading language for MetaTrader 5
Marco vd Heijden:
Maybe you can check the condition of:
if(ChartGetInteger(0,CHART_BRING_TO_TOP)==true)
{
// Do Something...
}
{
// Do Something...
}
Please see:
this works :)
Thank you very very very very much
Marco vd Heijden:
Maybe you can check the condition of:
if(ChartGetInteger(0,CHART_BRING_TO_TOP)==true)
{
// Do Something...
}
{
// Do Something...
}
Please see:
Thank you!!
I used: ChartSetInteger(chartidNumber,CHART_BRING_TO_TOP,0);
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I have a function & put on a expert . i open 10 chart & add expert to all of them but i want function work just on selected chart not other chart
when i select another chart now i want function work on this selected chart
for this i need specify active chart to put condition for run function like this
{
run function
}