Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3678 IPolyLineChartObject only 150 points? It's so small!
 Post subject: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Thu 29 Mar, 2012, 12:29 

User rating: 0
Joined: Thu 25 Aug, 2011, 07:19
Posts: 8
Location: Russian Federation,
Interface IPolyLineChartObject Java Doc
//*******************************************
com.dukascopy.api.drawings.IPolyLineChartObject
public static final int MAX_POINTS_COUNT 150
//*******************************************
How can one line to add more points?


 
 Post subject: Re: Why does the IPolyLineChartObject can be added only 150 points? It's so small! Post rating: 0   New post Posted: Thu 29 Mar, 2012, 13:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider combining multiple poly lines.


 
 Post subject: Re: Why does the IPolyLineChartObject can be added only 150 points? It's so small! Post rating: 0   New post Posted: Fri 30 Mar, 2012, 06:30 

User rating: 0
Joined: Thu 25 Aug, 2011, 07:19
Posts: 8
Location: Russian Federation,
Yes, I understand that.
But it is very inconvenient, you can remove the restriction on the number of points?
Why invent artificial constraints?


 
 Post subject: Re: Why does the IPolyLineChartObject can be added only 150 points? It's so small! Post rating: 0   New post Posted: Fri 30 Mar, 2012, 16:52 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
romanvip wrote:
But it is very inconvenient, you can remove the restriction on the number of points?
Why invent artificial constraints?
All chart objects get saved in workspace, once you exit the platform. The workspace file size is limited. So this restriction is designed to prevent users from creating objects, that take too much space in the workspace file.


 
 Post subject: Re: Why does the IPolyLineChartObject can be added only 150 points? It's so small! Post rating: 0   New post Posted: Mon 02 Apr, 2012, 06:49 

User rating: 0
Joined: Thu 25 Aug, 2011, 07:19
Posts: 8
Location: Russian Federation,
Ok, but in open chart, only in the visible region, has more 2000 points, and is only used 40MB of memory.
If open 4 chart, and in each of 2000 points, used 90-120MB of memory.

And one more question.
There is a limit of 150 points, but when the polyline to add more points - there are no errors or warnings.
Everything happens as if normal, but the chart is not part of the polyline. It may be a mistake to issue or warning?


 
 Post subject: Re: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Wed 16 May, 2012, 08:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
method addNewPoint(long time, double price) returns boolean true if point appended successfully, otherwise false if reached max number of points.


 
 Post subject: Re: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Sat 25 Aug, 2012, 13:51 

User rating: 0
Joined: Thu 29 Sep, 2011, 19:40
Posts: 3
Location: Lithuania,
Dear Support,

API Support wrote:
Consider combining multiple poly lines.

I don't think this is smart solution. Do You suggest to combine i.e 10 000 poly lines?

API Support wrote:
that take too much space in the workspace file.

But I can buy more RAM, or buy new HDD! Please, leave this problem to us.

public static final int MAX_POINTS_COUNT 150
Please, make this parameter configurable: i.e MAX_POINTS_COUNT=0 means UNLIMITED

Please, please, please! * 10000
VERY PLEASE!!!

best regards


 
 Post subject: Re: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Thu 30 Aug, 2012, 12:11 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
What are you trying to achieve with that many poly lines? Maybe this can be done with an indicator instead?


 
 Post subject: Re: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Thu 30 Aug, 2012, 19:49 

User rating: 0
Joined: Thu 29 Sep, 2011, 19:40
Posts: 3
Location: Lithuania,
I need no more 10-20 polylines, but with unlimited points.
When max count of points in polyline is limited to 150, I must to devide each polyline into many short polylines.
I use polylines, when I need to understand the strategy and to visually check math calculations. Indicators are to complicated for that (I think).

As an example, please take a look to the reworked strategy from strategy contest.


Attachments:
_1109_2_Avec.java [70.45 KiB]
Downloaded 456 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: JFOREX-3678 IPolyLineChartObject only 150 points? It's so small! Post rating: 0   New post Posted: Fri 31 Aug, 2012, 08:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Spaudikas wrote:
Indicators are to complicated for that (I think).
If there is a well-defined, robust algorithm, then indicators are viable for such job.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com