Hi Guys,
Using standalone charts, I am forced to see the Orders, including TP and SL for orders which my remote Linux automated strategies are managing. Normally in the JForex platform this would be what users want to see, which is all order activity, regardless of which client initiated the activity.
But when a standalone App uses charting, it should be able to filter out Orders which should not be annotated on the chart.
Therefore, I propose that you permit us to define a filter with an interface IChartDisplayFilter or something like that, so that we can accept or reject the annotation for each Order which is being automatically shown on the standalone chart.
Similar to Java's FileNameFilter, which defines boolean accept(...) to filter filenames...
IChartDisplayFilter could be defined similar to
boolean accept( IOrder order)
Then in IChart (or the appropriate class, maybe IChartPresentationManager, etc... )
define IChart.setFilter(IChartDisplayFilter filter)
If this is null, the default situation, then all Orders' information is annotated on the chart. But if a filter is defined, then we can suppress the display of information associated with particular orders in our standalone charting application.
Thanks for your consideration of an enhancement similar to this. I am sure you would have a clearer idea how to evolve the API than I do .....
HyperScalper
|