Questions tagged [mql]

For questions related to Freebase's Metaweb Query Language. Please use MQL4 and MQL5 for questions related to FOREX MetaTrader Terminal platform MetaQuotes Language.

Disambiguation was needed, as the MQL tag is, unfortunately, used for two different things:

  1. The Metaweb Query Language which is a JSON query-by-example style language used to query Google's Freebase.com

  2. MetaTrader Terminal platform programming language developed at MetaQuotes, Inc., under a code name MQL4 and MQL5 programming language. These compiled, c-like languages are used for complex control of the MetaTrader Terminal software used in Terminal/Server relation for foreign exchange trading, derivatives trading and commodities trading.

Most, but not all, StackOverflow questions relate to the first context of use.

For the sake of the second, rather use MQL4 or MQL5 respectively.

281 questions
0
votes
3 answers

How to use left curly bracket and right curly bracket in string map in tcl

I am trying to use string map function in my script. I have a attribute whose value looks like below: {{1234||}{2345||}} I want to replace all the opening curly bracket with blank char and ||} with comma ,. How can i use map function? How to…
0
votes
1 answer

How to NOT get pending Stop executed if closure fails "Modification is prohibited. The order is too close to the market."?

Sometimes, particular in volatile markets, it happens that either after first or multiple attempts of Pending Stop order closure (stop buy or stop sell), I get error message "Modification is prohibited. The order is too close to the market." which…
Andrew0
  • 1
  • 5
0
votes
1 answer

How can I set background color per tick by MQL4?

How can I set background color per tick like following by MQL4? I couldn't find in documentation. https://mt4trader.net/wp-content/uploads/2015-08-17_hikinashibg.jpg
naohide_a
  • 1,116
  • 2
  • 13
  • 30
0
votes
2 answers

New MQL5 calendar functions - no values?

I can't seem to get any economic event values with MQL5's new calendar functions (see https://www.metatrader5.com/en/releasenotes). Specifically... MqlCalendarValue value[9999999]; ulong changeID=33212160; int OnInit() { …
Pingui
  • 1,312
  • 4
  • 15
  • 28
0
votes
1 answer

Volume Returns incorrect value MQL

I want to get the real "Trading Volume" for a specific Bar but the return value of volume function and iRealVolume function are both quiet different from what i am seeing on the chart when clicking the indicators of volume in the main page. for…
user3786134
  • 361
  • 1
  • 6
  • 21
0
votes
3 answers

Is there any Mql command to print the connection between two admin objects?

In Enovia Mql, if we want to print the details of a connection between a person and its company object what is the command. For Ex: Business objects can be explored using "Expand", similarly what is the way for Admin Objects?
J M
  • 77
  • 12
0
votes
2 answers

MQL4 Pending Order error # 130

I am getting Error: EURUSD,H4: OrderSend failed with error #130 Experts Please guide where I am making mistake? void OnTick() { H1EMAprev = NormalizeDouble(iMA(NULL,PERIOD_H1,14,0,MODE_EMA,PRICE_CLOSE,1), 5); H4EMAprev =…
Kumail
  • 51
  • 1
  • 11
0
votes
1 answer

How to MQL query string into Tranlated URL?

http://api.geoapi.com/v1/q My query: {"lat": 37.75629, "lon": -122.4213, "radius": "1km", "entity": [{"type": "business", "guid":…
David
  • 2,103
  • 3
  • 21
  • 29
0
votes
3 answers

How To Escape Characters When Reading JSON

I need to write out all the variables in this JSON response: "result": { "\/common\/topic\/weblink": [ { "url": "http:\/\/www.boardgamegeek.com\/boardgame\/13", "description": "BoardGameGeek" } ], "id":…
Will Curran
  • 6,959
  • 15
  • 59
  • 92
0
votes
1 answer

Freebase Query Limit

I have been trying to query freebase (on freebase.com) for all instances of /organization/organization [{ "type": "/organization/organization", "name": null, "mid": null, "limit": 1,000,000 }] but no matter how much limit i put I get…
0
votes
1 answer

How to return a list of married people using MQL query

I'm quite new with freebase, and I was wondering if it's possible to use a query to return people who are married. I've looked at alot of the properties I could use in freebase, but they only show how to find people married to a specific person.…
Andrew Brick
  • 276
  • 2
  • 4
  • 18
0
votes
1 answer

File not found error for sample program in Java on Freebase API documentation

I am trying the sample program in Java given here in the Freebase documentation. Here is the program import com.google.api.client.http.GenericUrl; import com.google.api.client.http.HttpRequest; import…
Rajesh Surana
  • 883
  • 1
  • 10
  • 15
0
votes
1 answer

Request specific properties from Google Freebase Topic API

I'd like to query only specific properties like "/common/topic/description", "/common/topic/image" and "/common/topic/notable_for" of a certain topic. It would be even better if I could request those properties for several topics at once. Or does it…
AndrewSokolowski
  • 673
  • 1
  • 5
  • 8
0
votes
1 answer

How can i search a company's name by a specified product on freebase?

I tried a MQL to search "Microsoft Corporation" as below: [{ "name": "Windows Vista Home Basic", "type": "/business/consumer_product", "/business/consumer_product/company": null }] It's showed: { "result": [{ …
Maiair Bo
  • 1
  • 2
0
votes
1 answer

Execute Multiple Queries into single call onto Freebase

I want to get the results of multiple queries into single call onto freebase,which is there in this chapter http://mql.freebaseapps.com/ch04.html. I am using python for querying. I want to query like this { #…
Gunjan
  • 2,775
  • 27
  • 30