Page 1 of 1

help with Setoptiondigits()

Posted: Mon Aug 15, 2011 3:02 pm
by forextester
Hye,

I am working with external double parameters where I have to manually put in pivots (four digits after decimal). But after I press enter after putting in four digits after decimal, forextester rounds'em off to just 2.

I've tried setoptiondigits but no use. setting to 2 or 4 makes no difference.


Code: Select all

RegOption('PP', ot_double, pp);
SetOptionDigits('pp',4);                 // doesn't do me any good; the figure 
                                                  // rounds off to 2 decimal points.


Please help.

Best regards.

Posted: Tue Aug 16, 2011 8:00 am
by FT Support
Hello,

how many digits after point are displayed in the indicators parameters window? what Forex Tester version do you use?

Posted: Tue Aug 16, 2011 8:18 am
by forextester
Hye,

Its a strategy; I have used regoption / ot_double to obtain float input in initstrategy.

At the input, it shows only 2 digits after decimal point; If I enter 2.4096, it rounds off to 2.41.

I'm using FT1.12.

regards.

Posted: Tue Aug 16, 2011 12:17 pm
by FT Support
Hmm, please try to compile your strategy with the help of our new API (from Forex Tester 2.8). Probably that was an old bug and it was already fixed. As far as i know in Forex Tester 2.8. SetOptionDigits works fine.
You can download latest program version here: http://www.forextester.com/download.html

Posted: Wed Aug 17, 2011 5:37 am
by dackjaniels
FTSupport,

Why are you referring to ForexTester V2.8 when the latest version available for download is V2.77?

Steve

Posted: Wed Aug 17, 2011 1:31 pm
by FT Support
Forex Tester 2.8 will be issued in a few days so we can treat it as a latest version

Posted: Wed Aug 17, 2011 1:52 pm
by dackjaniels
Good news, thanks.

Posted: Tue Nov 15, 2011 7:03 pm
by pthomas82
I am still having issues with this:

Code: Select all


RegOption('Psar 2 value', ot_double , PSAR2);
Setoptiondigits('PSAR2',4);
PSAR2 := 0.001;



Will round the option window back to 0.00

is this fixed?

Re: help with Setoptiondigits()

Posted: Mon Jan 26, 2015 12:43 am
by Roddy
I have created a dll file using MS Visual Studio 2005 based on example #1. When I start the application I get an error message (see attachment). The application will load only if I press "retry". Also even though I can see the strategy under the Install->New Strategy option the strategy does not appear in the strategies list box.
_____________
Unlock the key of your success by ccnp exams and a+ book By using our latest cisco ccna book - pass4-sure and ju study material, you can easily pass www.rasmussen.edu

Re: help with Setoptiondigits()

Posted: Tue Jan 27, 2015 8:05 am
by FX Helper
Hello,

Can you please attach a screenshot of error message one more time?

Do you use debug version or release release version of your EA?