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.