Forum

OnChartEvent() not triggered

Hi I'm simply trying to create a button that prints "1" when I click it with the following code. However, after I added the EA to a chart and click the button nothing happens. Does this mean the OnChartEvent() function not being triggered? What's wrong in this case? Improperly formatted code removed

In MQL5, how to place a new limit order when a position closed

In MQL5, how can I submit a new buy order when a eixisting buy position closed. (and submit a new sell order when a existing sell position closed)

How to check if a position has been closed with MQL5?

In the following snippet, I'm trying to print the details of closed positions. However, when I tested this snippet by placing an order and close it manually on MT5, this OnTradeTransaction function not get triggered. Is anything wrong in this code