Difficulty entering small values for parameter: 5E-05 is shown

Created at 02 Mar 2013, 15:42
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TR

TraderM

Joined 30.12.2012

Difficulty entering small values for parameter: 5E-05 is shown
02 Mar 2013, 15:42


Hi,

1. If I set the default value of a parameter to 0 0.00015 value is shown in the parameter list as expected:

      [Parameter("Better entry ", DefaultValue = 0.00015, MinValue = 0)] // Try to get a better entry than the signal
      public double BetterEntry { get; set; }   

Note: This value is greater than one pip (AUDUSD)

But:

2. If I set the default value for the parameter to be less than 0.0001 like this:

      [Parameter("Better entry ", DefaultValue = 0.00005, MinValue = 0)] // Try to get a better entry than the signal
      public double BetterEntry { get; set; }   

the display shows the following:

Note: Trying to enter a value less than one pip fails.

3. Also if I use the parameter set in 1. above and enter 0.00005 by hand the 5E-05 is displayed as in 2.

This is awkward as I cannot enter a value in the interface to be less that one pip.

Why does this happen? Is this wanted behaviour?

Thanks,

TraderM

 

 

 


@TraderM
Replies

TraderM
02 Mar 2013, 15:49 ( Updated at: 21 Dec 2023, 09:20 )

The entry above did not display the pasted in  images, so I will try again:

----------------------------------

Hi,

1. If I set the default value of a parameter to 0 0.00015 value is shown in the parameter list as expected:

      [Parameter("Better entry ", DefaultValue = 0.00015, MinValue = 0)] // Try to get a better entry than the signal
      public double BetterEntry { get; set; }   

Note: This value is greater than one pip (AUDUSD)

But:

2. If I set the default value for the parameter to be less than 0.0001 like this:

      [Parameter("Better entry ", DefaultValue = 0.00005, MinValue = 0)] // Try to get a better entry than the signal
      public double BetterEntry { get; set; }   

the display shows the following:

Note: Trying to enter a value less than one pip (AUDUSD) fails.

3. Also if I use the parameter set in 1. above and enter 0.00005 by hand the 5E-05 is displayed as in 2:

This is awkward as I cannot enter a value in the interface to be less that one pip.

Why does this happen? Is this wanted behaviour?

Thanks,

TraderM


@TraderM

cAlgo_Fanatic
04 Mar 2013, 12:16

It will be adjusted not to display scientific format for this precision with the next release.

Regards,


@cAlgo_Fanatic