I wrote this one to help analyse my old trades and not having to manually drag and drop every closed order on the correct chart.
This indicator will mimic MT4's historical order arrows (when you drag and drop a closed order on the chart), but will automatically add any orders that are in order history instead of you having to do it by hand.
All object types, names and colours are exactly like MT4's original arrows in case you run any analysis off of them.
Closed buy example:
Closed sell example:
Closed (cancelled/deleted) pending example:
Settings:
showCancelledPending
Draw arrows also for cancelled (deleted) pending orders.
hiddenFromObjectList
Show/hide objects on the "Object List" (Ctrl+B by default)
synchHistory
When True, indicator will only show arrows for orders currently in Order History, e.g. changing history to "All" will draw arrows for all historical orders, then changing to "Last Week" will remove arrows for orders older than "Last Week".
When False, the indicator will draw arrows but not remove them if Order History range is changed, e.g. changing history to "All" will draw arrows for all historical orders, then changing to "Last Week" will keep old arrows (but draw only "Last Week" when indicator is initialised, e.g. on timeframe or profile change).
Ignore_List
Mainly for debugging.
A text with Order Tickets to ignore when drawing, e.g. setting this to "123456,987654" will ignore orders #123456 and #987654. Indicator looks for an Order Ticket within this text so Order Tickets can be separated with any character, e.g. commas, spaces, underscores, etc.
Hope it's useful. Comments as always welcome.
Changelog: - v1.0 - initial release