Order History on the Drawing Pad
The Order History functions are dragged, dropped and connected from the Toolbox onto the Drawing Pad just like any other function in VTS.
- This drawing uses the fnGetHistoryInfo function, saved as lastProfit, to get the profit of the last closed trade.
- If the last trade resulted in a loss, the fnOpenOrder function is executed to open another order.