Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
JFOREX-2977 IFiboRetracementChartObject - Levels and Labels http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=88&t=32670 |
Page 1 of 1 |
Author: | [BeastMaster] [ Sun 24 Apr, 2011, 17:27 ] |
Post subject: | JFOREX-2977 IFiboRetracementChartObject - Levels and Labels |
Demorelease 2.13.10 / API 2.7.38 If you have multiple Fiboretracement Objects or ILeveledChartObjects, the levels are not attached to the Object and the Levellabels are not attached to the levels. i.e. FiboRetracement 1 has 5 Levels FiboRetracement 2 has 10 Levels Problem 1: getLevelsCount will provide for each FiboRetracement 15 Levels. Problem 2: The Label in addLevel or setLevelLabel is related to the Levelvalue (i.e. 50 %) not to the Level (i.e. Level 10). getLevelLabel provide correct Labels for each level, but the chart shows the Labels related to the values (i.e. all 50 % levels show the same label). Maybe this will help your debugging: If you try to set a levellabel for a level that does not exist, the error-message shows an array of two values where the first value is always 0. I guess the first value should be related to the FiboRectracement Object and is not linked. A solution would be very appreciated. Thank you in advance and best regards BM |
Author: | [BeastMaster] [ Thu 28 Apr, 2011, 05:38 ] |
Post subject: | Re: IFiboRetracementChartObject - Levels and Labels |
A little extension: Define a FiboRetracement Object A with 5 Levels and a FiboRetracement Object B with 10 Levels. As soon as B is created, A will be extended to 10 Levels. A solution would be welcome. Thank you in advance and best regards BM |
Author: | API Support [ Wed 15 Jun, 2011, 09:41 ] |
Post subject: | Re: JFOREX-2977 IFiboRetracementChartObject - Levels and Lab |
Problem 1: Is not reproducible, please, provide your strategy code to find out what's the problem. Problem 2: and.... where is the problem actually? About "debugging" - this error message appears due to you try to work with not existed level. There will be no problem if you specify correct indexes. |
Author: | BeastMaster1 [ Wed 20 Jul, 2011, 11:14 ] |
Post subject: | Re: JFOREX-2977 IFiboRetracementChartObject - Levels and Lab |
Ok - here is a code to test that produce exactly the results as described in the first posting. There is no difference between Fiboobject1 and FiboObject2. package charts.test; |
Author: | BeastMaster1 [ Wed 20 Jul, 2011, 12:41 ] |
Post subject: | Re: JFOREX-2977 IFiboRetracementChartObject - Levels and Lab |
Here is a sample code. There is no way to handle the levels of two Fiboretracement Object separately: package charts.test; |
Page 1 of 1 |