
trade historyThis is a simple example to demonstrate the usage of plotNewOpenTrades() and plotNewClosedTrades() that can be found in common_functions.mqh. MT4 will not automatically plot manual trades or trades resulting from pending orders into the chart, it only plots them when an EA sends a market order.However, we would like to see all trades in the chart and we don't want to drag them manually from the history into the chart, we would like this to happen automatically.#property indicator_chart_window#include <common_functions.mqh>int...