MQL4 Script: Fetch a CSV value from a URL

MQL4 脚本

指定

I need a script which fetches a value from a website URL, and then makes that fetched value available within the script to be compared against another manually typed in value. 

The value is found here:

https://www.quandl.com/data/FRED/PAYEMS-All-Employees-Total-nonfarm

 

The value can be fetched using the below URL:  

https://www.quandl.com/api/v3/datasets/FRED/PAYEMS.csv?exclude_column_names=true&rows=1&api_key=my_api_key

 A value of 2016-08-01, 144598.0 is returned. 

 

Once the value of [2016-08-01, 144598.0] has been fetched from the URL, I need to be able to compare it against another number which I will manually type in. 

I will be comparing the values using if and else statements, which would look something like this: 

 

void OnStart()
{

... //  code which fetches the value of 2016-08-01, 144598.0 from the .csv URL

double x = 155876.0     // value manually TYPED IN by myself
       y = 144598.0     // VALUE FETCHED FROM THE .CSV URL
                        // ignore column 1 consisting of 2016-08-01
   if ( x > y ) {

                        // executes code which I have already written

} 

else { 

                        // execute other code which I have already written

}

}


Ideally, if anyone can make it so that the date column of [2016-08-01] was ignored, that would be helpful as I only want to compare the numerical value of [144598.0] with another typed in value.

 

 

  

 

  

反馈

1
开发者 1
等级
(26)
项目
34
29%
仲裁
0
逾期
1
3%
空闲
2
开发者 2
等级
(550)
项目
827
73%
仲裁
15
53% / 13%
逾期
193
23%
工作中
3
开发者 3
等级
(26)
项目
29
3%
仲裁
11
9% / 73%
逾期
3
10%
空闲
4
开发者 4
等级
(806)
项目
1379
72%
仲裁
113
28% / 48%
逾期
343
25%
工作中
5
开发者 5
等级
(66)
项目
95
28%
仲裁
20
25% / 55%
逾期
24
25%
空闲
6
开发者 6
等级
(47)
项目
140
49%
仲裁
9
56% / 0%
逾期
27
19%
空闲
7
开发者 7
等级
(28)
项目
36
17%
仲裁
5
20% / 40%
逾期
17
47%
空闲
8
开发者 8
等级
(49)
项目
134
27%
仲裁
62
13% / 53%
逾期
58
43%
空闲
9
开发者 9
等级
(1)
项目
4
25%
仲裁
1
0% / 100%
逾期
1
25%
空闲
10
开发者 10
等级
(62)
项目
140
46%
仲裁
19
42% / 16%
逾期
32
23%
空闲
11
开发者 11
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
相似订单
I need a Professional who can take my think or swim script and convert it to an equivalent ninja script indicator. i want it to function exactly in ninja as it does for TOS. end product should be an indicator with all the code visible that I can load onto my chart and I should see it performing live exactly the same way it does on TOS
Formal Software Request Software Title: High-Performance Automated Trading System Requestor: 80485848 Date: 19 August 2024 1. Introduction We seek a sophisticated automated trading system capable of executing trades across Forex, Gold, and Cryptocurrency markets. The primary objective is to achieve a high win rate while operating autonomously. 2. Core Requirements Win Rate: The system must demonstrate a
Hi, I have a Compiled JForex strategy (.jfx file) I would like someone to convert it in to readable source code. Please let me know if you can do this task. Thank you

项目信息

预算
40 - 50 USD
开发人员
36 - 45 USD
截止日期
 1  2 天