I need your help,
What I want is to click the button all the time to display ABCDE
if(show_data)
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:A");
if(show_data)
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:B");
}
else
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:C");
}}
else
if(show_data)
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:D");
}
else
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:E");
thank you