MQL4 Script: Fetch a CSV value from a URL

MQL4 Komut dosyaları

İş Gereklilikleri

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.

 

 

  

 

  

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(26)
Projeler
34
29%
Arabuluculuk
0
Süresi dolmuş
1
3%
Serbest
2
Geliştirici 2
Derecelendirme
(550)
Projeler
827
73%
Arabuluculuk
15
53% / 13%
Süresi dolmuş
193
23%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(26)
Projeler
29
3%
Arabuluculuk
11
9% / 73%
Süresi dolmuş
3
10%
Serbest
4
Geliştirici 4
Derecelendirme
(806)
Projeler
1379
72%
Arabuluculuk
113
28% / 48%
Süresi dolmuş
343
25%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(66)
Projeler
95
28%
Arabuluculuk
20
25% / 55%
Süresi dolmuş
24
25%
Serbest
6
Geliştirici 6
Derecelendirme
(47)
Projeler
140
49%
Arabuluculuk
9
56% / 0%
Süresi dolmuş
27
19%
Serbest
7
Geliştirici 7
Derecelendirme
(28)
Projeler
36
17%
Arabuluculuk
5
20% / 40%
Süresi dolmuş
17
47%
Serbest
8
Geliştirici 8
Derecelendirme
(49)
Projeler
134
27%
Arabuluculuk
62
13% / 53%
Süresi dolmuş
58
43%
Serbest
9
Geliştirici 9
Derecelendirme
(1)
Projeler
4
25%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
25%
Serbest
10
Geliştirici 10
Derecelendirme
(62)
Projeler
140
46%
Arabuluculuk
19
42% / 16%
Süresi dolmuş
32
23%
Serbest
11
Geliştirici 11
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
40 - 50 USD
Geliştirici için
36 - 45 USD
Son teslim tarihi
from 1 to 2 gün