Backtest / Optimizion paramazers: Nummers smaller than 0?

Questions about MultiCharts and user contributed studies.
User avatar
Henrik
Posts: 140
Joined: 13 Apr 2010
Has thanked: 25 times
Been thanked: 11 times

Backtest / Optimizion paramazers: Nummers smaller than 0?

Postby Henrik » 22 Aug 2011

Hello!
I have a problem during enter the parameters in backtests/optimizion:
I can't enter numbers like 0.1 or 4.3 or 0.2.
MC rounds the numbers to 1, 5, 2 pp.

What do I wrong? Is there a trick in the code to declare the variables?

In C# I declare those numbers with "double".
How in easylanguage?

Thank you!

User avatar
Henrik
Posts: 140
Joined: 13 Apr 2010
Has thanked: 25 times
Been thanked: 11 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Henrik » 23 Aug 2011

Clarification:
Decimals works in normal backtest, but not in Optimizer (Chart-Optimizer oder Portfolio Optimizer). There MC rounds the 0.8 to 1.

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Dave Masalov » 23 Aug 2011

Henrik,

Please make sure that you use the proper delimeter sign i.e. a coma or a dot. It depends on your regional settings.

User avatar
Henrik
Posts: 140
Joined: 13 Apr 2010
Has thanked: 25 times
Been thanked: 11 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Henrik » 24 Aug 2011

Thank you, Dave.

Yes, in the code is a dot.
In Backtests on Chart it works fine, but not in the Portfolio Optimizer.
Whether coming or dot.

User avatar
Henrik
Posts: 140
Joined: 13 Apr 2010
Has thanked: 25 times
Been thanked: 11 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Henrik » 26 Aug 2011

Is this a bug? Please fix it!

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Dave Masalov » 26 Aug 2011

Henrik,

We failed to reproduce the issue on our end. Please come to our Live Chat Mon-Fri between 6:30AM and 2PM EST for investigation.

User avatar
Henrik
Posts: 140
Joined: 13 Apr 2010
Has thanked: 25 times
Been thanked: 11 times

Re: Backtest / Optimizion paramazers: Nummers smaller than 0

Postby Henrik » 26 Aug 2011

...Issue solved.
I have change my PC-language settings from germany to US. Now I can optimize with dots :-)
Thank you for your helpful offer!


Return to “MultiCharts”