Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Chart Filtering on Order Label patterns for Order Visualization http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=83&t=50032 |
Page 1 of 1 |
Author: | hyperscalper [ Mon 16 Sep, 2013, 03:30 ] |
Post subject: | Chart Filtering on Order Label patterns for Order Visualization |
Using the standalone API, I'd like to be able to filter representation of ONLY those orders which my client has submitted. With my order labels, for example, I use a prefix, e.g. HBOT, then a "magic number" e.g. 77, plus the Instrument, e.g. EURUSD. So all of my labels for a given trading system begin with a prefix e.g. "HBOT77EURUSD", and then suffix information containing some sequential index for uniqueness, etc. Each trading system acts only on its own concatenated order label prefix id string. Thus, if I could filter on a fixed prefix, or set of prefixes, and exclude all others, that would help reduce error-prone clutter on the chart, which I use for trade entry. Again, this is in standalone API mode. I haven't thought that much about it, but is it possible that a Chart could use some sort of "regular expression" syntax in order to display only Orders with specific label patterns? If I have several Strategy modules, all submitting orders, these orders will clutter up my standalone Chart, when in the same Account. Also, extending this idea, it would be wonderful if in the JForex platform, a specific chart could be given a Filter which would specify the Label pattern of Orders which it would display, ignoring all other Order label patterns. This would be either manually entered on the JForex platform, for the chart, or perhaps Strategy modules could set the Filter expression for charts programmatically. But in the Standalone API, I really need to be able to control the subset of Order Labels which are shown on the chart. Having the "clutter" of multiple simultaneous Strategy modules, all submitting orders will be very confusing and probably result in errors. Some sort of general per-chart instance FILTER mechanism would be very much appreciated. This might required that any Order Submitting client such as JForex platform, be able to specify a user provided Prefix string which would be appended to Order Labels. Again, just thinking aloud, and I'm sure you'd have better ideas. HyperScalper |
Author: | tcsabina [ Tue 17 Sep, 2013, 21:25 ] |
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization |
Quote: Also, extending this idea, it would be wonderful if in the JForex platform, a specific chart could be given a Filter which would specify the Label pattern of Orders which it would display, ignoring all other Order label patterns. I would love to see this feature! |
Author: | API Support [ Tue 24 Sep, 2013, 13:53 ] |
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization |
Consider removing any standard chart order visualization and handling it yourself by using the chart object API. For instance you can add any character and couple it with the order information as a text object. This provides you also with more flexibility how you can display your orders. |
Author: | hyperscalper [ Tue 24 Sep, 2013, 19:09 ] |
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization |
How do I remove default Standalone API chart orders visualisation? Thanks, HyperScalper |
Author: | tcsabina [ Tue 24 Sep, 2013, 20:07 ] | ||
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization | ||
Dear Support, I think there is a misunderstanding. Take a look on the attached picture. These are those object that we want to filter/remove. JForex-API (currently?) is not listing these objects (order labels, triangles indicating order direction, dots indicating open-close relation) with for (IChartObject obj : chart.getAll()) {} iteration. But also, the feature request contains filter possibility for the JForex platform as well, not only in the standalone version.
|
Author: | hyperscalper [ Wed 25 Sep, 2013, 01:43 ] |
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization |
Yes, this is a very good example of the problems I am having. A solution for both the JForex platform, and the standalone API would be great. But just for the standalone API, if I could provide an IChartObjectFilter custom object which could provide active custom filtering on chart rendering, then that would be my preferred solution. HyperScalper |
Author: | API Support [ Wed 25 Sep, 2013, 07:29 ] |
Post subject: | Re: Chart Filtering on Order Label patterns for Order Visualization |
hyperscalper wrote: How do I remove default Standalone API chart orders visualisation? See:https://www.dukascopy.com/client/javadoc/com/dukascopy/api/system/IClient.html#setPreferences(com.dukascopy.api.system.IPreferences) |
Page 1 of 1 |