Cannot retrieve MMR

Moderator: admin

Cannot retrieve MMR

Postby TakisGen » Sun May 29, 2011 11:28 am

Hi,

local mmr=core.host:findTable("offers"):find("Instrument", instrument).MMR
returns zero (no error). Other properties (Ask, Bid, PipCost) are returned correctly.

Am i doing something wrong?

Regards
Takis

EDIT: above is true when calling within Prepare() function. Calling within the Update() function it works properly.
Last edited by TakisGen on Fri Jun 03, 2011 4:08 pm, edited 1 time in total.
TakisGen
 
Posts: 34
Joined: Sat May 28, 2011 10:09 am

Re: Cannot retrieve MMR

Postby Nikolay.Gekht » Mon May 30, 2011 8:38 am

Looks like the defect in Marketscope. I reported it to the developers.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Cannot retrieve MMR

Postby TakisGen » Tue Jun 07, 2011 4:06 pm

ok, finally i know what is happening with MMR :?

Order2Go says EUR/USD 100
Platform says EUR/USD 50
SDK says EUR/USD 0
SDK gives EUR/USD 50 at US session close. After that (logout/login) it forgets it.

Regards
Takis
TakisGen
 
Posts: 34
Joined: Sat May 28, 2011 10:09 am

Re: Cannot retrieve MMR

Postby sunshine » Wed Jun 08, 2011 6:44 am

TakisGen wrote:ok, finally i know what is happening with MMR :?

Order2Go says EUR/USD 100
Platform says EUR/USD 50

In case you have a number of accounts, each account can have own MMR.
When you receive MMR from the Offers table, you receive the smallest MMR.
To get MMR for a certain account and instrument, you should use the method TradingSettingsProviderAut.GetMMR

TakisGen wrote:SDK says EUR/USD 0
SDK gives EUR/USD 50 at US session close. After that (logout/login) it forgets it.

The issue will be fixed in the nearest release.
Thanks for the report.
sunshine
 


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 72 guests