FXDD metatrader do not function properly?

 

HI ,

I write a program with "Alpari metatrader". After I confirm it work with "Alpari metatrader". I put into "FXDD Metatrader", but the program can not function as it was in "Alpari Metatrader".

The code which do not function properly is :

int spread;

spread=MarketInfo("GBPUSD",MODE_SPREAD);

It does not show the spread. The spread return is Zero, which is impossible.

Anyone can help?

 
FXfish:
HI ,

I write a program with "Alpari metatrader". After I confirm it work with "Alpari metatrader". I put into "FXDD Metatrader", but the program can not function as it was in "Alpari Metatrader".

The code which do not function properly is :

int spread;

spread=MarketInfo("GBPUSD",MODE_SPREAD);

It does not show the spread. The spread return is Zero, which is impossible.

Anyone can help?

It should work. May be fxdd is changing the spread all the time ...

 

I Use fadd demo plaform to try on the EA. It do not work. I do not know what go wrong. Even change spread, it still neeed to should someting , instead just show zero spread.

 

why don't you check the symbol properties

but this used to occur with IBFX too

when i checked the properties it shows spread =0

regard ^_^

then i use this function instead

int spread = MathRound((Ask-Bid)/Point);

it works with every server

Reason: