one to one coaching

5 digit broker code

Another guide :

After the extern parameters, add :

Code:

double point;

In the init function add :

Code:

point=GetPoints();

If there is no init function, add this before the start body :

Code:

int init()
{
point=GetPoints();

return(0);
}

After the init function, add :

Code:

//|---------x digits broker

double GetPoints()
{
if(Digits==3 || Digits==5)point=Point*10;
else point=Point;
return(point);
}

or try this alternative

Once and For All
Raygun's solution is by far the simplest and most straightforward but if you wish to modify your EA Once and For All so that it will run on any platform (4 or 5 digit) thereafter, do the following:

1. Define global variable point:
double point = 0;

2. Insert the following bit of code into the init() function:

if (Digits == 3 || Digits == 5)
{
point = Point*10;
}
else
{
point = Point;
}

3. For each occurrence of Point, change to point
Reply With Quote
 
one to one coaching
Top