Dukascopy
 
 
Wiki JStore Search Login

DDSJFX-500 setting chart scale to specific min/max values
 Post subject: DDSJFX-500 setting chart scale to specific min/max values Post rating: 0   New post Posted: Wed 03 Aug, 2011, 10:29 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Could you please include a method to override the automatic scaling for the y-values used in the chart windows (main and indicator)?
Something like setScaleMin(double scaleMinPrice), setScaleMax(double scaleMaxPrice) would be very useful.

Thanks for considering.
Best, RR.


 
 Post subject: Re: DDSJFX-500 setting chart scale to specific min/max value Post rating: 0   New post Posted: Fri 04 Nov, 2011, 11:35 

User rating: -
Yes, please. This feature would allow you to overlay say 2 CCI indicators of different periods (e.g. CCI(50) and CCI(14) and have the zero line aligned. Currently this is impossible.


 
 Post subject: Re: DDSJFX-500 setting chart scale to specific min/max value Post rating: 0   New post Posted: Tue 08 Nov, 2011, 13:08 
User avatar

User rating: 8
Joined: Tue 25 Oct, 2011, 23:02
Posts: 74
Location: Australia, Melbourne
There is a workaround for this: add 2 outputs with fixed value lines, and then don't display them. This way two copies of the same indicator with different will stay aligned.

example:

       outputParameterInfos = new OutputParameterInfo[] 
        {
           new OutputParameterInfo("CCI", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.LINE),
             new OutputParameterInfo("Upper Level", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.DASH_LINE),
           new OutputParameterInfo("Lower Level", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.DASH_LINE)

        };

        outputParameterInfos[1].setShowOutput(false);
        outputParameterInfos[2].setShowOutput(false);



if the upper and lower levels are set to sufficiently large values, the actual indicator values won't exceed them so 2 copies of the indicator in the same pane will stay aligned.


 
 Post subject: Re: DDSJFX-500 setting chart scale to specific min/max value Post rating: 0   New post Posted: Wed 23 Nov, 2011, 12:45 
User avatar

User rating: 8
Joined: Tue 25 Oct, 2011, 23:02
Posts: 74
Location: Australia, Melbourne
Actually my suggested workaround DOESN'T work reliably. This would be a useful feature addition.


 

Jump to:  

  © 1998-2024 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