Button Trading Example on CTrader 4.2
Button Trading Example on CTrader 4.2
25 May 2022, 16:39
Dear Ahmad
Could you please provide a Button example with button += subscribe and Chart.MouseDown += Chart_MouseDown;
I have onclick (Chart.MouseDown += Chart_MouseDown) to get the OHLC of bar and on button click place order (PlaceStopOrderAsync) buy on High or sell on low.
The same cBot is running on 2 or same timeframe, when a trade operation (Buy/Sell) is performed through Button Buy or Button Sell, trade performing cBot freezes after placing order.
Thanks
Ahmed
Replies
m4trader4
31 May 2022, 13:54
RE:
Let me know what is required from my end to reproduce the issue? all the cBots are not working in 4.2 this has been a show stopper for me
@m4trader4
m4trader4
25 May 2022, 16:44
RE:
m4trader4 said:
Chart.MouseDown += Chart_MouseDown -> get the bar index
@m4trader4