Expert Advisors and Five Digit Quotes

A lot of Forex brokers have introduced the ability to use five digit quotes in MetaTrader 4 terminals lately. Such ability is very useful and advantageous for all traders, and especially for the forex scalping traders, but there are some problems concerning expert advisors for the MetaTrader 4 terminal, which is based on five digit Forex quotes instead of the more widespread format of four digit Forex quotes. As a rule, two serious problems are singled out in connection with the use of five digit quotes, which arise because of use of the “Point” variable by expert advisors for pips to denominate stop-loss and take-profit. The first problem is a possibility of generation of an “Error 130” by the MetaTrader 4 terminal in case of stop-loss and take-profit values coming too close to the price of the current currency pair, and these chances are very strong. The second problem is the need to completely review and adjust the trading strategy of your expert advisor, because all the profits and losses will be divided by 10.

Here is a simple telling example. Let’s imagine that we trade using the EUR/USD currency pair with the four digit quote rate of 1.5703; one Point in MetaTrader 4 is 0.0001, i.e. one usual pip of the EUR/USD pair. We set the following parameters for our expert advisor: stop-loss = 20 pips (1.5683), take-profit = 40 pips (1.5743). If everything is all right, we will 40 pips after the rate reaching 1.5743. But in case of use of five digit quotes everything will be totally different. For instance, we have the EUR/USD currency pair with the five  digit quote rate of 1.57032; in this case one Point in MetaTrader 4 is 0.00001, i.e. it is ten times less than in case of four digit quote. So if we set the same parameters for our expert advisor as in case of four digit quote, the result will be the following: stop-loss = 20 pips (1.57012), take-profit = 40 pips (1.57072). First of all, almost all brokers simply won’t allow you to use such a close stop-loss and take-profit setting. Secondly, even in case you were allowed to use such settings, you should understand that there is no rational kernel in such approach and it is completely different from the initial strategy rules.

What should you do to correct the situation without complete readjustment of your expert advisor or change of a broker for the one with four  digit Forex quotes? Here is the way to adjust your expert advisor for proper work with five  digit quotes:

•    Firstly, use MQL Editor for editing the .mq4 of the expert advisor you want to adjust;
•    Secondly, you should add a new global variable declaration in the beginning, next to other variable declarations:
double Point;
•    Thirdly, copy the following code and paste it to the init() function of the expert advisor. As a rule, all expert advisors have this function. In case there is no such function in your expert advisor, you should create it and paste the following code:
//Checking for unconventional Point digits number
if (Point == 0.00001) Poin = 0.0001; //5 digits
else if (Point == 0.001) Poin = 0.01; //3 digits (for Yen based pairs)
else Poin = Point; //Normal
•    Fourthly, find all occurrences of “Point” in the code and replace them with “Poin”, apart from those in the init() function. You do it in order to change the system variable “Point” of the MT4 platform to the variable “Poin”, which contains the four digit pip value.

That’s it. These four steps is your way for adjustment of the expert advisor to run it in MetaTrader with five digit quotes. Moreover, your EA will still have support of standard four digit quotes.

2011 © http://iticsoftware.com

Tags: , , ,

This entry was posted on Tuesday, June 14th, 2011 at 9:06 am and is filed under expert advisor, metatrader expert advisor, metatrader expert advisors. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

112 Responses to “Expert Advisors and Five Digit Quotes”

ANGEL July 29th, 2011 at 12:05 am

Order@Coral.Calcium.Online” rel=”nofollow”>..

Buygeneric pills…

SALVADOR July 29th, 2011 at 2:35 pm

Cheap@Abilify.Online” rel=”nofollow”>..

Buygeneric meds…

DUSTIN July 29th, 2011 at 6:14 pm

Cheap@Generic.Abilify” rel=”nofollow”>..

Buygeneric drugs…

EDUARDO July 29th, 2011 at 7:02 pm

Cheap@Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..

Buygeneric pills…

