Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.03.09 06:59
Scripts

HTTP using WinINet directly in mql4 - script for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
8771
Rating:
votes: 3
TestHTTP.mq4 (1.8 KB)view

Author: mapick


This is a "conceptual" script I developed to test the WinINet functions to load a HTTP page directly from mql4

The code imports the wininet.dll original windows library, then it calls all the needed functions, as stated in MSDN documentation, simply translating the mql data types:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa383630(v=vs.85).aspx

You have only to run the script on a chart, and you'll see a MessageBox with the http://mql4.com html page

I used this code in one of my EA, to upload a set of signals from my ASP.NET site, calling a page that send the data file

This is the simple C# asp.net page code to send the file:

f (File.Exists(@ "C:\ ... my data directory .... \signs.csv" ))

{

Response.TransmitFile(@"C:\ ... my data directory .... \signs.csv");

Response.Flush();

Response.End();

}

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Holt's double exponential smoothing trend Holt's double exponential smoothing trend

Holt's double exponential smoothing - the trend component (mt4 version).

Holt's double exponential smoothing (mt4 version) Holt's double exponential smoothing (mt4 version)

Holt's double exponential smoothing with linear forecasting.