Hi,

How to make this code work - to press a button by coding , the button is made from another indicator ..

 if(!EventChartCustom(0,CHARTEVENT_OBJECT_CLICK ,100,50,btnBuy))
   Print('Error ',GetLastError());

Appreciate any ideas .. thanks.