BRANDON July 29th, 2011 at 7:28 pm

Buy@Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..

Buyno prescription…

LEWIS July 31st, 2011 at 8:53 am

Purchase@Acai.Without.Prescription” rel=”nofollow”>..…

Buynow it…

ENRIQUE July 31st, 2011 at 10:27 am

Buy@Acai.500mg” rel=”nofollow”>.…

Buynow it…

JIMMIE August 1st, 2011 at 1:12 am

Buy@Discount.Coral.Calcium” rel=”nofollow”>..

Buygeneric meds…

PERRY August 1st, 2011 at 2:24 pm

Buy@Generic.Abilify” rel=”nofollow”>…

Buywithout prescription…

BRADLEY August 2nd, 2011 at 3:42 am

Order@Cheap.Coral.Calcium” rel=”nofollow”>.

Buygeneric drugs…

RALPH August 3rd, 2011 at 2:37 pm

Buy@Cheap.Acai” rel=”nofollow”>…

Buygeneric drugs…

SAMUEL August 3rd, 2011 at 4:03 pm

Buy@Cheap.Acai” rel=”nofollow”>…

Buygeneric drugs…

FELIX August 3rd, 2011 at 5:59 pm

Order@Acai.Online” rel=”nofollow”>…

Buyit now…

BRADLEY August 4th, 2011 at 7:33 pm

Purchase@Generic.Acai” rel=”nofollow”>..

Buygeneric drugs…

ROLAND August 4th, 2011 at 9:01 pm

Purchase@Acai.Without.Prescription” rel=”nofollow”>..…

Buyno prescription…

NATHAN August 5th, 2011 at 5:23 am

Order@Discount.Energy.Boost” rel=”nofollow”>.…

Buynow it…

ADAM August 5th, 2011 at 2:21 pm

Buy@Discount.Accupril” rel=”nofollow”>.…

Buyno prescription…

LOUIS August 5th, 2011 at 4:32 pm

Order@Cheap.Accupril” rel=”nofollow”>.…

Buygeneric drugs…

BRUCE August 6th, 2011 at 5:02 am

Order@Cheap.Accutane” rel=”nofollow”>.…

Buygeneric drugs…

ALBERT August 8th, 2011 at 12:28 pm

Cheap@Aciphex.20mg” rel=”nofollow”>.…

Buygeneric meds…

WILLIAM August 9th, 2011 at 3:30 am

Buy@Cheap.Acomplia” rel=”nofollow”>.…

Buygeneric pills…

RAY August 10th, 2011 at 9:04 pm

Actonel@35mg.Without.Prescription” rel=”nofollow”>.

Buygeneric drugs zfk…

VICTOR August 11th, 2011 at 3:12 am

Get@Actoplus.Met.Online” rel=”nofollow”>..

Buygeneric pills zdg…

SERGIO August 11th, 2011 at 1:40 pm

Buy@Actos.Without.Prescription” rel=”nofollow”>.

Buyno prescription luw…

SAMUEL August 12th, 2011 at 2:08 pm

Order@Discount.Adalat” rel=”nofollow”>.

Buygeneric meds unm…

MARCUS August 13th, 2011 at 2:27 am

Order@Discount.Abana” rel=”nofollow”>..

Buynow it vhx…

LAWRENCE August 13th, 2011 at 5:41 am

Buy@Abilify.Online” rel=”nofollow”>..

Buywithout prescription dyo…

DARYL August 13th, 2011 at 10:29 am

Cheap@Abilify.Online” rel=”nofollow”>..

Buygeneric drugs krg…

MARION August 14th, 2011 at 4:43 am

Order@Cheap.Acai” rel=”nofollow”>..

Buyno prescription gdt…

ALLEN August 14th, 2011 at 7:06 pm

Purchase@Acai.Without.Prescription” rel=”nofollow”>.

Buyit now ojb…

JOEL August 15th, 2011 at 4:22 am

Generic@Acai.500mg.Without.Prescription” rel=”nofollow”>..

