mardi 6 septembre 2011

EXPERT ADVISOR MR SCAN


DOCUMENTATION IMPLEMENTATION
VERSION V1.00
ADAPTATION AND SOURCES:
HTTP: / / ARTICLES.MQL4.COM/516HTTP: / / ARTICLES.MQL4.COM/536









 
Review of this document
 
Name Position DateMaxime Rinna editor and developer test + 25/03/2010http://mrinna.free.fr/
Validation of this document
Name Position DateNicolas VITAL + test and design validationhttp://www.trading-automatique.fr/

Mailing List
Name PositionTotal circulation unrestricted


Versions
Nature Date Officer Phase changesMR 1.00 01/25/2010 Creation of document and form php51.1? Adding MR complex in terms csv








Summary


 
1 INTRODUCTION 42 Architecture Overview 52.1 ARCHITECTURE MRSCAN 52.2 Implementation: 62.2.1 Introduction 62.3 DESCRIPTION OF THE EA MR_SCAN 72.4 Generating Source Code 123 USER INTERFACE 19
 
1 IntroductionThe purpose of this paper is to describe the tool MRSCAN available live on the web through the joint effort of Nicolas VITAL http://www.trading-automatique.fr/ With contributions from maxim RINN http://mrinna.free . fr /
The tool is based on the need to obtain a single view in a series of indications from the various UT available.The configuration is done by an Excel file in csv format to make life easier and leave you much room to maneuver.We are going from a simple case and achieve step by step setup and EA.
Rule of thumb:
1) List the conditions that you wish to view2) Setting up Excel to these conditions or parameters3) WWW: MSSCAN launch the form by one of two sites:
 
http://www.trading-automatique.fr/scanv1v1 or http://mrinna.free.fr/scanv14) After generation do: CTRL A, CTRL C5) Open MTA4 scripts in total and paste the code6) After compilation, open a chart and ask the script obtained.7) Caution: Do not set too many lines (maximum 10) memory resources
To get the CSV file template from the Web form, save it to then open Excel and a blank page to open document. Do not open it with Excel or double click please
 
2 Architecture Overview2.1 Architecture MRSCAN

 
2.2 Implementation:
2.2.1 Introduction









2.3 Description of the EA MR_SCANBefore going through the settings in detail, we will see this functionalized EA.
First you have visual access to the gate of UT.Each line corresponds to a search criteria you specified through indicators available MTA4.This center is a summary of totals of different indicators and opportunity (ies).

 
With three MA 12 May 21 for our example:


Description of the grid:

Each term is a condition for the term MA5-12 I want to see a green arrow in case the MA5 is higher than the MA12, and vice versa for the red arrow for each UT.
This gives us the following settings in the csv file:

Save as: using the csv format separated by a semicolon


 
Description of columns:
Denominated A = B = C = condition green arrow red arrow Condition
A = MA5-12
B = WiMAX (Symbol (), period [x], 5,0,0,0,1)> WiMAX (Symbol (), period [x], 12,0,0,0,1)
C = WiMAX (Symbol (), period [x], 5,0,0,0,1) <WiMAX (Symbol (), period [x], 12,0,0,0,1)
Constraint in order to run all Uz it is mandatory to replace the period by the table: period [x] if you do not, it will not work.
The two lines at the top of the grid BUY SELL can accumulate points:When the maximum number of points is an opportunity is present in the center of the screen.When the percentage exceeds 70% point of the term is displayed in yellow.

                                  


In case any of the conditions is true, no arrow is visible QED.
Questions? A yes, you do not know what to match these lines.
Well, what are the indicators available MTA4 you will find at your Meta Publisher:



  
Here is an excerpt from the doc:

We used:
WiMAX (Symbol (), period [x], 5,0,0,0,1)> WiMAX (Symbol (), period [x], 12,0,0,0,1)
Symbol () = instrument targetperiod [x] = specific term and binding the grid takes all Uz5 = Time of calculation of the MA MA5= 0 shift my back or representation (see doc please)0 = calculation method0 = Price calculation= 1 on which the calculation starts candleIn this example I deliberately chose not to take into account the current candle, but only the first spark plug or the previous number 1Another example: the average should climb
          
WiMAX (Symbol (), period [x], 5,0,0,0,1)> WiMAX (Symbol (), period [x], 12,0,0,0,2)
2.4 Code Generation sourcesYou recovered the basic CSV file you are close to a first generation of code.
REMINDER:Caution: Do not set too many lines (not more than 10) because you may fill in memory resourcesThat said I have an old PC myself. Although there were going towards
http://mrinna.free.fr/scanv1 or http://www.trading-automatique.fr/scanv1





Use the Browse button and get your csv file.

