Dukascopy
 
 
Wiki JStore Search Login

Cannot increment Input Parameter: extern double Deviation = 0.1;
 Post subject: Cannot increment Input Parameter: extern double Deviation = 0.1; Post rating: 0   New post Posted: Mon 05 May, 2014, 12:45 

User rating: 1
Joined: Tue 22 Apr, 2014, 17:44
Posts: 5
Location: United Kingdom,
Having successfully converted a number of MT4 indicators to run on the JForex platform I am at a loss why the below code while compiling without error fails to function in the Jforex platform. The indicator displays correctly in the the live Jforex platform and does not produce errors when running. However, it is not possible to change one of the input parameters; the code associated with the input parameter assigning a value to a double.

The below input code defines the Deviation parameter of an envelope MT4 indicator. In all the indicator code the below code quotes are the only references to the double Deviation parameter. Note: All code is in the old MT4 format not the new MT4 / MT5 hybrid format.
extern double Deviation = 0.1; 

 for(int i=0; i<limit; i++)
     {
      ExtMapBuffer1[i] = (1+Deviation/100)*iMA(NULL,0,MA_Period,0,MA_Method,Applied_Price,i);
      ExtMapBuffer2[i] = (1-Deviation/100)*iMA(NULL,0,MA_Period,0,MA_Method,Applied_Price,i);
     }

1. All code compiles without error but when the converted indicator is placed on the Jforex chart it is not possible to increment or de-increment the 0.1 value.
2. When clicking the increment or de-increment arrows the 0.1 value remains unchanged.
3. If the 0.1 value is coded as 0.05 the Jforex Inputs Parameters window display a value of 0 - this would indicate the double is converted only to 1 (one) significant figure. Again, increment or de-increment from the Jfoex Input Parameters window does not function.

This is ultra basic code and and is surprising as code assigning a value to an integer, e.g. (extern int x = ...) presents no such problem.

Am I the only one with this problem or is it a known issue ?

Relevant information-help appreciated.


Attachments:
MA_1_Envelopes.mq4 [2.69 KiB]
Downloaded 110 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Cannot increment Input Parameter: extern double Deviation = 0.1; Post rating: 0   New post Posted: Tue 20 May, 2014, 09:18 

User rating: 1
Joined: Tue 22 Apr, 2014, 17:44
Posts: 5
Location: United Kingdom,
Can API Support kindly answer-respond-cooperate the following:

1. The above described in post # 1 is a known converter issue and there is a work-around.
2. The above described in post # 1 is a known converter issue and there is no known work-around.
3. Other appropriate explanation.


 
 Post subject: Re: Cannot increment Input Parameter: extern double Deviation = 0.1; Post rating: 0   New post Posted: Fri 23 May, 2014, 08:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This issue is fixed and will be available with the next demo JForex release.


 

Jump to:  

cron
  © 1998-2025 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