Visualization of trades
- Fozzy system
- Unable to set OBJ_ARROW_BUY and _SELL properties
- [Invalid Volume] error!!!
The dashed line is just a trendline, which can be created programatically using ObjectCreate() and OBJ_TREND.
What are you wanting to do?
If you drag a trade from the Account History tab onto the chart, it will draw it.
If you hold CTRL while you drag a trade from the Account History tab onto the chart, it will add all the trades onto the chart.
You definitely can code it in to your EA.
Your approach will be slightly different depending on whether
1. Your EA closes your orders, or
2 Your orders are closed manually and/or through TP / SL
basically should be something like
1. select order from history
2. set line_name as the name of the line displayed (should be unique)
3. Create the line
return(false);