Once selected, use:
The page that represents the'm MQL4 code you need to compile.
You will get a CTRL A / C CTRL all lines and then on the Etiteur MTA4 copy of the whole.

 
The first part of the code allows you a final check before compilation.
In the case of an error, do not panic you n'avec's again;)
WARNING: do not forget the mandatory term: period [x]
/ / Start playback of your settings in csv format:/ / The three fields of line 1 are:/ / MA5-12/ / WiMAX (Symbol (), period [x], 5,0,0,0,1)> WiMAX (Symbol (), period [x], 12,0,0,0,1)/ / WiMAX (Symbol (), period [x], 5,0,0,0,1) <WiMAX (Symbol (), period [x], 12,0,0,0,1)/ / The three fields of line 2 are:/ / MA12-21/ / WiMAX (Symbol (), period [x], 12,0,0,0,1)> WiMAX (Symbol (), period [x], 21,0,0,0,1)/ / WiMAX (Symbol (), period [x], 12,0,0,0,1) <WiMAX (Symbol (), period [x], 21,0,0,0,1)/ / The three fields in line 3 are:/ / RSI 50/ / IRSI (Symbol (), period [x], 14, PRICE_CLOSE, 1)> 50/ / IRSI (Symbol (), period [x], 14, PRICE_CLOSE, 1) <50/ / The three fields in line 4 are:/ / ICC 0/ / PCS (Symbol (), period [x], 12, PRICE_TYPICAL, 1)> 0/ / PCS (Symbol (), period [x], 12, PRICE_TYPICAL, 1) <0/ / The three fields in line 5 are:/ / MACD/ / IMACD (Symbol (), period [x], 12,26,9, PRICE_CLOSE, MODE_MAIN, 1)> iMACD (Symbol (), period [x], 12,26,9, PRICE_CLOSE, MODE_SIGNAL, 1)/ / IMACD (Symbol (), period [x], 12,26,9, PRICE_CLOSE, MODE_MAIN, 1) <iMACD (Symbol (), period [x], 12,26,9, PRICE_CLOSE, MODE_SIGNAL, 1)/ / End of csv reading:/ / Double-check your settings before compiling please
the code that follows is your MQL4 scripts see Annex 1 for details
//------------------------------------------------ -------------------+/ / | Automatic Generation MQL4 with php5: www.mrinna.free.fr |/ / | Made available on the web by Rinne Maxime |//+----------------------------------------------- -------------------+# Property copyright "Maxime RINN 2010"# Property link "http://mrinna.free.fr/"//------------------------------------------------ ---------------# Property show_inputs# Include <WinUser32.mqh>extern int scaleX = 25;scaleY extern int = 25;extern int offsetX = 100;offsetY extern int = 20;extern int fontSize = 10;extern int corner = 2;extern int tableauxCodeBuy = 233;extern int tableauxCodeSell = 234;


So with you in your clipboard code after CTRL A / C CTRLYou are close to the V CTRL ouf
Open your Terminal and run the MTA4 Publisher
Under MTA4 you with a yellow button

Once opened you can create a script: in our case: monscan.mq4



You should be in this situation: monscan.mql4 open and empty your clipboard closely.

This is the moment of truth: Ctrl V and then compiled.
 
In case you encounter a compilation errorcheck your csv file and the previous steps.The term O errors, 0 warnings is a good sign;)Last steps use this script,
The notion of script can not scan continuously but only at launch.
So depending on the selected UT restart once before taking a position.
Back to your Terminal MTA4
Open a graphic on the instrument of your choice

At your sidebar you have at your disposal your scripts monscan.mq4Double click on the scripts (the first launch is a bit long), made of same for other instruments


 


 
3 User InterfaceThe interface is primarily composed of position offset that is not to change.
The only interesting parameter is the pivot and the choice of UTs
Depending on the number of points scored you can select from the pivot opportunity.
The choice of Uz is possible in case you're used to working 1H M30, it is not useful to the other treated UT. (False for disabled)
You can replace the arrow with something else.
extern int pivot = 5;extern bool selM1 = true;extern bool selM5 = true;extern bool selM15 = true;extern bool selM30 = true;extern bool selH1 = true;extern bool selH4 = true;extern bool selD1 = true;extern bool selW1 = true;extern bool selMN1 = true;extern int tableauxCodeBuy = 233;extern int tableauxCodeSell = 234;tableauxCodeNooblabel extern int = 32;extern int tableauxCodeOK = 111;



You can also change the colors:
extern oblabelBuyColor color = Green;extern oblabelSellColor color = Red;extern color = nooblabelColor WhiteSmoke;extern color textColor = White;


You can view only the central part of the opportunities without the grid graph.
extern bool optionaff = true / / false to the grid without the grid


 
UNFINISHED BUSINESS:According to the returns on this tool, I will continue to be low on the Panel for Trader MTA5 with the same external file csv principle for setting colors.
See link: http://www.mql5.com/en/code/68

Aucun commentaire:

Enregistrer un commentaire