Do any other chart objects overlap the buttons? Try changing the z-order of your buttons:
OBJPROP_ZORDER | Priority of a graphical object for receiving events of clicking on a chart (CHARTEVENT_CLICK). The default zero value is set when creating an object; the priority can be increased if necessary. When applying objects one over another, only one of them with the highest priority will receive the CHARTEVENT_CLICK event. | long |
Do any other chart objects overlap the buttons? Try changing the z-order of your buttons:
OBJPROP_ZORDER | Priority of a graphical object for receiving events of clicking on a chart (CHARTEVENT_CLICK). The default zero value is set when creating an object; the priority can be increased if necessary. When applying objects one over another, only one of them with the highest priority will receive the CHARTEVENT_CLICK event. | long |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
i have problem with OnChartEvent specially with CHARTEVENT_OBJECT_CLICK.
For me it's strage what happen.
With an indicator a create 3 different button in separate window. If i load the indicator for the first time the Function CHARTEVENT_OBJECT_CLICK work perfectly with it but :
If i change TF of the chart where is loaded the Indicator loaded on the chart the Function CHARTEVENT_OBJECT_CLICK don't work whit these 3 button.
If i load another Symbol on the chart where is loaded the indicator the Function CHARTEVENT_OBJECT_CLICK don't work whit these 3 button.
I use the &sparam costant for the OnChartEvent and CHARTEVENT_OBJECT_CLICK.
Sorry for my English.
Someone can help me?