Buyno prescription wkp…

JOHNNY August 15th, 2011 at 8:38 am

Buy@Cheap.Energy.Boost” rel=”nofollow”>…

Buygeneric meds svb…

AUSTIN August 16th, 2011 at 12:38 am

Order@Cheap.Accupril” rel=”nofollow”>.

Buynow it fnp…

LEROY August 16th, 2011 at 9:40 pm

Order@Accutane.Online” rel=”nofollow”>…

Buyit now sge…

MARION August 16th, 2011 at 11:47 pm

Order@Discount.Accutane” rel=”nofollow”>.

Buygeneric drugs mby…

JASON August 17th, 2011 at 1:48 am

Purchase@Cheap.Accutane” rel=”nofollow”>…

Buywithout prescription ccw…

RONALD August 18th, 2011 at 12:19 am

Buy@Aciphex.Online” rel=”nofollow”>.

Buygeneric drugs itj…

WENDELL August 18th, 2011 at 10:37 pm

Cheap@Generic.Aciphex” rel=”nofollow”>..

Buyno prescription lka…

LEWIS August 19th, 2011 at 1:06 pm

Order@Acomplia.Online” rel=”nofollow”>.

Buygeneric drugs axm…

REGINALD August 22nd, 2011 at 7:03 am

Order@Actonel.Without.Prescription” rel=”nofollow”>…

Buydrugs without prescription jlg…

GERARD August 22nd, 2011 at 11:14 pm

Order@Advair.Online” rel=”nofollow”>..

Buyit now irl…

EVAN August 24th, 2011 at 2:39 pm

< a href=”http://trig.com/advair5771/biography/?ml=Advair-25mcg/50mcg-25mcg/125mcg-25mcg/250mcg-50mcg/500mcg-50mcg/100mcg-50mcg/250mcg-Without-Prescription Advair@25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg.Without.Pr

Buydrugs without prescription ygy…

JON August 24th, 2011 at 3:59 pm

Buy@Aggrenox.Online” rel=”nofollow”>..

Buygeneric drugs ajd…

WENDELL August 26th, 2011 at 5:02 pm

buy@acai.berry.juice” rel=”nofollow”>..

Buygeneric drugs…

BRYAN August 26th, 2011 at 7:42 pm

accutane@krupnick.class.action” rel=”nofollow”>..

Buynow…

DAN August 27th, 2011 at 6:21 pm

buy@amoxicillin.500mg” rel=”nofollow”>.

Buynow it…

ERIC August 28th, 2011 at 1:02 am

abilify@company.buy” rel=”nofollow”>.

Buywithout prescription…

BRENT August 28th, 2011 at 7:43 am

blue@sky.energy.solar.boost.3048” rel=”nofollow”>…

Buynow it…

RONNIE August 29th, 2011 at 3:24 am

amoxicillin@online.buy” rel=”nofollow”>.

Buygeneric drugs…

FERNANDO August 29th, 2011 at 8:44 am

arimidex@or.nolvadex.steriods” rel=”nofollow”>..

Buywithout prescription…

OLIVER August 29th, 2011 at 12:33 pm

artane@bending.over” rel=”nofollow”>.

Buynow…

(_!_) October 7th, 2011 at 2:40 pm

….

.@Cheap.to.buy.Viagra” rel=”nofollow”>.…

dwayne October 8th, 2011 at 12:52 am

taken@yimtu.twelve” rel=”nofollow”>.

tnx for info :!:…

gene October 9th, 2011 at 8:44 pm

“http://en.visors.ru/?p=3936&lol= north@bwgxs3.jump“>.

спс :!:…

PEDRO October 26th, 2011 at 4:52 pm

what is plavix

Buy_drugs without prescription…

ANDREW October 28th, 2011 at 10:32 am

iv zofran

Buy_drugs without prescription…

MARCUS November 2nd, 2011 at 11:50 pm

hypertension police ma

Buy_drugs without prescription…