Home

MetaTrader 4 and MetaEditor

image

Contents

1. ienes i i bb doo Sb ec occa cc ges cE a R a Lo O R oot occ T E E A P sce aee 1 28675 i i i i i i i i i i i i Auto Arrange Ctrl 4 sates Aci fe Sam a ad Sd eda dP ea eine J ah a a TE pasate Er R n ar p 128410 Grid Ch G Or a a a E S E EEES EA d i E E 1 28145 ORD 0S a mia an oe oe dadada d d en ee ee 2 oe eee ee ag oaa a O A d A aaia Daodi Volumes Ctrl L PNA A a l e occ E ckae esc ale Bee ec A wasescce BAE NE ase eS os ree 1 27880 Zoom In ses i i ee eee ee ee eee ee eect bat tee a a A od he Se Save As Picture Whi duh tt ptt Lopes i a Print Preview i PE EE T E E E E EAE E ERN AE EEEE i l E BRERA EN a E A a RR A EE ET i i i i i Saal Print Ctrl P i i i i ere EPEN A E Cree O E Sere S OR o S O gh E T i i i i Properties FS i i i i i i i i i ERCE te ee eee en nn ee eee eee 1 26555 i i i i i i i i i i i pvecebvete dee ceckhocesd ec acdasceclssced becedovesc est lt beese Uecsesued uyl AR GE abel Gocec i aceedeceesbccwstcestdcde cob eeecde tee deceecbee sete cee 1 26290 i i i i i i i i i i i i i i i i i i i i I U I I I I i I I U
2. i ee ee ee et ee In the Confirmations and Settings window you can check one of three settings Confirm quick buy and quick sell Displays the confirmation message that appears when you click Sell or Buy in the Mini Terminal windows Confirm close all for symbols Displays the confirmation message when you click xe and select Close Non hedging mode Places the MetaTrader 4 software in non hedging mode This should always remain checked If you unselect non hedging the positions and orders that you hold in MetaTrader may not match your true orders Please remember that the equity value displayed in the online trading application is the most accurate and legally binding You should rely on this value when you are trading If you have questions about the difference between the two platforms contact us 160 Customising the Appearance of the Chart Window You can change the setup of the chart window by right clicking in the chart and selecting Properties from the drop down menu This opens the Chart Properties window Properties of EURUSD H4 Colors Common C Offline chart Bar chart Chart on foreground Candlesticks Chart shift Line chart Chart autoscroll Show OHLC Show Ask line Scale fix One to One Scale fix 1 41800 Fixed maximum Show period separators Show grid C Show volumes 1 36850 Fixed minimum Show object descriptions This window organises the various
3. EURTAY 1 5885 1 95912 Y EURUSO 1 37 1 37 amp Clotions EE Bk Ps Symbols MT4 Powered by BT HA gimda i paii a F indicators SS Expert Advisors e eS Moving a M Custom Ind Michal Erier t scripts 3 Delete Delale Athech bo a chai a Creaa inset te Add to favontes Set hotkey b gt Oii P2100 ICOM 13 Cet 1200 MOM 1 OOOO 19 Oecd Ger 1600 FOR ONND FS Oct ON 26 Oct 1200 Common Fasor USH HA USD He Time From Headbre Ea 2010 10 25 1 15 MT4 Powered by BT Registration ES 2007009 25 16 00 Mid Powered by BT What Is Automated Trading E 2007 05 25 1258 MT4 Powered by BT Mobile Trading t s Easy 2007 09 25 15 56 MT4 Powered by BT Welcome MetaGuotes Language Editor Def ui ei SS kb e Click the MetaEditor button in the toolbar 99 e Right click on an indicator expert advisor custom indicator or script and select Create Modify or Online Library e Click Tools and select MetaQuotes Language Editor from the drop down menu If you do not have MetaTrader open you can open MetaEditor by clicking the Start menu on your computer clicking the MetaTrader folder and clicking MetaEditor MetaEditor uses the same login as MetaTrader Viewing the MetaEditor Workspace The MetaEditor workspace contains all the features you need to create MetaTrader autotrading tools such as expert advisors custom indicators scripts and libraries gt Metakditor MACD Sample mq4 a Fi
4. a Basics a Standard constants a Predefined variables a Program Run x 8 ae Q s Errors Findin Files Online Library Help For Help press lt F1 gt wd Q Home f Previous Sync 4 Next MoL4 com Seles X O A om G config O files H include 2 indicators O libraries O logs fem presets H E samples fm scripts H templates MATRIXDoubleZero mq4 earlyBird3 ma4 e Easiest ever mq hardprofit ma4 9 MACD Sample maq4 e Make Some Money mgg 3 Moving Average 2 mq4 take profit mg4 E E Dictionary Search MetaQuotes Language 4 MQL4 is a new built in language for programming of trading strategies This language allows to create your own Expert Advisors that make trading management automated and are perfectly suitable for implementing of one s own trade strategies Besides one can use MQL4 for creation of one s own Custom Indicators Scripts and Libraries You can start learning the language using Sergey Ln 1 Col 1 You can download existing autotrading tools using the Toolbox or create them using the Expert Advisors wizard See Section 5 Using MetaTrader s Autotrading Tools for more information The source code is displayed in a basic text file Once opened you can copy and paste lines of code into the file or enter the code manually if you are familiar with MQL4 You can open more than one autotrading tool file at a time and switch bet
5. 5 If you need to edit another custom indicator select it click Edit and repeat the steps above 6 When done click Close AN You can also remove custom indicators from the chart using the Indicators List In the Indicators window select the indicator you want to remove and click Delete Creating a Script You can create a new script by right clicking on the Scripts menu in the Navigator window and selecting Create Mavigator A MT4 Powered by BT gy Accounts J F Indicators l Expert Advisors a EA Custom Indicators g Set hotkey Ondine library This opens MetakEditor an application installed with MetaTrader that develops autotrading tools and displays the Expert Advisor wizard Expert Advisor Wizard Welcome to Expert Advisor Wizard MG d 4 Please select what you would like to create Expert Advisor Custom Indicator Library Include MQH Generate from template To continue click Next The wizard helps you specify which type of script you want and name the file 139 Expert Advisor Wizard General properties of the Script program Please specify general properties of the Script program Name Example Script Author Joe Trader Link http Hany joetrader com E Parameters Name Type Initial value When you click Finish the wizard closes and opens a text file so you can view and edit the code You can
6. AN The settings you specify here will be used whenever you open a new chart window If you change any settings on this tab it will not affect individual chart settings you may have already specified on the Common tab of the Chart Properties windows Customising Object Properties on the Chart The Objects tab in the Options window displays the settings for objects such as line studies technical indicators and drawing items that appear in the chart window Options Server Charts Objects Trade Expert Advisors Email Publisher Events Show properties after creation Select object after creation Select object by single mouse click Magnet sensitivity 10 w pixels The Show Properties After Creation checkbox displays the edit window immediately after you draw an object That way you can specify settings for the object When not checked MetaTrader configures your drawings with the current settings The Select Objects after Creation checkbox allows you to specify if you want the object you ve just drawn to appear in the chart window When not checked the last selected item remains active The Select Objects by a Single Mouse Click checkbox allows you to click once on an object to select it When not checked you need to double click on an object to select it 167 The Magnet Sensitivity drop down menu automatically places objects that you ve drawn a certain number of pixels from an open close high or low
7. RZ Refresh Load Template Sig Remove Template gt Suto Arrange Ctrl A Grid Ctrl G ADX Yolun Ctrl L BollingerB ands Dinapoli Zoom In Layers Momentum Popular Zoom Out Save As Picture Print Preview Stuff Print Ctrl P Volume Properties F8 Williams 16 Aug 2010 17 Aug 08 00 18 Aug 16 00 20 Aug 00 00 23 Aug 10 00 244ug 18 00 26 Aug 02 00 27 Aug 10 00 30 Aug 20 00 1S5ep 04 00 2 Sep 12 00 MetaTrader includes a number of already existing templates which you can select by right clicking in the chart window and selecting Template From the drop down menu select one of the listed templates The chart window updates immediately If you ve used MetaTrader before and have template tpl files you can import these by placing them in the Templates folder on your computer You can then import template files in MetaTrader using the Load Template menu option You may notice the default tpl in the Templates folder This is a basic template that is created during the MetaTrader installation and applied automatically whenever the chart window is opened While you can edit this file you cannot save over it You can save the contents of the chart window as a template or save changes you ve made to an existing template by using the Save Template menu option Once saved the template appears by name in the list of templates Loading a Template in the Chart 1 In the chart right click and selec
8. 6 Click the Source drop down menu and select an alert If you selected Sound you can also click LJ select the file you want and click Open if desired 7 If desired click the Timeout drop down menu and select a time If desired click the Maximum Iteration and select a number 9 Click OK a Symbol Condition Counter Limit Timeout Event B eurus lears 0 1000 osecao raram A GBPUSD Bid gt 1 55930 0 1000 10sec alert By Modify Entar amp GBPUSD Bid lt 83 50000 2 1000 10sec alert amp Delete Delete A GBPUSD Ask gt 1 60000 0 1000 10sec alert amp Enable On Off Space Auto Arrange A Grid G Trade Account History News Mailbox Experts Journal When an alert is set it appears in the Alerts tab You can see how many times the alert has sounded in the Counter column Once you ve created an alert you can right click in the chart window and access other menu options e Modify reopens the alert in Alert Editor so you can edit it e Delete immediately removes the alert from the chart and the Terminal tab 51 e Enable On Off allows you to turn the alert on or off When enabled the alert will display this icon in its row When disabled it will display this icon D Setting Account Alarms Trade Terminal You can set an alarm to notify you when the account balances listed in the Account Info section of the Trade Terminal rise or fall When they do you can choose to have MetaTrader close
9. The Navigator Window You ll use the Navigator window to view code files You can use these to research how an autotrading tool works or to copy and paste existing code into a new autotrading tool The Navigator window organises these over three tabs gt MetaEditor rotate_text mq4 ie File Edit View Tools Window Help G es Bl o gt Bl a gt gt Compile Terminal rotate_text mq4 stdlib mq rotate text mqa4 Copyright 2004 MetaQuotes Software Corp http uww metaquotes f property copyright Copyright 2004 MetaQuotes Software Corp property link http uuw metaquotes net include lt stdlib mah gt string line name rotating line string object _namel rotating text void init Print point Point bars Bars void deinit ObjectDelete line name ObjectDelete object namel ObjectsRedraw i Script program start function int starti t om G config files 3 include O indicators libraries O logs B presets H samples B scripts templates MATRIXDoubleZero mq4 earlyBird3 maq4 e Easiest ever mq S hardprofit mq4 MACD Sample maq4 e Make Some Money mg4 3 Moving Average 2 mqt S take profit mq4 H H t be l v Files Dictionary Search Back gp Forward Home oft Previous Sync SB Next MoL4 com MQL4 Referenc
10. ioe MetaTrader 4 and MetaEditor User Manual Version 1 2 2012 Global Futures and Forex Ltd All rights reserved Table of Contents Welcome to the MetaTrader and MetaEditor User Manual cccccccecceeeseeeeeneeeeeens 4 Section 1 Opening MetaTrader for the First Time ccccccccccsecceeeeaeeeeeeeeeeeaeeeaeeeaeeeaees 5 Viewing the MetaTrader Workspace ccccecceecceeeeeeceeeseeceeeaeeeeeeseeeeeeseeseeeseeeaeeseeseeas 5 THE MONU SAR od E ve cagausateme sna tearaeue te 6 MetaTrader OOD ANS crisis cesecmadcanenied ei accinecucdiivucunhediezndncateiesiss yl eunspieasacetntdetcouehioremaeedeendieadeds 6 Market Watch Quote BOaid cccccccceccsecceeeeseeeseeeeeeecueesuecauecsuecsaeesueesueseuessuesaeesseesaaes 7 The Navigator Window ccccccccsecceecseeceeeeeece cesses eeeeeeeeeeeeceeeeeeseeeseeseeeaeeseeeaeeseeeaeegees 10 TN MI E teen bene ope E siete A men T acer AN A AE 12 CONO eee ee ee uncer E re ee ee ee eee 12 The Mini Terminal catecsdsncrettacnucaanesceteadeaiuedeuosan e EATE E RA 14 Trado TONNA eene E E E E E E 16 The Terminal WiNdoW ccccccceccescceeceeeceeceeeceeseecceesuecseesueeauesaeeceesaesseesaeesensensasesass 17 The Data Window sesasine pneri ren E ERN ENE EEE EEEE EEEE ENTER 19 EOY TOSO ae E T E E denne E EN 20 Section 2 Opening and Managing Your Trades cccceccceeeseeeceeeeeeeseeeseeeeeeeseeeaeeeaes 21 Available Order Types in MetaTrad
11. Variable colort color color3 color4 On the Inputs tab you can view the variables used to calculate the custom indicator The variables are specific to the custom indicator you selected You can change the variable values by double clicking in the variable row 136 Custom Indicator Heiken Ashi ee Common Inputs Colors Visualization H Color Width Style 0 E Red Jle 0 1 White 1 0 2 Red 3 QJ On the Colours tab you can modify the line colour of the custom indicator by double clicking on the colour and selecting a new one from the drop down menu You can also specify line width on a scale of one to five by double clicking on the Width row and selecting a new one from the drop down menu that appears If you select a line width of one you can also specify whether the line appears as solid or dotted by double clicking on the Style row and selecting a new one from the drop down menu that appears If your custom indicator appears outside of the chart you will see a Levels tab You can use this to add a horizontal line at a particular level in the indicator Click Add to add a horizontal line and use the Style drop down menus to specify a colour line style and line thickness You can add one or more lines to the indicator window To remove lines select a line and click Delete Custom Indicator Heiken Ashi EEEEeeeeeee Common Inputs Colors Visualization All timefram
12. ee ee ee eseaeaeotaasesadawaaacaetaaaenthtaaeaedavsaovsotoeewnseothtaaaadaavanstaacaechbaaaadaacevnobeawehbasawadaaaaetaaacahbaawadaacvaeetawevlhaa GR Pc ea acetaaceaohbaaawadesanvaeobtbeaaaeacthbaaaad 64ug 2010 9 Aug 15 00 10 Aug 23 00 12 Aug 07 00 13 Aug 15 00 17 Aug 01 00 18 Aug 09 00 19 Aug 17 00 23 Aug 03 00 244ug 11 00 25 Aug 19 00 27 Aug 03 00 30 Aug 13 00 k There are several ways to open the chart window e Right click an instrument in the Market Watch quote board and select Chart Window e Click an instrument in the Market Watch quote board and drag it into the MetaTrader main window area e Click New Chart in the File menu and select the instrument you want e Click New Window in the Window menu and select the instrument you want e Click the Chart Window button in certain windows Click in the Chart toolbar 54 You can open up to 99 charts at one time and switch between them by clicking on the instrument chart tab at the bottom of the chart window When you open a chart MetaTrader displays the available price history for that chart The amount of time shown depends on the time frame you selected and the settings in the Charts tab See Specifying Chart and History Data Properties in Section 7 Customising the Appearance and Settings in MetaTrader for more information Opening Charts Offline S
13. lt y i 0 a sell 81 285 Open and pending orders Close 5pips Close X Toos 7 OCA Z 10pips 7 Sa we Partial close gt 45 vi Ticket All orders gt pips 20138 Selected orders p sL b 20pips 20138022 7 ae TP gt 25pips 20138023 PAS EURUSD Trailing stop gt 30pips 20138025 a Break even exit 50pips 20138032 4 EURUSD Automated close p 100 pips To select an order or position click its row To select a series of rows press the SHIFT key and click the first and last rows To select several rows not in a series press the CTRL key and click in the rows that you want You can then select the type of order you want e Close immediately cancels the order or exits the position e Partial Close allows you to select a percentage that MetaTrader will use to close your position Partial Close depends on the lot size on your account and MetaTrader will automatically round down to the nearest lot size permitted e L and T P allow you to select a pip value away from your entry price for your stop or limit You can also choose o Break even places the value for your stop or limit at the selected position s entry price o Fixed Price opens a window where you can specify a price o None removes an existing stop or limit from an order or position e Trailing Stop allows you to select a pip value for the stop to trail your order You can also se
14. o_o Click View and select Strategy Tester N Select the expert advisor you want from the Expert Advisor drop down menu 3 Click Expert Properties and specify the settings you want on the three tabs Click OK when done If desired click Modify Expert and modify the expert advisor Select an instrument from the Symbol drop down menu Select the time frame you want from the Period drop down menu 4 5 6 7 Select Every Tick Control Point or Open Prices Only from the Model drop down menu 8 Ifyou are optimising check Optimisation 9 If desired check Visual Mode or check Use Date and select a date range 1 0 Click Start Viewing the Results of the Expert Advisor Test After the test has been completed you can see the results of the test in Results Graph Report and Journal tabs of the Strategy Tester window Time Type Order Size Price SL TP Profit Balance 2010 09 01 00 39 sell 1 0 10 0 89155 0 89105 E 2010 09 01 03 34 close 1 0 10 0 89962 0 89105 80 70 9919 30 2010 09 01 03 34 buy Z 0 10 0 59963 0 90013 2010 09 01 03 50 close 2 0 10 0 89924 0 90013 3 90 3915 40 2010 09 01 03 50 sell 3 0 10 0 89920 0 89870 2010 09 01 04 04 close 3 0 10 0 59945 0 89870 2 50 3912 90 2010 09 01 04 06 buy 4 0 10 0 89950 0 90000 2010 09 01 05 17 close 4 0 10 0 59553 0 90000 9 70 3903 20 2010 09 01 05 42 buy 5 0 10 0 89593 0 89943 Graph Report Journal The Results tab displays a table that
15. 10 00 Long positions won o 12 58 33 Profit trades of total 8 36 36 Loss trades of total 14 63 64 Largest profit trade 5 00 loss trade 80 70 Average profit trade 4 06 loss trade 10 89 Maximum consecutive wins profit in money 2 10 00 consecutive losses loss in money 7 28 50 Maximal consecutive profit count of wins 10 00 2 consecutive loss count of losses 96 80 4 Average consecutive wins 2 consecutive losses 3 Settings Results Graph Journal The Report tab displays statistics about how the test was performed Bars in Test displays the number of bars that appeared in the history data Ticks Modelled shows the number of ticks that were used in the test Modelling Quality displays the quality of ticks modelled during testing with a percentage and a colour band A gray band shows if a date range was specified in the testing settings A red band shows that modelling was not performed on a portion of the time frame During that part of the test only data of the time frame selected in the testing settings were used A green band shows that modelling was performed The shade of green becomes brighter as the modelling quality gets higher Initial Deposit shows the amount of your initial deposit Total Net Profit displays the result of all trades In this row you can also view the Gross Profit or the sum of all profitable trades and the Gross Loss or the sum of all unprofitable trades Profit Factor
16. Close 3 Close Lon Tools 7 ROCA v z O Settings yw Partial close b Ticket All orders b Volume Net profit 20128 Selectedorders p SIL 4 0 01 0 00 20138019 pis ae TP b ann 247 00 wy 20138020 SR EURUSD Trailing stop b Create 20138021 oo EURUSD Break even exit Close25 20138022 Se EURUS o a i Automated close p a Manage templates When you need to delete a template you can also select Manage Templates from the Automated Close menu A window opens with a list of templates Click Q next to the template to delete it Setting Up an Automated Close Make sure the Trade Terminal is displayed and Expert Advisors is on In the Open and Pending Orders window click the order you want Click Then selected Automated Close and Create Select the condition from the Condition drop down menu Select the item from the Threshold drop down menu Enter a number in the Size field ao as SS YS Check one or more of the checkboxes in the Action area and enter either a value or text in the field 8 Click Save Template 9 Enter a new name for the template 10 Click Save 45 11 If desired click Apply Rules to activate the rule Applying a Partial Close If you are trading multiple lots you can add Partial Close to a chart to scale out or close parts of your position Partial Close appears in the Expert Advisors section of the Navigator window as Order Partial Close Nav
17. Data that appears in the History Centre can vary from the historical information stored on the trade server You can save data from the History Centre as an external csv prn or htm file by clicking Export This opens the Save As window Here you can navigate to the folder you want select a file type add a file name and click Save Because the chart history is stored on the server it may take MetaTrader a few moments to generate the historical data History Center AUDCAD M30 Symbols Database 1173 records E ForexReguafi ene f os 1010 File C Program Files Interbank FX Trader 4 symbolsets forexall set eree 3779 Separator v Skip 1 w columns 2 v rows 2392 Shift w hours V Use selected only v Volume 2736 3626 Open High Low Close volume 5595 5395 7703 4716 2783 3607 3296 2339 3145 3203 v fae Fl ID ZRO DNN An SOTM DERA If you already have historical chart data from another source you can click Import This displays the import window Here you can select a csv prn txt htm or hst file by clicking Browse and navigating to the file Once selected you can use e The Separator drop down menu to specify what kind of separator to use You can select either a comma semicolon space or tab e The Skip drop down menus to select how many columns or rows MetaTrader should use when importing e The Shift drop down menu if you need t
18. FI A i New Onder cP OR Expert Advisors ee 1T USCCHF 60 5 0 9 RED LER Lp EURLED Do l J DCAD 1 03 0 DUS 0 7 0 74 T USOTAA 7 6 70G US06GD L30 1 30 WEOTRY 1 44 L PERRY LFS LFE Fj EdPenodMutipbes WA Custom Indicators TK Soripts Ty dose EX delete _pending rat modiy ka mdy perdir T GederSered Hod pati comata De rotate isnt I send_pendr T trade EURUSD H Time From BS 2010 10 25 1315 M4 Powered by BT Registration SS STS 100 PTa Powered by BT What Is Automated Trading SS A002 15 58 MT4 Powered by BT Mobile Trading It s Easy E B SOT 2S 56 MT Powered by BT Wel crm For Helo press F ofan Wi FPO ib 142 If you need to return to the original settings click Reset Executing a Script on the Chart 1 Right click on the script you want in the Navigator window and select Executing a Script on the Chart If the confirmation window appears click Yes to confirm the settings If the settings window appears select the options you want on the Common tab If desired click on the Inputs tab You can click Load to navigate to the external set you want and click Open Click OK Only one script can be attached to a chart at a time When a chart already has an attached script a confirmation window appears verifying that the new script will be added and the old one removed from the chart Removing a Script Attached to a Chart Unlike ex
19. Fi y di WPA 0 89103 J 7 Type Market Execution Market Execution 1A i 2 yv 0 89092 0 89128 0 83078 0 83054 0 89042 Notice At order by market execution the price will be quoted by dealer 0 89030 The Market Execution section displays the current price and options for placing your trade If the market is particularly volatile it may take a few seconds to process your order MetaTrader displays a pending message a progress bar to show you how much further the trade has to process and a Cancel Order button if you no longer want to place the order Once the order is processed the Order Execution section appears in the Order window This displays a confirmation message informing you that your trade was successful From this message you can print out the order information by clicking Print or close the window by clicking OK Placing a Market Order 1 Double click an instrument in the Market Watch quote board 2 Make sure the instrument you want is selected Click the Symbol drop down menu to select an instrument if not Click Volume drop down menu to select the number of lots you want to trade Make sure Market Execution is selected in the Type drop down menu If desired enter text in the Comment text box Click either the Sell by Market or Buy by Market button Click Print to print the order information if desired a Click OK to close the window AN While you can open the Order windo
20. On the Trade tab of the Terminal window you can modify or close your pending orders by right clicking on an order row and selecting the menu option you want One way to modify your order is to add a trailing stop AN In MetaTrader 4 trailing stops will only run when you are logged into the platform For more information on how trailing stops work see Available Order Types in MetaTrader 41 Terminal Time Type Size Sy Price Price Com Taxes Swap Profit Comment 2010 07 29 16 44 buy 2 00 eurusd 1 26835 New Order Close Order Modify or Delete Order La 9235 2010 07 29 16 46 buy 2 00 gbpusd 1 53401 0 00000 0 00000 1 55844 0 00 La 9235 2010 07 29 16 49 buy 2 00 eurgbp 0 82669 0 00000 0 00000 0 83903 0 00 F 9323 2010 08 26 16 00 buy 4 00 eurusd 1 26835 0 00000 0 00000 1 27205 0 00 L 9326 2010 08 27 18 08 buy 400 eurusd 1 26835 0 00000 0 00000 1 27322 0 00 e Balance 44 614 53 Equity 24 276 06 Margin 9 263 46 Free margin 15 012 61 Margin level 262 06 Trailing Stop Delete All Profit None Commissions 30 points Trade Account History News Alerts Mailbox Experts Journal Taxes 130 points Comments 230 points Auto Arrange 4 330 points Grid 430 points 530 points 630 points 730 points Custom One way to place a trailing stop is to right click in a position row and select Trailing Stop This displays a drop down menu where you can select the number of points you w
21. Orator Std Terminal e On the Font tab you can specify font type size and script settings for the text that appears in the code of the autotrading tool file You can view how the text will look in the Text Preview box Options General Colors Font Network Proxy server Login Password On the Network tab you can view proxy server settings if they are entered 112 Section 5 Using MetaTrader s Autotrading Tools Most trading advisors recommend that traders follow a set trading strategy and stick to it MetaTrader offers a variety of automated trading tools that may help you do just that e Expert Advisors These automated trading strategies perform real time technical analysis of price data and manage trading activities based on current market conditions e Custom Indicators These modified technical indicators analyse the price moves of an instrument e Scripts These perform an automated analytic or trading function on request Unlike expert advisors which continually work and execute orders based on market moves a script only performs a function once In this section we ll discuss how to use each of these three automated trading tools 113 Enabling Autotrading Tools Before you use an expert advisor custom indicator or script you need to enable them in MetaTrader You can do this on the Expert Advisors tab of the
22. amp uod iiia gep Y Chal Bar Soarigh Shera ants oo e FURL Marketwatch CirleM Serbia SDC i Data Window Ciel Fierta hen Nmap Portaguaste Baazi daui Tamina Crit Foish area T Ch T zi pon UDN 4 oh egy Testes ChA Lather 7 LEDs USOT EUR TAY LFA 1 7719 ar Sk i ae PE Symbols chs haiga x F Bolinger a A D Bulls Power Hurn F Commedy Trae Hefa er F DeMierker Breek F Erreak iF Force rahe F Fractals Pieri F Gator Oscillator Faal F kia Erko Hed W MACD OF hyhet Facit ation 1 CF bioman Crech Ful Scher F11 Laivai ts a ol Saat 8 IE T Irekia Tete a E Hire Duich GF Ronery Fier Dader ok Croat Create 5 moped Frc He eres igru E PUDINS 11S MITA P Mukaan Registration cS AOOT 09FS 1600 HITA Pi Arsbec What Is Automated Trading Ga POOT 02S 15258 MT 4 Powered by BT Mobile Trading t s Easy i E S00 eS 15656 Ha Powered hy BT Weloorre ai 353 0 kb You will need to restart MetaTrader for the language change to take effect When you re login MetaTrader will display its windows in the language you specified 153 Customising the Toolbars You can modify the options that appear in the four toolbars in MetaTrader by right clicking on the toolbar and selecting Customise from the drop down menu This displays the Customising Toolbar window for that specific toolbar 7086454440 MT4 Powered by BT Demo Account EURUSD HA4 Allele F
23. Aug 08 00 12 Aug 16 00 16 Aug 02 00 17 Aug 10 00 18 Aug 18 00 20 Aug 02 00 23 Aug 12 00 244ug 20 00 26 Aug 04 00 27 Aug 12 00 30 Aug 22 00 1 Sep 06 00 62 Displaying Trading Volume You can display the current trading volume for the selected instrument by right clicking in the chart window and selecting Volumes from the drop down menu JDCAL A Trading Expert Advisors Periodicity Template Refresh Auto Arrange Ctrl 4 Grid Ctrl G Volumes Ctrl L Zoom In Zoom Out Save As Picture Print Preview Print Properties 11 Aug 2010 12 Aug 20 00 16 Aug 06 00 17 Aug 14 00 18 Aug 22 00 20 Aug 06 00 23 Aug 16 00 25 Aug 00 00 26 Aug 08 00 27 Aug 16 00 31 Aug 02 00 1 Sep 10 00 Refreshing the Chart During volatility you may need to update the chart window You can do so by right clicking in the chart window and selecting Refresh g _ N Trading Expert Advisors Periodicity Template Refresh Auto Arrange Ctrl 4 Grid Ctrl G Volumes Ctrl L Zoom In Zoom Out Save As Picture 5 Print Preview E eS Print Ctrl P Properties FS 11 Aug 2010 12 Aug 20 00 16 Aug 06 00 17 Aug 14 00 18 Aug 22 00 20 Aug 06 00 23 Aug 16 00 25 Aug 00 00 26 Aug 08 00 27 Aug 16 00 31 Aug 02 00 1 Sep 10 00 63 Saving as a Picture You can save the active chart window or workspace as a gif or omp file by right clicking in the chart window and selecting Save As Picture You can also choose the size the activ
24. B d s T P 0 Y y Account info 2088502894 USD sell buy Setting Value 0 94860 0 94883 Balance 40 132 85 Equity 40 229 55 USDJPY USDCAD AUDUSD 3 Floating PAL 96 70 x x x x x Free Margin 31 829 80 Lots 0 01 i T S 0 Lots 0 01 T S 0 Lots 0 01 T S 0 Margin in Use 3 399 75 A A A A A A v 0 nd v bik 0 nd gt d T P 0 y Open Positions 2 sell sell buy Pending Orders 0 1 02407 0 n 0 97559 Pips Profit 13 6 FURGRP FURAUD FURCHF ad Open and pending orders y Close Tools gt ROCA Z Summary bi a MT4i Live 3 Settings 7 Ticket Symbol Action Volume Net profit Pips S L T P Open p Current Open time Duration Gross Swi we 20222823 3P CADCHF Sell 3 00 331 99 10 5 0 92753 0 92648 2012 05 23 12 0 35 8 mins 331 99 R 20222825 gt P EURCAD Sell 1 00 235 29 24 1 1 29434 1 29675 2012 05 23 12 0 35 4 mins 235 29 4 Ww j Trade terminal Connect AUDCAD M15 AUDJPY H1 CADCHF M15 EURCAD M1 Before you use Trade Terminal you need to make sure that Expert Advisors is active to use it Trade Terminal appears under Expert Advisors in the Navigator window You can open the Trade Terminal by clicking and dragging it from the Navigator window to a chart AN MetaTrader will replace the chart and all existing autotrading tools already running in that chart with the Trade Terminal However you may need to open the Trade Terminal in a new chart so you do not lose your curre
25. E m sp ae wmo a USDCAD 1 01132 1 01152 ow Sell EE buy 4 AUDUSD 0 99192 0 99216 Close 1 28453 39 i al Setting Value lt gt EURGBP 0 79924 0 79943 Volume 2566 0 94326 0 94117 Balance 25 188 65 symbols Equity 29 242 68 Bip gt GBPUSD Floating P L 4 054 03 MT4 Powered by BT A TA z Free Margin 21 242 68 Accounts Soop ll ba w Margin In Use 8 000 00 A A F Indicators S L 0 D y g LA va Open Positions 1 amp Expert Advisors Connect Open and pending orders Mini terminal close Toos gt ROCA Z Summary MT4iLive 2f Settings lt 8 Order Partial Close l g Teade haidi Ticket Symbol Action Volume Net profit Pips S L MACD Sample E 20197532 3 USDCAD Buy 4 00 4 054 03 102 5 1 00724 Common Favorites GBPUSD M30 Trade terminal For Help press F1 Default il 10689 7 kb You can display the Data Window by clicking the View menu and selecting Data Window You can right click in the Data Window to view the following menu options Copy allows you to copy information from the Data Window Last Data displays a column in the Data Window which contains the latest open high low and close when checked Auto Arrange automatically resizes the columns in the Data Window if the window size changes when checked Grid displays a border around the rows and columns in the Data Window when checked You can choose which information appears in the Data Window by selecting Show and then checking or un
26. ED Expert Advisors me ELS H4 137741 1479m 1 3752 L37 Symi Bid Ask 4 LEOCHF 4 GEPUSD eles Loi EAUSO OL L37 T UDF 91 564 81 560 DCAD 1 03 103 F HUD 074a O74 AUOUSD 0 97 0 97 LEDZAR 705 7 05 OSG gt LEDTRY EURTRY 1 9919 1 9502 A rr ei Sie MTA Powered bry BT a A accounts F Indicabors 84 Expert Achisers ED Moving Average a T Custom Indicators Modi Erter l Scipts AO Delta Delete Glbeeh lo chad G Ceme reset Add bo favonisg Se hotkey t Ia ci 20 I Oot E Te Oe E 2 Oe OD 2S Ch ei th Oct eg a Onan bbe any Chote 13 et le Comman F sy i Tm From Headline E 20101025 13 15 MT4 Powered by BT Registration E 2007 09 25 16 00 M4 Powered by BT What Is Automated Trading Ea 2007 09 25 15 56 MT4 Powered by BT Mobile Trading It s Easy E3 2007 09 25 15 56 MT4 Powered by BT Welcome Wail FAO kb Dete sebected expert Cret cult Deleting an Expert Advisor from the Navigator Al eS x L abe 141 as 7h aS iaia La Loi 1 Right click on the expert advisor custom indicator or script you want in the Navigator window and select Delete 2 Click Yes to confirm If an expert advisor custom indicator or script is attached to a chart deleting it from the Navigator window does not stop it from performing autotrading You need to remove it from the chart 146 Adding a Library to an Expert Advisor or Script As you cre
27. S to use from the current lot size and the cash risk Fixed cash risk USD l ofequity of USD 49308 78 ofbalance of USD 51 410 66 You can choose one of three methods to calculate a stop and or limit for your trade e Fixed Cash allows you to enter how much money you want to risk e of Equity allows you to enter a percentage of your account equity e of Balance allows you to enter a percentage of your account balance Select an option and enter a number in the appropriate field Once MetaTrader calculates the values they appear below the entry field ea ot equity jiu Ya ot USU 4 U63 58 C o of balance of USD 51 000 38 S L calculation Cash risk USD 4 706 54 Fip value per lot USD 10 00 Volume 1 00 lots Trade pip value USD 10 00 Pips 470 6 pips 0 04706 set 5 L You can click Set to add the calculation value to the Mini Terminal To cancel click x in the window 29 Placing Orders in the New Order Window You can use more in depth order types by opening the New Order window New order x Buy E ET You can open the New Order window by e Clicking in the Mini Terminal You can use the drop down menus in the New Order window to specify your trade What menus you see will depend on what you select when you click Order Type Most order types except Buy and Sell require you to set your entry as either a specific price or as a set value in pips away from the current pr
28. Tick Chart H F Indicators a SE Expert Advisors Live Trading p Custom Iniesta L E serets H Ae Inve tracing T dea Clik manual coniimalion delete pandinig Th modiy Tip modfy_pendng To OrderSend pol Period cere thee Th rotate tert 1 send _pending T trade Alley DLL impocts F Conia DLL fursction calls H Alley impot of external experts Longi Shot petites Emable slerts C Disable alert once hit Poe 2b Bixee lz oe ie Ge Mee 15 Oa i borat Ae Toe EURUSD Ha From Heia E 20101025 115 Ea 2007 ALAS IEN he SOT OSS 16 MT4 Powered by BT MT4 Powered by BT MT4 Powered by BT Regishration What Is Automated Trading Mobihe Trading t s Easy Welcome E 2007025 15 56 00 MT Powered by BT For Hap press FI If your script is designed to execute a command based on certain conditions you will see a confirmation window After you click Yes you may see the settings window depending on the type of script If the settings window appears you can specify how you want the script to perform on the Common tab While you may have already specified how MetaTrader handles permissions for all expert advisors custom indicators and scripts you can specify individual settings for the script here The Positions drop down menu allows you to select if the script opens both long buy and short sell positions or only long or short positions 141 You can click the Enable Alerts checkbox so that MetaTrader s
29. VV INGOW gases Gccrcheratnesawute a hone E A T 111 Section 5 Using MetaTrader s Autotrading TOols cccccccccccseceeeeeeeeeeeeeeeeaeesaeeeaees 113 Enabling AULOUAGING TOONS sensere a a E AE E 114 Finding Autotrading Tools in the Online Library ccccccccccseecseeeeeeeeeeeeeeseeeeaeeeaees 116 Creating an EXpent AGVISOP cosain tarna e a aa a il 118 TSENG AMEX PEM AGNVISON asaris e a E A A 120 Viewing the Results of the Expert Advisor Test cccccccccceecceeeeseeeeeeeeeeeeeeeaeeenees 123 Attaching an Expert Advisor to a Chart cccccccccccceceeceeeeeeeeeeeeeeeeeseeeseeeeeeeeeeeaeeeaees 128 Modifying an Expert Advisor Attached to a Chart cccccecccceccseceeeeeeeeeeeeeaeeeaeeeaees 131 Removing an Expert Advisor from the Chaftt cccccccccccceeceeeeeeeeeeeeeeeeeeeeaeesaeeeaees 132 Creating a Custom INGICATON vaciedcsivecsteensevrvcideeccactucads duelececdwendeuidedewensedartcedendssextieadaeeds 133 Adding a Custom Indicator to the Chart ccccccceccseccceeceeeseeeseeeeseeeeeesauesseeeaeeeaees 136 Modifying a Custom Indicator Attached to a Chart ccc ccccccceccseececeeeeeeeeeeeeeeeneeens 138 Creating a SCD acetic deen terete a see tinan a Lee tae dud eae ar Sd 139 Executing a Script On the Chart cccccccscccsscceeeseecceeceesceeeceeeceseesueeeuessueesuesaeesaess 141 Removing a Script Attached to a Chart ccccccccccccceccseeceeecaeeeeeeeseeeseeseeeeeeeeseesae
30. When active the button changes to look like this 6 Pie This button does not activate custom indicators or scripts Fil 20 BB454440 MT4 Powered by BT Demo Account EURUSD HA ral Fil Fama lrigazat harks Took areca Hein w Gh lle amp le Ek New Order weet ee bch 2007 1 a ay Hitter Certer Symbol Ask USDCHF 0 98 0 98 9e GkbaVarisbies T GEPUSO 1 58 1 58 gt MetaQuotes Language Echtes ae Ones Ez Sebi l oes e STAD Like 1 02 4 HZDS O74 D Pha T AUD 0 95 0 96 Enabling Expert Advisors Custom Indicators Scripts or Libraries in MetaTrader 1 Click the Tools menu and select Options In the Options window click on the Expert Advisors tab Make sure Enable Expert Advisors is selected If you are using expert advisors or scripts check Allow Live Trading TS w N If you are using custom indicators or scripts check Allow DLL Imports and Allow External Experts Imports a Change the rest of the options to suit your trading style 7 When done click OK 115 Finding Autotrading Tools in the Online Library When you first open MetaTrader you can access a few expert advisors custom indicators and other autotrading tools from the Navigator window You can also download additional autotrading tools using the Online Library in MetaEditor this is a MetaTrader developer application that helps you import create and modify expert advisors gt MetaEditor Nik_PSAR_2B
31. You can add Mini Terminal to the chart by clicking on it in the Navigator window and dragging it to a chart Adding Mini Terminal to a chart will replace all existing autotrading tools already running in that chart To run both Mini Terminal and the autotrading tool at the same time simply open the same instrument in a new chart Once added to the chart the Mini Terminal appears in the upper left corner You can also display the terminal outside of MetaTrader by clicking The Tasks and Settings window opens which displays two menu options e Undock Chart moves the chart window with the Mini Trader outside of the MetaTrader workspace so you can place orders even when MetaTrader is minimised e Undock Terminal moves the Mini Terminal outside of the MetaTrader workspace Like Undock Chart the Mini Terminal remains displayed so you can place orders with it even when MetaTrader is minimised If you need to add your chart or the Mini Terminal back to the MetaTrader workspace you can click Fe again and select Re dock Chart or Re dock Terminal To place trades using the Mini Terminal see Section 2 Opening and Managing Your Trades 15 Trade Terminal When you want to monitor market moves or place trades quickly you can use the Trade Terminal This displays a number of MetaTrader tools and features in a separate window Market Watch 1 Click Terminal gt USDCHF GBPUSD EURUSD MetaTrader Lots 0 01 gt Tis 0
32. as orders filled and positions closed Whenever you test an expert advisor MetaTrader saves the entries that appear on the Journal tab as a log file You can view this by right clicking in the Journal tab and selecting Open from the drop down menu You can also select Copy to copy all journal entries If you want to remove these entries you can select Clear All Journals You can also change the appearance of the journal table by right clicking in the Journal tab and selecting Auto Arrange This resizes the columns automatically if the Strategy Tester window size changes or Grid which displays the lines between the rows and columns x Pass Profit Total trades Profit Factor Expected Payoff Drawdown Drawdown Inputs Settings Optimization Results Optimization Graph Results Graph Report Journal If you clicked Optimisation in the Settings tab two additional tabs appear in the Tester window the Optimisation Results tab and the Optimisation Graph tab The Optimisation Results tab displays a table that contains information about all of the trades that were executed during the optimisation Pass shows the pass number Profit displays the gross profit minus the gross loss Total Trades shows the total number of open positions Profit Factor displays the ratio between gross profit and gross loss in a percent If a one appears in this row it means that these values are equal Expected Payoff shows the average prof
33. buttons in the Chart toolbar to switch between bar candlestick or line chart e Clicking Charts in the menu bar and selecting the Bar Chart Candlesticks or Line Chart menu options 58 When you first open MetaTrader the chart types would look like this Bar Candlestick Line You can display more information about the candlesticks in the chart See Displaying Detailed Candlesticks in a Chart for more information There are several ways to change the time frame in the chart Click Period Or and select a time frame menu option from the drop down menu Display the Periodicity menu bar by clicking View selecting Toolbars and clicking Periodicity You can then click the time frame icons Ml MS MiS M30 Hl H4 Di Wi MN Click Charts in the menu bar and select Periodicity You can then select the time frame you want Right click in the chart window select Periodicity and then select the time frame 59 Charts i 1 Minute M1 S 5 Minutes M5 ms 15 Minutes M15 Beco 30 Minutes M30 1 Hour H1 4 Hours H4 Daily D1 wi Weekly W1 E ma Monthly MN No matter which method you use you can select one of the following time frames 1 Minute M1 e 5 Minutes M5 e 15 Minutes M15 e 30 Minutes M30 e 1 Hour H1 e 4 Hours H4 e Daily D1 e Weekly W1 e Monthly MN 60 5 Switching Between Chart Time Frames and Instruments with Fast Navigation You can quickly switch betwe
34. can also right click in the expert advisor row and select Download from the drop down menu This opens the source code of the autotrading tool in the MetaEditor workspace If you know MQL 4 the MetaTrader programming language you can edit the code manually or add additional code components from the tools in the Navigator window You can also open other source code files and copy and paste sections of code into the downloaded file A star appears in the header of the source code file after you ve edited it You can click Save Eho save your changes and continue working MetaEditor Nik_PSAR_2B mq4 File Edit View Tools Window Help a e Al ev Compile If you have no changes to the downloaded file click This verifies if the code works as programmed The Errors tab opens automatically in the Toolbox window to show you if there are any errors or warnings When the compilation is successful MetaEditor saves the file x Description File Compiling Nik_PS4R_2B mq4 0 error s 0 warning s Errors FindinFiles Online Library Help Error list panel Ln 16 Col 33 Once compiled you can view the expert advisor custom indicator or script you want in the Navigator window of MetaTrader To return to MetaTrader click Terminal Finding Autotrading Tools in the Online Library 1 Right click on the Expert Advisor Custom Indicator or Script menu in the Navigator window and select Online Library I
35. can select the sound file you want to play from a drop down menu If you have other sound files that you would like to use on your 50 computer you can click J This opens the Open window and you can navigate to the folder where your sound files are stored When you find one click on it and select Open To see what the alert would sound like you can click Test in the Alarm Editor window If the alert is designed to hit a price and the market bounces around that price your alert may go off more than once You can use the Timeout drop down menu to set a period of time between when the alert goes off and when it can go again You can use the Maximum Iterations drop down menu to choose to have the alert sound between one and 1000 times AN MetaTrader will send an alert to your email when your address is setup in the Email tab of the Options window See Entering Email and Server Settings in Section 7 Customising the Appearance and Settings in MetaTrader for more information Creating an Alarm 1 Right click on the Alerts tab in the Terminal window and select Create 2 To begin entering information in the Alert Editor click Enable On Off 3 Click the Action drop down menu and select Sound File or Mail 4 Make sure the instrument you want is selected Click the Symbol drop down menu to select an instrument if not 5 Click the Condition drop down menu and select Bid gt Bid lt Ask gt Ask lt or Time and enter a value
36. change when you place an order If markets are fast moving or become extremely volatile such as during a news announcement the price of the market that you re trying to trade may suddenly jump or drop in a moment If this should occur MetaTrader 4 fills your order but at the nearest market price this may be a multiple pips away from the original price This is called slippage In this section you can click Default and specify that MetaTrader fill your order as long as the price is within the number of pips above or below the price at which you placed the order If you select Last Used MetaTrader uses the number of pips at which the last order was placed if there is slippage 168 Customising Autotrading Settings The Expert Advisors tab in the Options window displays settings that specify how MetaTrader uses expert advisors custom indicators scripts or libraries Options Server Charts Objects Trade Expert Advisors Email Publisher Events Enable Expert Advisors except for Custom Indicators and Scripts Disable experts when the account has been changed Disable experts when the profile has been changed Allow live trading sssssessssssssosesseeeseeess hsssssessssssseesseseeese Allow DLL imports Confirm DLL function calls Allow external experts imports Enable Expert Advisors activates or deactivates all expert advisors in MetaTrader When the checkbox is not checked the expert advisors will not analyse cha
37. changes Grid displays lines between the rows and columns in the quote board You can click on the Tick Chart tab to display a chart of the selected instrument with its price movements measured by the tick Market Watch 14 37 25 x 1 01610 1 01603 1 01596 1 01590 1 01583 1 01576 1 01570 EA 1 01556 1 01550 Symbols Tick Chart The Tick Chart captures the buy prices with a buy line which appears in red when you first open MetaTrader If you right click in the tab you can view the ask price movements by right clicking in the window and selecting Ask Line This appears on the chart as a blue line The Navigator Window As you trade you ll want to add indicators to chart windows as well as activate expert advisors custom indicators and scripts The Navigator Window is where you can view all of the available tools MT4 Powered by BT W m Accounts E Indicators 4 Expert Advisors it Custom Indicators Ge Sy Scripts Eh close j i delete pending E modfy j i m d y pending Eh Ordersend p period_converter j i rotate_text j i send _pending Ep trade Common Favorites 10 The Navigator window is divided into two tabs On the Common tab you can select menu options from a grouped list To display the available menu options click next to the group name To hide them click next to the group name Accounts displays the list of open accounts If you have more than one account y
38. changes you want to the code file as desired 10 Click 7 compile Once compiled you can view the custom indicator in the Custom Indicators list in the Navigator window of MetaTrader You can switch back to MetaTrader by clicking Terminal jn the MetaEditor toolbar 135 Adding a Custom Indicator to the Chart Once you ve imported created or modified the custom indicator as you want you can display it in the chart window by clicking and dragging it from the Navigator window This opens a window so you can specify settings for the custom indicator Custom Indicator Heiken Ashi aan Common Inputs Colors Visualization Allow external experts imports On the Common tab you can specify how this custom indicator will handle dynamic link library dll files While you may have already specified how MetaTrader handles these for all expert advisors custom indicators and scripts you can specify individual settings for the selected custom indicator here When checked the Allow DLL Imports checkbox allows your custom indicator to automatically access dynamic link library dll files associated with them The Allow Import of External Experts checkbox enables your custom indicator to automatically import functions from other MQL4 files This is a security option that protects you when you are working with a custom indicator from an unknown source Custom Indicator Heiken Ashi EEE Common Inputs Colors Visualization
39. click the View menu and make sure Charts Bar is check marked Connect Connect allows you to view news from several different RSS feeds display an economic calendar access account analysis tools and more 12 Connect News Calendar a Twitter E Dashboard 4 Live chat Webinars Free guides Open account GJ Alsekected feeds F Adda feed Adda fiter 3 Undock window Housing Sector Why the Fed Depicts it as Depressed The National Association of Realtors published existing home sales data for March it was down For more information read our latest forex news and reports Fx Street All headlines 18 minutes ago Asian Session Euro opens pressured Valeria Bednarik Chief Analyst at FXstreet com Curr ncie Watch Daily short videos For more information read our latest forex news and reports FMStreet All headlines 29 minutes ago Cable Rallies To Five Month High Stocksfinished the week positive following solid earning out of the US coupled with encouragingnews For more information read our latest forex news and reports Fx Street All headlines 34 minutes ago Forex AUD JPY threatens to push above 34 75 Fxstreet com San Francisco The Australian dollar gained on the Japanese yen last week on the For more information read our latest forex news and reports Fx Street All headlines 36 minutes ago Before you use Connect you need to make sure that Expert Advisors is active
40. contain only the tools that you use by clicking View and selecting Customise This opens the Customising Toolbar window MetaEditor rotate_text mq4 BAB F Ly Py w Compile ermina a e B a Uy Ly em a y compi Terminal rotate_text mq stdlib mq 4 gt x at aa aa me a ca Al Data v ff rotate text mq4 7N Alert F f f Copyright 2004 MetaQuotes Software Corp N Fa fi http www metaquotes net ArrayCopy CB ArrayCopyRates L ropert i 7 prop MR ay ArrayCopySeriest propert Cee Close include Available Selected Ce Commenti string 1l E Paste ay Conversion Functions string of Save All ay Data types aie and Print Preview Ge Undo CBA Date amp Time Functions t gt Defining extern variables E Print S Fedo cs Print X Delet Cee Error codes H igi amp Coneie Ce Execution errors A a GA Find Terminal rA External Functions definition F a ermina fh Find Next F Th FileFlush f pos remem janie a reopen elp i SA Replace v Fa FileOpenHistory ea a ay FileReadArray Object Obj kotan ar ae i Fa FileReadDoublet Cee FileReadInteger fj fm a a a a rrr Faa FileSeek f seript program start function a File Tell fit bassas ine stare i P ay File write a l m gt Files Dictionary Search Back Home f
41. contains information about all of the trades that were executed during the test You can view information across several columns Type displays what kind of trade was placed a sell buy etc 123 Order shows the ticket number of trade position or pending order Lots displays the number of lots that were traded Price shows the price at which the instrument was bought or sold S L displays the price at which the Stop Loss order was executed If this field is blank it means that no stop loss order was placed T P shows the price at which the Take Profit order was executed If this field is blank it means that no take profit order was placed Profit displays what your profit or loss was on the transaction This value only appears for closed positions Balance shows how the trades placed would affect your account balance The balance value is recorded only at closing of positions You can click in the column header to sort the entries in ascending or descending order Time Type Order Size Price Smi TIP Profit Balance B 2010 09 01 00 39 sell 1 0 10 0 89155 0 89105 a e e a oa 33 D Co piir 2 0 10 0 89963 0 90013 a 4 20 Copy All Alt A 2 0 10 0 89924 0 90013 3 90 9915 40 Bs 20 Save as Report 3 0 10 0 89920 0 89870 6 20 E 3 0 10 0 89945 0 89870 2 50 9912 90 37 20 4 0 10 0 89950 0 90000 8 20 PMN Tor 4 0 10 0 89853 0 90000 9 70 9903 20 39 20 y Auto Arange A 5 0 10 0 89893 0 89943 4 Settings Result
42. continue to add code for the script You can view the file in the Scripts menu of the Navigator window in MetaTrader Creating a Script 1 Z Ox QI S w In MetaTrader right click on the Scripts menu in the Navigator window and select Create When the Expert Advisor Wizard opens in MetaEditor make sure Script is selected and click Next Enter the script name the developer s name and the developer s website Click Finish Make the changes you want to the code file as desired Once compiled you can view the script in the Scripts list in the Navigator window of HA Terminal MetaTrader You can switch back to MetaTrader by clicking in the MetaEditor toolbar 140 Executing a Script on the Chart Once you ve imported created or modified the script as you want you can display it in the chart window by clicking and dragging it from the Navigator window Depending on what the script does MetaTrader will either see a confirmation or view a settings window so you can customise the script 2088454440 MT4 Powered by BT Demo Account EURUSD H4 abam w Che i e Se O WL h New Order G GB Expert Advisors eat oa EJRUSD H iarrai amia eS 1 Symbol Ask T UDT 6098 0 98 SPUD 1 57 1 57 RUSO 1 37a 157 usor 8171 1S7 T DCAD 10 UD D74 7 AUDUED O 96 0 98 USOFAR 7 06 7 06 USD5G0 1 30 1 30 USDTRY 144 144 Camia EURTRY 1 9910 1 9922 A hi nA 3 a Symbols
43. displays a comparison of the gross profit and the gross loss Expected Payoff looks at the average profit loss factor of one trade You can use this to determine whether the trade was profitable or unprofitable Maximal Drawdown calculates the largest loss of one trade Absolute Drawdown shows the largest loss is below initial deposit value The Total Trades section of the report breaks down the number of trades long or short positions and what were your largest consecutive profits and losses Time Type Order Size Price T P Profit Balance Ly Copy Ctrl C 2010 09 01 03 34 close 0 89105 78 80 9921 20 3 2010 09 01 03 34 buy Copy All Alt 0 89944 0 89994 a 4 2010 09 01 03 50 cose Save as Report 0 89924 0 89994 2 00 9919 20 35 2010 09 01 03 50 sell 9 89920 0 89870 a 6 2010 09 01 04 04 close ene eam 0 89926 0 89870 0 60 9918 60 B7 2010 09 01 04 08 buy Set Date To j 89931 0 89981 a 8 2010 09 01 05 17 dose JE uto Arange a p 89853 0 89981 7 80 9910 80 g ki Settings Results Graph Report Journal Grid Cee Wale mene Ci Maf awa lk HESS iocn n Lh If you right click in the Report tab you can view a drop down menu with other menu options You can use Copy to copy the entire report You can also save the report as an htm file by clicking Save as Report and entering the name of the report You can also change the appearance of the table by right clicking in the Report tab and selecting Auto Ar
44. dll files associated with them When this is checked you can also choose to select the Confirm DLL Function Calls checkbox below it If your expert advisor is about to access a set of dll files and this checkbox is selected a notification appears asking you to confirm the request The Allow External Experts Imports checkbox enables your expert advisor to automatically import functions from other MQL4 files This is a security option that protects you when you are working with an expert advisor from an unknown source 129 2088454440 MT4 Powered by BT Demo Account EURUSD H4 _ Hp New Order ER Expert Acvisors HE ELRLISC HM LAR 13a aa aS gt GEPLED ERLU 1 3 1 3 PUDY 81 513 81 519 USDCAD 1 03 n MACD Sample NUSO 0 74 O74 ADUS 0 97 O97 USDZAR 7 02 70 Variable USOSGD 1 50 1 30 vai TakeProfi SUSDTRY 1 43 1 43 F Lots EURTRY 1 9550 1 5593 a TradingStop T symbole acetal W MACOOpenLevel YA MADD CloseLevel j HS Tiard ed gt MT4 Powered by BT l Lowe a Aor a FI Indicators Save SE Expert Advisors T MACK Sample ace p Cuka Indicators i Ly Seripts Common Irputi 1 i p m 1 r Jaini P P _ i imiennie Poet a0 FOO Le Loo ote Eee oo 1 Me Zl Oe fi dbo F EURUSD H4 From Harara ED 2010 10 25 115 MT4 Powered by BT Registration EB 2007 09 25 16 00 T4 Powered by BT What It Automated Trading E 20
45. in the online trading platform 1 Open the online trading platform This link is sent to you when you open an account 2 Enter your username and password Click gt gt to login 3 Select the report you want from the Type of Report drop down menu 4 Enter the dates you want in the From and To dates Depending on the report you may also be able to choose other options 5 Click Show Report to generate the report 151 AN With live accounts it is recommended having both MetaTrader 4 and the online trading platform open when trading to compare equity values Please remember that the equity value in the online platform is the most accurate and legally binding You should rely on this value when you are trading 152 Section 7 Customising the Appearance and Settings in MetaTrader As you become more familiar with MetaTrader you may want to change some of the settings to make the platform fit your trading style In this section we ll look at ways to customise windows and other tools in MetaTrader Changing the Language in MetaTrader You can select the language you want the functionality of MetaTrader to appear in by clicking the View menu and selecting Languages You can then select the language you want from the drop down menu DERA 54440 M4 Powered by BT Demo Account EURUSD HA WH Fis View Inert Charts Toots Windew Hep pe Langage Engith frpert advisers Harat W I E Yee T e E a lt Siah E Turkish
46. magt Pakat Facit ation F Momentum DF Money Fic brede 5 m T iL iJ punn H Fron bef ZOLI LOLS LenS MT4 Powered by UI Regietation E ZTS 1600 MT Powered by ET What Is Automated Trading g E AOTP 15258 MT Powered by BT Mabthe Trading M a Enayi f Ea ZW FZS 132b M4 Powered by OT Welton ria eee i F Set hoklary bo peleched bert EET iali 149 When you right click on one of these items in the Navigator window you can select Set Hotkey This opens the Navigator Hot Key window where you can select an item from the list and set a keystroke combination If you make a mistake you can click Reset to remove the hot key from the selected indicator expert advisor custom indicator or script To remove all of the hot keys from these items click Reset All Setting Keyboard Shortcuts in the Navigator Window 1 In the Navigator window right click on a specific indicator expert advisor custom indicator or script and select Set Hotkey In the Navigator Hot Key window make sure the item you want is selected If not scroll to it Click Set Use the drop down menu in the Control column to select either ALT or CTRL Enter the keyboard button in the Key column Click Close 2 3 4 5 6 MetaTrader already has a number of commands set as hot keys For a full list see Appendix A MetaTrader Hot Keys f you accidentally set an indicator expert advisor custom indicator or script to a hot key that s already us
47. place a tool on the toolbar you can select it in the Available section and click Insert Conversely you can remove a tool from the toolbar by clicking it in the Selected section and then selecting Remove You can also reposition the order of the tools in the menu bar by selecting a tool and clicking Up or Down If you need to return to your original settings click Reset When you are done reordering the toolbars click Close 154 Adding RSS Feeds to Connect In Connect you can add a feed to the News section by clicking Add a Feed The Add a News Feed window opens Add a news feed x Add a news feed lack Cancel Select a news provider peter I A autochartist com REUTERS Or enter the URL of a feed manually Click here to type in the URL of a feed You can add a feed in one of two ways e You can choose feeds from the six providers by clicking their icon A list of available feeds for that provider appears Add a news x Add a news feed Back Cancel Choose a feed from CNBC Currencies Headlines Treasuries Headlines Commodities Headlines You can rename the feed if desired and click the checkbox to have an alert display when MetaTrader receives a new story e You can also enter the web address or URL of a feed manually by selecting the Click here link You can then copy and paste or type the feed address in the Feed URL field You can then click Check Feed 155
48. profit order the chart in the Order window displays a line representing these pending orders If you enter an inappropriate price for either the Stop Loss or Take Profit text boxes and click Place to enter your order MetaTrader displays a notification message If you are entering both types of pending orders MetaTrader lets you know if the stop loss SL or take profit TP is wrong Click OK and then adjust the price Placing a Pending Order 1 Double click an instrument in the Market Watch quote board 2 Make sure the instrument you want is selected Click the Symbol drop down menu to select an instrument if not 3 Click Volume drop down menu to select the number of lots you want to trade 4 Click Type and select Pending Order 5 In the Pending Order section select one of the pending order types from the Type drop down menu 6 Enter the price 35 7 Click the Expiry checkbox and select a date 8 If desired enter a price in the Stop Loss or Take Profit text boxes 9 Click Place 10 Click Print to print the order information if desired 11 Click OK to close the window Managing Orders in the Trade Terminal You can view your open positions and pending orders in the Open and Pending Orders section of the Trade Terminal Open and pending orders close Toos gt ROCA Z Summary MT4iLive 2 Settings Ticket Symbol Action Volume Net profit Pips S L TIP Open p Current Open time Duration Gros
49. retracement to forecast where stops or losses may be placed When Retracement is selected click and drag a line between the highest and the lowest price points on the chart Uo y i vil il ty l let i You can add a Fibonacci expansion to forecast where the third wave will end When Expansion is selected click and drag FE SLE to create a line between the highest and the im ae lowest price points on hi the chart just as you did for the retracement When done a second trend line will appear You can double click on the trend lines to adjust the expansion 76 A Fibonacci time zone consists of a series of vertical lines placed at Fibonacci intervals from each other You can use Fibonacci Time Zones to forecast possible times when the market may experience a significant price change When Time Zones is selected you can create this drawing object by clicking and dragging A Fibonacci fan displays a set of trendlines drawn from one point at different angles You can use this to forecast support levels for a possible ascending or descending trend When Fan is selected click and drag to create a line between the high and the low 77 You can use Fibonacci arcs to forecast support and resistance levels When Arcs is selected click where you want the centre of your arc to be and drag to size the arc Adding Shapes to the Charts When you click on the Insert menu and select S
50. the checkbox is not checked the expert advisors will not analyse chart price movements The Disable checkboxes beneath it allow MetaTrader to automatically deactivate all of your expert advisors if you change your account or your profile The Allow Live Trading checkbox enables you to place orders when an expert advisor or script is active When this is checked you can also choose to select the Ask Manual Confirmation checkbox below it If your expert advisor or script is about to perform a trade and this checkbox is selected a notification appears asking you to confirm the trade 114 The Allow DLL Imports checkbox allows your expert advisors custom indicators or scripts to automatically access the dynamic link library dll files associated with them When this is checked you can also choose to select the Confirm DLL Function Calls checkbox below it If your expert advisor custom indicator or script is about to access a set of dll files and this checkbox is selected a notification appears asking you to confirm the request The Allow External Experts Imports checkbox enables your expert advisors custom indicators or scripts to automatically import functions from other MQL4 files This is a security option that protects you when you are working with expert advisors custom indicators or scripts from an unknown source If you are only using expert advisors you can click B Expert Advisors in the Standard toolbar to activate them
51. the Tools drop down menu from the Open and Pending Orders window See Setting Stops and Limits in the Trade Terminal Managing Order Cancels Another OCA Orders In the Trade Terminal window you can group pending orders into an Order Cancels Another OCA order In this grouping when one order is filled all of the remaining orders are deleted If you place an OCA order and you do not have a Virtual Private Server VPN subscription your OCA will stop running when you close MetaTrader To create an OCA group you ll need to have at least two pending orders A single order can belong to multiple OCA groups and orders in a group can be for different symbols Creating an OCA group Make sure the Trade Terminal is open Make sure there are two pending orders in the Open and Pending Orders section Select the two pending orders Click OCA Select Create OCA Group The Create OCA Group window opens Enter a name for the OCA group Check the pending orders that you want in the table Click Create OCA Group O No MAP p If you need to cancel the OCA group you can click OCA and select Delete OCA Group Cancelling the OCA group only stops the Trade Terminal from running the OCA rule on those orders Pending orders will not be deleted 43 Setting Up an Automated Close With an Automated Close you can place conditional stop and limit orders for exiting an open position You can then save the templates you create to reuse in t
52. the chart window turns your cursor into a cross when you move around the chart window When this is selected you can find out the distance between the points and the current price value by clicking on a point in the line and dragging to another point 65 vi ik iil Vi a adds a vertical line on the chart These can be used to mark the beginning of a trend or specify a time when you entered the market When this is selected click in the chart to place the line adds a horizontal line on the chart These can be used to plot a horizontal support or resistance level When this is selected click in the chart to place the line 66 f plots a diagonal trendline drawn through a series of high or low price points in the chart window When this is selected click where you want your line to begin and drag your cursor to place the line You can add multiple trendlines to the chart ot Wy plots two parallel lines that remain equidistant no matter where you place them in the chart window When this is selected click where you want the channel to begin and drag your cursor to place it You can then click on the secondary line and drag it in the chart 1 618 2 618 4 236 When it is selected click where you want the channel to begin and drag your cursor to place tt 67 A adds a label to a particular part of the chart When selected you can click in the chart window where the label should be This opens th
53. virtual trading 2009 12 03 Amba Equity Recorder Record the performance of individual strategies real time in offline charts 2009 11 22 bit Winsock 4 WinSock library and a client server example 2009 10 28 ryaz g Errors Findin Files Online Library Help For Help press lt F1 gt Ln 4 Col 1 To download a library make sure the Online Library tab is open in the Toolbox window and that Libraries is selected _ 1 Ge Refresh You can use the scroll bar to move through the list You can also click library files have been added to see if any new When you find the library file you want select it and click Download You can also right click in the library row and select Download from the drop down menu This opens the library source code file in the workspace Fie Ed View Tok He New Chei ee Ope Ctied Po Stun 1 sid b myl Cxt To create a new library from scratch click New in the File menu This opens the Expert Advisor window Make sure Library is selected 148 Once you click Next the wizard opens the General Properties window When you click Finish the wizard closes and opens a text file with the code for the parameters in it You can edit the code manually or add additional components from the tools in the Navigator window You can also open other source code files and copy and paste sections of code into the downloaded file A star appears in the header of the library source co
54. you can click the Alarm on Item drop down menu to select another one In the Level for Alarm section you can choose a threshold option from the drop down menu You can choose from four options less or equal to greater or equal to not exactly equal to or not equal to Then you can enter the number you want Alarms turn off when they are triggered but you can use the Repeat drop down menu to set a timeframe for how often they repeat Alarms also display a pop up window in MetaTrader when they are triggered You can also have an email sent to you if you check Send Email AN MetaTrader will send an alert to your email when your address is setup in the Email tab of the Options window See Entering Email and Server Settings in Section 7 Customizing the Appearance and Settings in MetaTrader for more information When an alarm is triggered you can set MetaTrader to e Close All Orders When the alarm is triggered and this option is selected MetaTrader tries to close all open positions and delete all pending orders e Close All Charts When the alarm is triggered and this option is selected MetaTrader tries to close all charts other than the Trade Terminal Closing the chart prevents autotrading tools on other charts from placing any further trades When an alarm is set the icon is 4 When the alarm is triggered the icon is a Setting Account Alarms from the Trade Terminal 1 Make sure the Trade Terminal is open N In the Accou
55. you can further customise which instruments appear in the Market Watch quote board E fe ForexRegula AUDCAD Australian Dollar vs Canadian Dollar Hide AUDCHF Australian Dollar vs Swiss Franc AUDCZK Australian Dollar vs Czech Koruna AUDDKK Australian Dollar vs Danish Krone AUDHKD Australian Dollar vs Hong Kong Dollar AUDIPY Australian Dollar vs Japanise Yen AUDNOK Australian Dollar vs Norwegian krone AUDNZD Australian Dollar vs New Zealand Dollar AUDPLN Australian Dollar vs Polish Zloty AUDSEK Australian Dollar vs Swedish Krona AUDSGD Australian Dollar vs Singapore Dollar AUDTHB Australian Dollar ws Thai Baht Close From this window you can select the instrument that you want to appear in the Market Watch window by selecting the instrument and clicking Show or Hide Hidden instruments will have a gray symbol next to their name You can also view information such as pricing and size for each instrument by clicking Properties Sets allows you to save the instruments displayed in the Market Watch quote board as a set and select it from a list The next set of menu options control the appearance of the Market Watch quote board High Low expands the quote board to display the high and lows for the instruments Time also expands the quote board to display the time that the bid and ask prices were recorded Auto Arrange resizes the columns automatically if the quote board size
56. 0 0 00000 2010 07 29 18 55 oE 139 47 3 808 00 F 92354344 2010 07 29 16 49 buy 2 00 usdcad 1 03815 0 00000 0 00000 2010 08 27 19 54 1 05205 168 60 2 642 46 La 92354383 2010 07 29 16 59 buy 2 00 eurusd 1 30812 A 5 0 00000 2010 07 29 19 40 1 30885 0 00 146 00 92354397 2010 07 29 16 56 bury limit 2 00 chFj 2010 07 29 19 32 83 485 si Trade Account History News Alerts Mailbox Experts Journal When you right click in a position row you can select menu options to filter and sort the orders that appear in the tab by the last three months last month or a custom period If you sort the orders you can also click All History to view all orders again When you select Custom Period you can use the From and To drop down menus to select specific dates 49 On both tabs you can also change the appearance of the table by selecting Auto Arrange which resizes the columns automatically if the Terminal window size changes or Grid which displays the lines between the rows and columns With live accounts we recommend viewing your account history in both MetaTrader 4 and the online trading application The transactions and values you see in the trading application are the most accurate and legally binding You should rely on these values when you are trading Viewing and Setting Alerts in the Terminal Window As you trade you can set alerts to notify you when an instrument has reached a specific price on the Alerts tab in t
57. 07 00 25 15 58 MT4 Powered by BT Mobile Trading It s Easy 1E 2007 09 25 15 56 MT4 Powered by BT Welcome For Help press FI Defa ik aa en 13 0 kb On the Inputs tab you can view the variables used to calculate the expert advisor The variables are specific to the expert advisor you selected You can change the variable values by double clicking in the variable row You can also click Load to add inputs to the expert advisor or Save to save the variables as a set If you need to return to the original settings click Reset You can verify if the expert advisor has been attached to the chart by looking for one of three types of icons in the upper right corner of the chart A means that the expert advisor was attached and is actively trading A shows that the expert advisor was attached but that live trading is disabled for it A means that all expert advisors have been disabled AN Remember the Expert Advisors button in the Standard toolbar must be active in order for your expert advisor to work Attaching an Expert Advisor to a Chart 1 Right click on the Expert Advisors you want in the Navigator window and select Attach to a 130 Chart 2 Select the options you want on the Common tab 3 If desired click on the Inputs tab Click Load Navigate to the external set you want and click Open 4 Click OK You can only click and drag tested expert advisors in the chart window Only one expert can be attache
58. 1 26555 1 26290 1 26025 1 25760 11 Aug 2010 12 Aug 18 00 16 Aug 04 00 17 Aug 12 00 18 Aug 20 00 20 Aug 04 00 23 Aug 14 00 24 Aug 22 00 26 Aug 06 00 27 Aug 14 00 31 Aug 00 00 1 Sep 08 00 2 Sep 16 00 Removing an Expert Advisor from the Chart 1 In the chart right click and select Expert Advisors 2 From the drop down menu click Remove No confirmation appears when you remove an expert advisor from the window 132 Creating a Custom Indicator You can create a new custom indicator by right clicking on the Custom Indicators menu in the Navigator window and selecting Create MT4 Powered by BT E B Accounts w LF Indicators Expert Advisors FAG Custom Indicators Ti Scripts Set hotkey Zd Onine library This opens MetakEditor an application installed with MetaTrader that develops autotrading tools and displays the Expert Advisor wizard Expert Advisor Wizard Welcome to Expert Advisor Wizard MG 4 Please select what you would like to create Expert Advisor Script Library Include MOH Generate from template To continue click Next The wizard helps you specify which type of custom indicator you want and name the file 133 Expert Advisor Wizard General properties of the Custom indicator program Please specify general properties of the Custom indicator program Name Cl Example Author Joe Trader Link http www joetrader
59. 4 248 00 3 93268 2010 08 27 18 08 buy 4 00 eurusd 1 27143 0 00000 0 00000 1 27322 0 00 0 00 14 22 716 00 z e Balance 44 614 53 Equity 28 044 83 Margin 9 263 46 Free margin 18 781 38 Margin level 302 75 16 569 14 Trade Account History News Alerts Mailbox Experts Journal You can manage all of your open positions and pending orders in the Trade tab of the Terminal window You can also view your balance equity and margin data in this tab You can also view open positions and pending orders in the Open and Pending Orders section of the Trade Terminal Which one you choose is a matter of personal preference For more information see Managing Orders in the Trade Terminal When you right click in a position row you can select menu options to open an order modify or delete an order or close an order You can also right click in the tab and select menu options to add the Commissions Taxes and Comments columns to the table You can also choose to display the value in the Profit column in points term currency or deposit currency Setting Stops and Limits in the Trade Terminal You can add stops and limits to all or individual orders and positions in the Open and Pending Orders window When you click Tools you can choose All Orders or when you have orders and positions already selected Selected Orders 37 T P 0 S S L lo tin in 1A Ww Break even buy L28 ig Fixed price 81 305 none
60. 5E0 7 i Pat fof Cot H Time Fror Hesir FOILS 1315 MT4 Powered by BT Registration E 2007 08 25 16 00 MT4 Powered by AT What Is Automated Trading E3 2007 09 25 15 58 MT4 Powered by BT Mobile Trading It s Easy E 2007 04 25 15 56 MT4 Powered by BT Welcome For Help press F1 Hf ut l i ee On the Common tab you can specify how you want the expert advisor to perform The Positions drop down menu allows you to select if the expert advisor opens both long buy and short sell positions or only long or short positions 128 You can click the Enable Alerts checkbox so that MetaTrader sends you a message when the expert advisor has placed a trade You can also click Disable Alerts Once Hit so MetaTrader only sends a notification once In the Live Trading section you can click Allow Live Trading to enable or disable the expert advisor in live trading You can also click Ask Manual Confirmation to have MetaTrader send you a notification when the expert advisor opens a position The Safety section contains options for specifying how to handle dynamic link library dll files While you may have already specified how MetaTrader handles these for all expert advisors custom indicators and scripts in the Options window you can specify individual settings for the selected expert advisor here When checked the Allow DLL Imports checkbox allows your expert advisor to automatically access dynamic link library
61. 8 DCAD 1 10 T DUD OF 07 1 AUD 097 0 97 USOARA 7 00 7 0 USSD h UGOTAY La 14a F Bollinger Bands EURTRY 1 9950 1 9992 FS indicator window 1 F Shandard Dervishion Sym har re Indicator vani 2 Haaman x f E DeMarker DFI Accelerator Goilan OF ArcueradatiqnyTeshrit DET Allee LF Average Denechoral Be ree 5 T LEa F Byerbje Tr Raj DF Awesome Galaor FI Bears Power ao a F Bollinger Bards PRN PEEEE AAT PT PERIE TEISE eT PERN PAER PEP SEUR EEA SERE PESEE PIRES WAA PEPEE EEPE PEER PEERY PARER EEE PEETA DFI Eai Pomas i Commodity channa ee Lee Je saaat ee ee eee map besa eee E E eee h D pemarker F Ermekspes F Force Index F Frata ati Car AE E Dae lim i ode ere ea i oan iz Boe Jein Ce a Cact 16 ai 0 Z7 Cec H Corre Fronke l EURUSD JH pm STP ae a Tine From Heer E3 AOIDMIO2Z5 1315 MT4 Powered by BT Registration 2007025 16 00 FT Powered by BT What Is Automated Trading E P0025 15 58 MT4 Powered by BT Mobile Trading It s Easy E SDT 1S HTa Powered by BT Welcome Trade Males Ecer lone 5 For Heip press F Daak MAIS O LIF ALS OL Le UC OV LEHT 720 ki Modifying a Custom Indicator Attached to a Chart 1 In the chart right click and select Indicators List 2 Make sure the custom indicator you want is selected and click Edit 3 Make your changes as desired 138 4 Click OK
62. 8 02 34 modify 1 0 10 0 90364 0 90358 0 90314 F g 2010 08 18 02 34 modify 1 0 10 0 90364 0 90356 0 90314 3 3 2010 08 18 02 35 modify 1 0 10 0 90364 0 90354 0 90314 FF 9 2010 08 18 02 35 modify 1 0 10 0 90364 0 90352 0 90314 z Tester Settings Results Graph Report Journal The Graph tab shows the test results After a test you can view a graph which maps your balance with a blue line and the number of lots with a green line You can view this information in a legend that appears in the upper left corner The Report tab displays statistics about how the test was performed The Optimisation Results tab displays a table that contains information about all of the trades that were executed during the optimisation The Optimisation Graph tab displays a graph which maps your profitable trades in a green line and your unprofitable trades in a red line Not all tabs will appear when you first open the Strategy Tester window For example the Results tab Graph tab and Report tab appear only after the expert advisor has been tested The Optimisation Results and Optimisation Graph appear only when an expert advisor has been optimised See Testing an Expert Advisor in Section 5 Using MetaTrader s Autotrading Tools 20 section 2 Opening and Managing Your Trades Now that you re familiar with some of the windows in MetaTrader we ll look at the tools that you ll use to place and monitor your trades This section descr
63. 8 43 27 585 login 2010 08 30 18 26 04 585 login 2010 08 30 18 20 45 585 login 2010 08 30 18 13 27 agin Trade Account History News Alerts Mailbox Experts Journal Not all tabs will appear when you first open the Terminal window For example the Experts tab does not appear when you first open MetaTrader This tab remains hidden until you receive input from MetaEditor an application installed with MetaTrader that enables traders to import create and modify expert advisors or another MQL4 program See Section 4 Opening MetaEditor for the First Time for more information 18 The Data Window The Data Window displays price information for the instrument in the displayed chart You can view the open high low and close as well as the date time and volume When an indicator or a custom indicator has been attached to a chart you can view information about it in this window Fs fog E lt File View Insert Charts Tools Window Help El x E e ED A Gh New Order G Expert Advisors 1 18 BK QA Q p lk lah gt Y E A Ro te l i M MS mis M30 H1 H4 D1 Wi MN E i 7E p 5 38 w ete 18 4252 i Market watch 1 Click Terminal Symbol Bid Ask F EURUSD H1 s USDCHF 0 94396 0 94417 Date 2012 05 14 USDCHF E GBPUSD 1 59141 1 59167 Time 15 00 MetaTrader amp EURUSD 1 27211 1 27227 Open 1 28376 Lots 1 00 T s 0 B USDIPY 80 274 80 294 High 1 28485 20 6 jo B
64. 8502894 USD sell buy l sell 19 i j i Setting Value 0 94860 0 94883 1 26589 1 26608 Balance 40 132 85 Equity 40 229 55 USDJPY USDCAD AUDUSD a Free Margin 31 829 30 Lots 0 01 gt Ts gt Lots 0 01 gt Tis 0 i gt Lots 0 01 gt Ts S eae aaa anh TP 0 R a T P 0 lt s o mwe K Open Positions 2 sell sell buy 8 J Pending Orders 0 79 376 1 Sy T YF 0 97541 0 97559 Pips Profit 13 6 FURGRP FURAUD FURCHE 7 Open and pending orders y x Close 3 Tools sR OCA Summary F7 A MT4i Live G9 Settings 7 Ticket Symbol Action Volume Net profit Pips S L T P Open p Current Open time Duration Gross Swi 20222823 3 gt CADCHF Sell 3 00 331 99 10 5 0 92753 0 92648 2012 05 23 12 0 35 8 mins 331 99 x 20222825 3 EURCAD Sell 1 00 235 29 24 1 1 29434 1 29675 2012 05 23 12 0 35 4 mins 235 29 4 mm Trade terminal Connect AUDCAD Mi5 AUDJPY H1 CADCHF M1i5 EURCAD M1 AN For an overview of the Trade Terminal see Trade Terminal in Section 1 Opening MetaTrader for the First Time The Market Watch window contains several Mini Terminals which display current prices and market direction You can use features in each Mini Terminal window to place trades 12 00 shows the number of positions open for the selected instrument You can close all open positions for the selected instrument at once by clicking the number oO displays a drop down menu with sev
65. Add a news feed x Add a news feed Back Cancel You can subscribe to any RSS feed of your choice by entering its URL Feed URL Check feed MetaTrader will check to make sure that the feed is valid If it s not an error message appears If it is you can rename the feed if desired and click the checkbox to have an alert display when MetaTrader receives a new story At any time you can click Back to go to the previous screen or Cancel to exit the window entirely Filtering News in Connect In Connect you can filter stories that appear in the News section by keyword When you first open Connect the filter is set to display all news stories You can narrow down the selection of stories by clicking All Selected Feeds and selecting one of the preset filters Twitter News Ry Calendar 2 ds JAddafeed W Add a fitter All selected feeds z rounc Autochartist Daily Forex Articles the L CNBC Commodities Headlines CNBC Currencies Headlines mime CNBC Treasuries Headlines Resis CHN money markets news You can also add your own filter by clicking Add a Filter The Add a Filter window will open 156 Add a filter x Add a filter Cancel A filter searches all the entries for items which contain specified text The text to match against can be a list of items separated by commas For example EUR USD EURUSD matches against news items which contain either EUR USD or EURUSD Filte
66. CD Sample y i i i i i i i a SS PEON es acetates aa a a eae far eel ees oe eS ee ica aie ee fee a es omc caue vant ie in estes omit one ee ae anes eee re ee ee l aegis all a ae ee i i i i i i i i 17 Aug 2010 18 Aug 20 00 20 Aug 04 00 23 Aug 14 00 24 Aug 22 00 26 Aug 06 00 27 Aug 14 00 31 Aug 00 00 1 Sep 08 00 The EUR USD chart window with the expert advisor MACD Sample attached To show you that it s attached the name appears in the upper right corner of the chart window If you are using an EA and do not have a Virtual Private Server VPN subscription your EAs will stop running when you log out of MetaTrader You can verify if the expert advisor is active or not by looking for one of three types of icons in the upper right corner of the chart A means that the expert advisor was attached and is actively trading A shows that the expert advisor was attached but that live trading is disabled for it A x means that all expert advisors have been disabled For more information on expert advisors see Section 5 Using MetaTrader s Autotrading Tools 92 Applying Pivot Points to the Chart You can apply pivot points to any chart Pivot Points show key support and resistance levels in market moves Pivot Points appear in the Custom Indicators section of the Navigator window at Pivot Points Before you add it to the screen you can customise the length of the lines on the Inputs tab in the
67. Editor MACD Sample mq4 SEE E x KA Fie Edit View Tools Window Help E e FE Y d Uy GO gw LY Compile G Terminal r ticket OrderSend Symbol OP_SELL Lots bid 3 0 Bid TakeProfit Point 16384 D Files if ticket gt 0 O files A H include if OrderSelect ticket SELECT BY TICKET MODE TRADES Print SELL order ope Ea indicators ae else Print Error opening SELL order GetLastError libraries logs returni0 y O presets samples fam scripts a E templates f but it is more lmportant to exit 1t correct ly 9 MACD Sample mq ene eee 3 Moving Average mag4 OrderSelect cent SELECT BY POS MODE TRADES if OrderType lt OP_SELL amp amp f f check for opened position OrderSymbol Symbol f f check for symbol if OrderType OP_ BUY f f long position is opened f should it be closed if MacdCurrent gt O cs MacdCurrent lt SigqnalCurrent amp MacdPrevious gt SigqnalPrevio MacdCurrent gt MacDCloseLevel Point j OrderClose OrderTicket OrderLots Bid 3 Violet close position return O exit t check for trailing stop if TrailingStop gt 0 Ge A return Oj it is important to enter the market correctly E E E Dictionary Search Line Text Searching For OrderClose a C Program Files Interbank FX Trader 4 experts 29 result OrderClose OrderTicket OrderLots price 3 CLR_NONE Fa C Program Files Interbank FX
68. Help i es ED a Uy B LY Compile Terminal M rotate_text mg4 stdlib mg4 gt AE x ft Data kiil rotate text mq4 ary Alert Copyright 2004 Met aQuo tes Software Corp i A ArrayCopy ff http i wuw metaquotes net ft ay ArrayCopyRates property copyright Copyright 2004 MetaQuotes Software Corp ay ArrayCopySeries property link hetp wuww metaquotes net N Closef include lt stdlib mqh gt ay Commenti string line name rotating line y Conversion functions string object namel rotating text ay Data types Cee Date amp Time Functions void initi i Faa Defining extern variables Print point Point bars Bars N Error codes Faa Execution errors Dp Faa External functions definition i I FileFlush oft void deinit I FileOpen i ay FileOpenHistory ObjectDelete line name ary FileReadarray ObjectDelete object namel 7A FieReadDouble ObjectsRedraw ay FileReadInteger Fa FileSeek CB FileTell PB FileWritet Files Dictionary a Back D For MQL4 Reference Basics MetaQuotes Language 4 MQL4 is a new built in language for programming of trading strategies This a Standard constants language allows to create your own Expert Advisors that make trading management automated and are a Predefined variables perfectly suitable for implementing of one s own trade strategies Besides one can use MQL4 for creation of Program Run one s own C
69. I I I I J I 1 26025 Powys ey of oo er ae Brrr gia ve cra Deas oe Gx Bs sty gare et ee Ss ary Pia Clit tt Pao 4 peaa be Oat y ita Vay pt yt Br eae tee Posigt cee it ihe ia a ure Dire a Sa 2 3 ad i i i i i i i i i i i i i i pe ee ee ee ee ee ee ee 1 25760 11 Aug 2010 12 Aug 18 00 16 Aug 04 00 17 Aug 12 00 18 Aug 20 00 20 Aug 04 00 23 Aug 14 00 24 Aug 22 00 26 Aug 06 00 27 Aug 14 00 31 Aug 00 00 1S5ep 08 00 2 Sep 16 00 Modifying an Expert Advisor Attached to a Chart 1 In the chart right click and select Expert Advisors 2 From the drop down menu click Properties 131 3 Make your changes as desired 4 Click OK Removing an Expert Advisor from the Chart You can remove expert advisors from the chart using several methods An expert advisor stops working when you close the chart attached to it or close the MetaTrader application You can also right click in the chart and select Remove from the drop down menu Moving Average l 1 30265 1 30000 Trading Expert Advisors Properties aoe Objects List Ctl B S Remove 1 29470 Periodicity S Strategy Tester F6 1 29205 Template 1 28939 Refresh i m i 1 28675 Auto Arrange Ctrl 4 Grid Ctrl G i i i i i 1 28410 Volumes Ctrl L 1 28145 Zoom In 1 27880 Zoom Out 1 27615 Save As Picture Print Preview k 1 27350 Print Ctrl P 1 27085 Properties FS 1 26820
70. MetaTrader can import news messages and other information from the server if available AN Usually the information that appears on the Server tab is first entered when MetaTrader is installed and you do not need to change it If you believe you need to change it contact Technical Support Specifying Chart and History Data Properties The Charts tab in the Options window displays the settings for the chart windows and history data Options Server Charts Objects Trade Expert Advisors Email Publisher Events Show OHLC Show ask line Show period separators Color print Save deleted charts to reopen Max bars in history 612000 v Max bars in chart 65000 v The Show Trade Levels checkbox displays or hides a horizontal line on the chart that shows where a position was opened or where a Stop Loss or Take Profit order will occur The Show OHLC checkbox displays or hides price information that appears in the upper left corner of the chart window You can view the open high low and close of the latest bar candle or line on the screen The Show Ask Line checkbox displays or hides a horizontal line on the chart that tracks the ask price of the last quote In MetaTrader the price moves that you see on the chart track the bid prices of the selected instrument but when you open a long position or close a short position the ask price is always used This line shows traders what the ask price is The Sh
71. Miia SY kb The script will be removed from the chart if you e Exit MetaTrader e Change the instrument or time frame e Click on a script in the Navigator window and drag it to the chart e Right click in the chart and select Remove Script 144 Modifying an Expert Advisor Custom Indicator or Script Once added to the Navigator window you can edit an expert advisor custom indicator or script before you add it to the chart if you know MQL 4 Right click on the autotrading tool in the Navigator window and select Modify from the drop down menu This opens MetaEditor and displays the source code of the file Modifying an Expert Advisor Custom Indicator or Script _ Right click on the autotrading tool you want in the Navigator window and select Modify In MetaEditor make the changes you want to the code file as desired 2 3 Click Save 4 AN MetaEditor is an application installed with MetaTrader that enables traders to import create and modify expert advisors custom indicators scripts and other autotrading tools See Section 4 Opening MetaEditor for the First Time for more information 145 Deleting an Expert Advisor Custom Indicator or Script from the Navigator If you make a mistake or change your mind after you add an expert advisor custom indicator or script to the Navigator window you can permanently remove it from MetaTrader Fie Veww Inet Chats Took Window Help dhs Oty i Wi i New Order
72. OCHF 9 91810 091837 GBPUSD 1 58675 1 58704 3172 aye gt pesi Fata pei News E Calendar lt 4 Twitter E Dashboard Live chat EURUPY 106 616 106 642 USDCAD OS9745 OS9772 AuTi Live Pubic shan E Add sccourt s J Edtaccount s S Anshyss aubuso meee gaa MT4i Live account Account group Curren Balance EURGEP 02410 05H34 EuRAUD 1276591 1 269351 Lsymbeis nams o SB oceM avigator x qa ed by BT HA A H fF Indicators H Expert Advisors fag Custom Indicators 5 1 Scripts common F tes z H4 GFT Conmect x Order Time Tyre Sue Symbol Price S L T P Price Commission Swap Profit O Equity 0 000 00 Free margin 50 000 00 0 00 Trade my Termer For Heip press Fi Default esi 1636 1 kb Menu Bar Toolbar Market Watch Navigator Terminal Status Bar Chart window rommogd wo D Connect window MetaTrader has a customisable interface You can open move arrange resize and close windows as you see fit The Menu Bar At the top of the workspace you ll see the MetaTrader menu bar You can use options in the seven menus that appear here to manage windows and other tools while you trade File View Insert Charts Tools Window Help File Displays menu options for opening and printing charts managing chart profiles and displaying account information View Contains menu options for displaying MetaTrader windows and toolbars You can also mana
73. Options window _ 2088454440 MT4 Powered by BT Demo Account EURUSD H4 kh Eh ae Caty i m ah New Onder ap OF Expert Advisors rhe i EEE eRe ee ee Symbol Bid Ask A USDCHF 0 5 O98 GAD 1 58 1 50 EARLS 1 35 1 35 AE fence acca Options G DCAD 1 02 1 02 USD 0 74 O74 Server Chats Dbd Trade Expert Advor Emal Publishes Everts 2 AUDUED 0 30 030 USDZAR 6 53 6 96 F Enable Expert Advisors except lor Custom Incbcators and Scriptt DSD 1 29 1 29 USOTRY 1 42 142 F EURTRY 1 9780 1 3806 G AUONED 1 31 3 C Alke ive tracing Syiiias W Citable spats when the aoooundl har bean changed ie Cutable eoperts when the profile has been changed _ Allow DILL impots E MT Powered by BT agl Acpourts F Indicators pE Expert Advisors a A Custom Indicators Ta chose To delete_pending o modiy 1 modify_pending Le OrderSend T Alka eemal ipet mpat gn j e 7 CHi MOD Lct S 13 Ct 1b ES et OM IP Le A A oe Soe et Ibe T F Chet 20 oo Haara D mitit 1215 MT4 Powered by BT Registration E 2007 05 25 1600 MT4 Powered by BT What s Automated Trading E S0T0S 25 159500 MT Powered by BT Mobile Trading It s Easy MT4 Powered by BT Welhoon ni 00 kb You can open the Options window by clicking on the Tools menu in the MetaTrader tool bar and selecting Options The Enable Expert Advisors checkbox activates all expert advisors in MetaTrader When
74. Options window displays the settings that specify how MetaTrader connects to the servers Serve Charts Objects Trade Expert Advisors Email Publisher Events Serwer Example Server J Login xunn o Password eeeeeee E Data Center auto configuration Data Center a ee EEG Enable proxy server Keep personal settings and data at startup Enable DDE server Enable news The Server drop down menu enables you to select one or more servers This should already be set with the server IP address and port number you need The Login and Password text boxes are where your login information is stored If you need to change your password click Change This opens the Change Password window where you can enter and confirm your new password 165 If your version of MetaTrader is set up to use a data centre make sure the Data Centre Auto Configuration checkbox is selected The Keep Personal Settings and Data at Startup checkbox stores personal information and other data about your trading If you are using MetaTrader on a shared computer you can clear your login information by unchecking this checkbox The Enable DDE Server checkbox displays whether expert advisors and other tools in MetaTrader can use the Dynamic Data Exchange DDE a tool on Microsoft Windows operating systems that allows your computer to exchange information with other applications The Enable News checkbox displays whether
75. Pivot Bars Length variable You can also change the colour and line style of each line by clicking the Colours tab and selecting the line and colour you want For more information on custom indicators see Adding a Custom Indicator to the Chart Adding Pivot Points to a Chart i 2 Right click Pivot Points in the Navigator window and select Attach to a Chart If desired select the Inputs tab For the Pivot Bars Length variable double click in the row in the Value column and enter a number for length If desired select the Colours tab and change the colour and line style by double clicking in the field When done click OK 93 Adding the Currency Index to a Chart You can add a currency index to any chart as you would a custom indicator The currency indices such as the dollar index are often used as a benchmark of one currency against several others GBPUSD HI ro D femal The Currency Index appears in the Custom Indicators section of the Navigator window as Currency Index When you first add it to the chart you can specify which currency will be the focus of the index the range of prices how it appears in the chart and other details For more information on custom indicators see Adding a Custom Indicator to the Chart Adding Currency Index to a Chart 1 4 9 Right click Currency Index in the Navigator window and select Attach to a Chart 2 3 Click the Inputs tab For the Cu
76. Previous G2 sync BB Next MQL4 com M L4 Reference File functions FileReadDouble a FileClose double FileReadDouble int handle int size DOUBLE_VALUE FileDelete Reads the double precision number with floating point from the current binary file position The number FileFlush format size can be 8 bytes double or 4 bytes float a FilelsEndin To get the error information one has to call the GetLastError function v Errors Findin Files Online Library For Help press lt F1 gt Ln 5 Col 52 This window is where you can specify what appears in the selected toolbar The Available section shows any menu options that are currently not in the toolbar and can be added The Selected section displays all of the options that are currently displayed in the toolbar The tools that appear in the Available and Selected section depend on which toolbar you right clicked on To place a tool on the toolbar you can select it in the Available section and click Insert Conversely you can remove a tool from the toolbar by clicking it in the Selected section and then selecting Remove You can also reposition the order of the tools in the menu bar by selecting a tool and clicking Up or Down 102 If you need to return to your original settings click Reset When you are done reordering the toolbars click Close The Toolbox Window You ll use the Toolbox window to find and download user community created autotrading files You ca
77. R ERE PEPER ERE S TERE LELy Line graph BBB eee Volumes OB B w E O mimjmi fmin Bear candle Ask line Stop levels Custom NK If you don t see a colour you want to add click Custom at the bottom of the Colour Selection menu This displays the Colour window You can enter a colour code or use the colour view to click and drag to mix the colour you want When you have the colour you want click Add to Custom Colours You can add up to 16 custom colours When you are done click OK SERED Diiin Hue 160 Red 0 Sat 0 Green 0 0 ColorlS olid Lum Blue Add to Custom Colors 162 Customising Viewing Settings on the Chart Window On the Common tab you can also specify settings Some of these may already be selected based on what you chose in the Charts toolbar Properties of FURUSD H4 P Colors Common C Offline chart Bar chart Chart on foreground Candlesticks Chart shift Line chart Chart autoscroll Show OHLC Show Ask line C Scale fix One to One Scale fix 1 41800 Fixed maximum C Show period separators Show grid C Show volumes 1 36850 Fixed minimum C Show object descriptions The Offline Chart checkbox turns the chart offline wnen checked the chart window stops receiving and drawing price data The Offline Chart checkbox will be checked if you click the File menu and select Open Offline The Chart on Foreground
78. SDIRY 1 4 1 EVRIRY 1 7 0 WF Gator Gscillstoe OF Tech moias Kinko Hyo 7 aD OF Market Facilitation I F Pacers Fipa index m nn in aki iis biter eo be Sod Ona apa Bea jigo FEO OO H cet Oe et hag Loren ELBE HA Click Add to add a variable Double click in each column to specify the variable name and its value To remove a variable select it and click Delete Using the Advanced Security System MetaTrader uses 128 bit key encryption when trading If you work with an organisation that needs additional security MetaTrader also offers an Advanced Security mode that provides public and private keys If you are using the Advanced Security system but need to place a trade at another computer you will need to transfer the keys from your computer to the one you are trading on The key files are stored in the Config folder in the MetaTrader folder If the Advanced Security system key has been lost or damaged contact Technical Support 177 Appendix A MetaTrader Hot Keys You can access tools and features in MetaTrader using the hot keys These allow you to use the keys on your computer keyboard to open or close tools and features without navigating through menus or clicking in the toolbar Keystroke Page Up Scrolls the chart to the left Page Down Scrolls the chart to the right Moves the chart to the oldest point in the chart history Moves the chart to the most recent chart moves in the chart his
79. Trader 4experts g6 OrderClose OrderTicket OrderLots Bid 3 Violet jf close position ay C Program Files Interbank FX Trader 4 experts OrderClose OrderTicket OrderLots A4sk 3 Violet J close position Ce C Program Files Interbank FX Trader 4 experts 103 if Open 1 gt ma amp amp Close 1 lt ma OrderClose OrderTicket OrderLots Bid 3 White ay C Program Files Interbank FX Trader 4 experts 108 if Open 1J lt ma amp amp Close 1 gt ma OrderClose OrderTicket OrderLots Ask 3 White 5 occurrence s have been Found Errors Findin Files Online Library Help For Help press lt F1l gt Ln 82 Col 49 Click the Find in Files menu option in the Edit menu to open the search window Type the word you want and use the drop down menu to select the location you want When done click Find Find In Files Find what OrderClose v In files file types mad 7 v al In folder C Program Files Interbank Fx Trad Match whole word only Match case Look in subfolders You can view the list of files and the line in the Find in Files tab To go to the line you can right click in the Find in Files tab and select Go To Line from the drop down menu that appears You can also double click one of the results The corresponding file is displayed with the cursor on the found text and the line is marked with a green arrow in the margin field 104 x File Line Text Searc
80. Type to specify if the indicator appears as a line section histogram or arrow You can also right click the Colour field and select Change Colour to specify what colour you want the indicator to be If you make a mistake you can also remove an index by selecting it and clicking Delete 134 When you click Finish the wizard closes and opens a text file with the code for the parameters in it You can continue to add code for the custom indicator The source file MQ4 is saved in the Indicators folder in the Navigator window of MetaEditor Creating a Custom Indicator In MetaTrader right click on the Custom Indicators menu in the Navigator window and select 1 Create 2 When the Expert Advisor Wizard opens in MetaEditor make sure Custom Indicator is selected and click Next 3 Enter the custom indicator name the developer s name and the developer s website 4 If desired click Add to add a parameter to the custom indicator If you need to customise it right click on the parameter and select Change Type Edit Value or Rename as desired 5 Click Next 6 If desired check Indicator in Separate Window Then check Minimum and Maximum and enter in a value 7 lf desired click Add in the Indexes section Then right click the Type field and select Change Type to choose the type you want from a drop down menu You can also right click the Colour field and select Change Colour to select a colour 8 Click Finish 9 Make the
81. Violet f close position ay C Program Files Intert iF Open 1 gt ma amp amp Close 1 lt ma OrderClosefOrderTicket OrderLots Bid 3 White ay C Program Files Interb iaaii i iFf Open 1 lt ma amp amp Close 1 gt ma OrderClose OrderTicket OrderLots Ask 3 White 5 occurrence s have bee aua n Errors Find in Files Online Library Help For Help press lt F1 gt Ln 29 Col 1 x F SY Refresh S Experts Indicators pia Scripts Libraries N Articles amp Download MOQL4 com v FA Name Description Date T Author A pSAR bug Opens and closes orders using parabolic SAR signals now with improved Features 2010 10 25 tonny error EA but with run with profig i MA_Mirror E pramono 2 I wrote an Expert Advisor For it 2010 10 13 tflores EA_RSI_MA Download e indicator RSI_MA EA designed for EURUSD D1 2010 09 29 basisForex E4_PSar_002B_y 1 Refresh jea of the indicator Nik_PSAR_2B http codebase mal4 com 6934 2010 09 22 basisforex Flat_001a Open 8 time OpenHour_1 0 North American Eastern Standard Time 2010 09 16 basisforex Auto Arrange z n PPPE Errors Find in Files v Grid For Help press lt F1 gt Ln 29 Col 75 Go to Line This appears in the Errors tab and the Find in Files tab Go to Line opens the corresponding file with the cursor on the found text and a green arrow in the margin field of the line Copy This appears
82. YT Sli eli iid i En enn eee ee ee ee ee ee ee ee ee ee eeseetaweedto weve et ode How we twwwmewmt www entdo wwe to wewwmt www etbao wwe to wwwmtwwwewtbtawwwetowweert ween tboweo eda wwe ewrt www entbo wwe to www wmbt www eatbao wwe to wo wwmt ween tbtaocawana eS Peano Naber oo ete o feats aaa a r eats beet a ees Genet eee ei ee Nias bln Gite S fee a edad wate gaia edie ieee aa pail pees lee eos unnn hM H ben Relea oe it Meal on Nn HF h elie Re eh i ieee Re al Mee Ned ol Bet eeseaweteswsvedavovvobaecoo ds cs ofWeweeweteoecowelba Oboe doen ob ooo bo GHG ah esetaewewaodawevvetewawetbawendewevetaewewtasweedeweeweltaeecewd sow oth hb ww wot ewewwehbaawoaaed aoa emit aaa pitted Matted ited aaa fl lel indi eaea a ih aaa boaa il bey eed ihe aaa a aaa aa aa a dbs ada ea aiae jude Nel kd aad beineicdidis tit ite ie Rel i A ee ee tie stirs tt Ok 1 eee a solidi gt Fo 1c ali fee Ieee iid i ee ne eee eee ee ee s l a l a eeseetasaeaoaedawennteonceonthbaoaooada a ies ete aie ieee tenes Dee ie ied eet iti oa bh al ees aaa bt pea eee l o pe A eee ie palit ei bite cl eee ein oi bed eek A alae lai SE ee nee en ee ele eed doe ed ee a l a esasaantaaweaedasaenentaavwaethbawendaewweewtaanawavthtaweadaanfacetaeaaenthbawwadMaweweotawewawhbaweadaewaeaYBdgaawatawaadacan Gob Ma o ah TYETA CES 6 ae alte Pw wewawwbtaacaahba TTY ee men tet itil lien Neti a il ennhe a nd nn en ee 2 oe oe eo
83. a Virtual Private Server VPN subscription your OCA will stop running when you close MetaTrader Viewing Pricing Information Before you place an order you ll want to monitor the price and determine a good point to enter the market You ll also want to pick points for your take profit or stop loss orders 22 You can monitor the real time bid and ask prices of the available instruments in the Market Watch quote board Market Watch 16 27 20 x Symbol Bid Ask GBPUSD 1 53319 1 53352 EURGBP 0 82784 0 82810 EURUSD 1 26944 1 26965 ae EL New Order F9 USDIPY 84 108 84 11 AUDUSD 0 89008 0 8904 Exh Chart Window USDCAD 1 06521 1 0659 lv Tick Chart Space EURCHF 1 28962 1 289 EURIPY 106 780 106 9 EURCAD 1 35226 1 352 EURAUD 1 42576 1 4261 Show All GBPCHF 1 55752 1 558 Symbols GBPJPY 128 959 129 0 Sets CHFIPY 82 776 82 8 Hide Delete Hide All High Low Symbols Tick Chart Time Auto Arrange Y Grid Be Popup Prices In addition to the Market Watch quote board you can also view the Popup Prices window which displays a list of symbols and prices You can view this by right clicking in Market Watch and selecting Popup Prices Popup prices GBPUSD EUIRGBP EURUSD USDCHF USDIPY AUDUSD USDCAD EURCHF EWRIPY EURCAD FURAUID GBPCHF GBPIPY CHFIPY If you right click on the Popup Prices window you can choose how you want the window to appear on screen Alwa
84. ader without closing MetaEditor by clicking Terminal jn the toolbar 119 Testing an Expert Advisor Once you create an expert advisor you can test your own expert advisors before you attach them to a chart You can also specify settings so MetaTrader can automatically optimise the expert advisor The Strategy Tester shows you how an expert advisor would work on a particular instrument under one or more market conditions You can access the Strategy Tester by clicking View and selecting Strategy Tester x Expert Advisor MACD Sample v Expert properties Symbol AUDUSD Australian Dollar vs US Dollar vj Period M1 vi Symbol properties Model Every tick the most precise method based on all available least timeframes to generate each t v Optimization Open chart Use date Modify expert Visual mode Start Journal You can select the expert advisor you want to test using the Expert Advisor drop down menu which contains a list of all available expert advisors If you want to see or modify the settings of the expert advisor before you run it you can click the Expert Properties button This displays a window with information about the expert advisor on three tabs MACD Sample Testing Inputs Optimization Initial deposit 7 v USD Positions Long amp Short Optimization Optimized parameter Balance Genetic algorithm On the Testing tab you can te
85. ading 13 e Live Chat opens the Live Help window e Webinars displays a list of upcoming webinars and seminars e Free Guides displays an index with all complementary trading guides e Open Account opens the account registration page While the Dashboard contains fields for balance equity and margin data you should not use these to moderate your account When you sign up for MetaTrader 4 you will also receive access to an online trading application which displays the most accurate trading activity on your account All transaction order history information that appears in this online trading application is considered the most accurate and legally binding Because of this we recommend that you have both MetaTrader 4 and the online trading application open when trading to compare equity values A For more information on customising the views for the News and Twitter sections see Section 7 Customising the Appearance and Settings in MetaTrader The Mini Terminal The Mini Terminal displays real time prices and the current market direction of a specific instrument You can also use it to place one click market orders or set up a trade with multiple stops and limits 14 EURUSD H1 EURUSD 12 00 Lots 1 00 T S 0 sf o G T P 10 A 20 1 31973 Before you use Mini Terminal you need to make sure that Expert Advisors is active to use it Mini Terminal appears under Expert Advisors in the Navigator window
86. aler 1 26656 Closing a Position at the Current Market Price 1 Right click in a position row in the Trade tab of the Terminal window and select Close Order to open the Order window 2 When the Order window appears click Close by Market 3 Click Print to print the order information if desired 4 Click OK to close the window You can also double click on the position row you want to open the Order window You can also reverse your position by clicking the Sell by Market or Buy by Market buttons Closing Offsetting Positions If you have two offset positions in the same currency pair in the same size you can use the Multiple Close By menu option to close out opposing positions for the currency pair selected For example let s say you have two long EUR USD positions and one short EUR USD position in MetaTrader 4 Order Tene Type Saze Symbol Price s t TIP Price Commission Swap Proft D K L39663 4589737 2011 03 02 21 51 buy 1 00 evusdgt 1 36599 0 00000 0 00000 1 38663 0 00 0 00 11 54 g 4569739 2011 03 02 21 S1 sell 1 00 curusdgt 1 30575 0 00000 0 00000 1 38700 0 00 0 00 18 02 i Balance 499 917 74 Equity 499 876 64 Margin 1 000 00 Free margin 498 876 64 Margin level 49987 66 41 10 You can use Multiple Close By to close the offset positions 48 Order 4589736 buy 1 00 EURUSDeft at 1 38699 si 0 00000 tp 0 00000 EURUSDoft Euro vs US Dollar 1 38701 1 00 v 1 38696 Comme
87. ameters to the file in the wizard by clicking Add Once added you can change what kind of parameter the expert advisor uses by right clicking on it and selecting Change Type This displays a drop down menu of several strings You can also change the initial value for the parameter by right clicking on it and selecting Edit Value If you want to change the name of the parameter right click on it and select Rename You can also remove a parameter by selecting it and clicking Delete When you click Finish the wizard closes and opens a text file with the code for the parameters in it You can continue to add code for the expert advisor The source file MQ4 is saved in the Experts folder The expert advisor appears as a selection in the Navigator window of MetaEditor under the Templates folder on your computer Creating an Expert Advisor 1 In MetaTrader right click on the Expert Advisors menu in the Navigator window and select Create 2 When the Expert Advisor Wizard opens in MetaEditor make sure Expert Advisor is selected and click Next 3 Enter the expert advisor name the developer s name and the developer s website If desired click Add to add a parameter to the expert advisor If you need to customise it right click on the parameter and select Change Type Edit Value or Rename as desired 5 Click Finish Make the changes you want to the code file as desired 7 Click 94 Compile You can switch back to MetaTr
88. annels on the Chart When you click on the Insert menu and select Channels you can select from one of four different types of channels to draw Fibonacci Channels draws six parallel lines at specific distances defined by the Fibonacci sequence 0 618 1 000 1 618 2 618 4 236 When it is selected click where you want the channel to begin and drag your cursor to place it 72 Linear Regression is a statistical analysis tool that is used for forecasting future values of an instrument When it is selected click where you want the channel to begin and drag your cursor to place it Equidistant draws two parallel lines that remain equidistant no matter where you place them When it is selected click where you want the channel to begin and drag your cursor to place it You can then click on the secondary line and drag it in the chart 73 Standard Deviation draws three parallel lines that are separated by a set deviation Once placed you can click and drag the channel along the price moves and the channel distance will adjust based on those prices When Standard Deviation is selected click where you want the channel to begin and drag your cursor to place it You can change the deviation in Standard Deviation lines by double clicking on the line and then right clicking to select StdDev Properties On the Parameters tab you can enter a new value in the Deviations text box Drawing with the Gann To
89. ant 10 points one pip Once active the trailing stop appears in the S L column of the Trade tab The Trailing Stop drop down menu also contains the Custom menu option When you select this you can enter a specific number of points in the Custom window Trailing stop Trailing Stop is a method to move Stop Loss level automatically Minimal Trailing Stop level is 15 points Traling Stop level points If you place a trailing stop and eventually want to remove it you can right click on your order select Trailing Stop and click None You can also remove all trailing stops from your open positions by selecting Delete All in the Trailing Stop drop down menu When you set a trailing stop your stop needs to be more than 15 points away from the current price Placing a Custom Trailing Stop Right click in a position row in the Trade tab of the Terminal window and select Trailing Stop 2 In the drop down menu that appears select Custom 3 Enter number of points you want 4 Click OK You can also set trailing stops from several other places in MetaTrader You can enter trailing stops in pips as you place orders from the Mini Terminal or the 42 Market Watch window in the Trade Terminal See Placing Orders in the Min Terminal or Placing Orders in the Trade Terminal You can also enter them when you open the New Order window See Placing Orders in the New Order Window You can also set trailing stops from
90. any open positions that you have or stop expert advisors from placing trades MarketWatch ai USDCHF 9 GBPUSD EURUSD 9 MetaTrader 4 Lots vs 0_ Lots Ts 0 S Lots ts 0 g E su f E wb sm b amp wb amp aw b amp wb K sell 2 3 buy 2 2 sell 1 9 Setting Value 0 94860 0 94883 1 26589 Balance 40 132 85 Equity 40 229 55 USDJPY USDCAD 9 AUDUSD Floating PL 9670 Free Margin 31 829 80 Lots Tis 0 S Lots T s 0 S Lots Ts jo g Margin In Use 8 399 75 su f wb sm b wb K w b amp wb K E REN 2 ij buy 2 0 1 8 buy Pending Orders 0 79 393 1 02407 0 97541 0 97559 Pips Profit 13 6 EURGRP Furaun _ ___ FURCHF d Close Toos shROCA E Summary MT4iLive Settings Action Volume Net profit T P Sell 3 00 331 99 Sell 1 00 235 29 Open p Current 0 92753 1 29434 Open time 0 92648 2012 05 23 12 0 1 29675 2012 05 23 12 0 Duration Gross 35 8 mins 331 99 35 4 mins 235 29 Trade terminal Connect AUDCAD Mi5 AUDJPY Hi CADCHF Mi5 EURCAD M1 gt When you click you can view the Alarm window Balance Less or equal to 10 minutes F Send email requires MT4 email settings in Tools Options Email Close orders charts F Close all orders F Close all charts stops EAs trading 52 When you click you are placing an alarm on that account detail If you clicked the wrong account detail
91. as well 36 Summary allows you to group your orders by symbol direction duration or other information When you make a selection MetaTrader displays the list of orders in a separate window along with information about profit pips and volume MT4i Live allows you to login to MT4 Live and publish your trading history to their website Settings contains two commands Confirmations and Preferences is where you specify confirmations for quick buy sell and close all Checking Undock Terminal moves the Trade Terminal outside the MetaTrader workspace You can also access commands for a particular order in its row Each row has a Q that you can use to close the position and its related orders instantly Each row also has This changes to to show that the Trade Terminal is carrying out an autotrading action Managing Orders in the Terminal Window You can view your open positions and pending orders as well as your closed trades on two tabs in the Terminal window Order Time Type Size Symbol Price smi TP Price Comm Taxes Swap Profit Comment F 92354 2010 07 29 16 44 buy 2 00 eurusd 1 27143 0 00000 0 00000 1 30727 0 00 0 00 101 02 7168 00 F 92354 2010 07 29 16 48 buy 2 00 gbpusd 1 53700 0 00000 0 00000 1 55844 0 00 0 00 87 38 4288 00 F 92354 2010 07 29 16 49 buy 2 00 eurgbp 0 82701 0 00000 0 00000 0 83903 0 00 0 00 230 60 3 695 14 F 93237 2010 08 26 16 00 buy 4 00 eurusd 1 27143 0 00000 0 00000 1 27205 0 00 0 00 21 3
92. ate expert advisors or scripts you may want to add a dynamic link library dll to the file You can download or create one in MetaEditor an application installed with MetaTrader that develops autotrading tools File View inet Chats Took Wiredow Help Symbol USDCHF 4 GEPLSO gt EURLED a UDT 4 DCAD UD T AED T LEOZAR a USDSGD Y USDTRY 4 EURTRY T lt gt Gy i al h New Order CP GR Expert Advisors GT Ta err ee ei A 2 Pe Tia MTA Powered bry BT GE Accounts F indeabas Expert Advisors a Cuban Miaa Cii ih Ciesa Irizert ki Tira Eil Ask A 0 2 0 98 Paa 07 0 37 0 97 144 LH xX Set hotkey Orders bery E 20101025 1215 MT4 Powered by BT EJ 2007 09 25 1600 MT4 Powered by BT E 2007 09 25 15 58 MT4 Powered by BT E 20070925 15 56 Td Powered by GT Tai DA LIP Hesdire Registration What Is Automated Trading Mobile Trading t s Easy Welton a aa Han i Ga jja x pa Fe plier d Tbch bo online iay Deiak Wiii 117 0 kb You can either download dll files from the MetaEditor Online Library or create one using the tools in MetaEditor To access MetaEditor from MetaTrader click the MetaEditor button in the Standard toolbar 147 gt Metakditor stdlib mg4 Sele File Edit View Tools Window Help b as TT t Pa r gs 5 FE a Ly lB a K Compile Terminal M os x stdli
93. aying the Chart Toolbar n0nnannannannennnnnennnnnnnnrrnrrrrrrnrrnrrrrrerrnrrrrrnrnrrrrrrnrrrrrnenne 57 Selecting a Chart Type and Time Frame cccc cece ceccc cece eeeeeeeeeeeaeeeseeeeeeeseeeaeeeaeeeaees 58 Switching Between Chart Time Frames and Instruments with Fast Navigation 61 1 Displaying Other Tools in the Chart Window ccccceccceecseeeseeeeeeeeeeeseeeseeesaeeseeeaes 62 Displaying the Line Studies TOOlbar cccccccceccceeeceeece cece cess eeseeseeeseeeseeeseeeaeeaeeeaes 65 Dra winiG Me Cian cts sccceceiredc a ede a ha dmaetiausnc eeeeeeseee ds 71 Drawing Channels on the Chaft cccccccccccceeceeeeceeeceeeseeeeeeeseeeseeeseeeseeeseeeseeesaeeaaeeges 72 Drawing with the Gann Tools on the Chart 0 0 0 0 cccccccceccceeeeeeeseeeeeeeeeeeseeeseeeseeeaeeeaes 74 Drawing with the Fibonacci Tools on the Chatrt ccccccceccseceseeeseeeeeeeeeeeseeeseeeseeeaes 76 Adding Shapes to the Charts icicisecoisscience lin ernesiinnd Aecadin tse teisiel eee edeneeeiees eee 78 Using the Advanced Drawing Tools in the Charts c ccccccseccseeseeeeeeeeeseeeseeeeeeneees 80 Configuring Drawings in the Chart ccccccccccseceseeeseeeseeeseeeeeeeeeeeseeeseeeseeeseeeseeeaeeeaees 83 Grouping Charts With Profiles scicscecencestent acess ocehdsuedhs a a a a e wee 85 Placing Trades from tne CMA ersan nt eet are NET 86 Managing Technical Indicators in the Chatrt cc
94. b mq4 Fix r z aox oe y O files stdlib mq4 B B include Copyright 2004 2006 MetaQuotes Software Corp L i o H indicators i http www metaquotes net P ae a ee TT Ee Bee ee a ot DL a mE 4 a9 libraries property copyright Copyright 2004 MetaQuotes Software Corp stdlib mq4 property link http www metaquotes net O logs property library presets fs H samples scripts int ait t int initi fm H templates 9 Print Init function defined as feature sample MACD Sample maqt int deinit i Moving verage mq4 Print Deinit function defined as feature sample too t7 f return error description ff t menee string ErrorDescription int error code string error string switch error code f Files Dictionary Search E Refresh Experts F Indicators pi Scripts Libraries Articles Downoad MQL4 com FA Name Description Date 7 Author Symbols mgh Retrieve a list of all Symbols Instruments known to the Server with MarketInfo output to a CS File 2010 09 14 sxTed TCP socket placed utility Functions From ryaz s server socket into socket mgh makes it really easy to use comes with simil 2010 07 05 Starry Send a notification to your ICQ MSN A In conjunction with Miranda IM you can use this library to control your Mirand IM client 2010 03 25 seizu Array virtualOrders Library For
95. bject code when you add an arrow icon to the chart window When selected the Ray checkbox draws all lines on the charts as lines that start at one point and continue in one direction toward infinity This is selected when you first open MetaTrader Trendline a Common Parameters Visualization C Show on all the timeframes CM M30 M5 H1 Weekly M15 H4 C Monthly The Visualisation tab contains settings so you can specify in which time frames the object will appear on the chart When you first draw the object Show on All Time frames is automatically selected Editing Drawings in the Chart 1 Right click in the chart window with your drawing objects and select Objects List 84 In the Objects On window select the object you want and click Edit In the Common tab make sure the name is correct and enter a description if desired Use the drop down menus to specify the colour of the drawing object and the line style Click on the Parameters tab and make changes as necessary oY Ol 2 by If you want to specify a time frame click on the Visualisation tab uncheck Show On All The Time frames and check the time frames you want When done click OK Select another object in the Objects On window to edit if desired N 9 When done click Close single drawing object in the chart window to select it Right click on it and select the Properties menu option This will open the edit window f
96. can also add your own filter by clicking Add a Filter Add a filter x Add a filter Cancel A filter searches all the entries for items which contain specified text The text to match against can be a list of items separated by commas For example EUR USD EURUSD matches against news items which contain either EUR USD or EURUSD Filter name Text to search for Alerts Display new item alerts Add filter Tre i U U a H a a When the Add a Filter window opens you need to name the filter and then type the keyword in the field You can click the checkbox to have an alert display when MetaTrader receives a tweet that matches the keyword If you want to enter more than one keyword you need to separate the keywords by commas For example if you were looking for information about the EUR USD you would enter EUR USD EURUSD in the field When done click Add Filter At any time you can click Cancel to exit the window entirely 159 Changing the Mini Terminal and Trade Terminal Settings You can control the settings for the Mini Terminal and Trade Terminal by clicking Settings and choosing Confirmations and Preferences from the drop down menu Confirmations and settings x These settings affect the full terminal and all mini in chart terminals Confirm quick buy and quick sell orders Confirm dose all for symbols E Non hedging mode sells dose buys and vice versa Gave settings Cancel
97. cccccceccceeceeeeeeeeseeeeeeeseeeseeeseeesaeeaes 87 Managing EXpeit AGVISOFS cncriniecinedi a a E a E TEE AEE E aE 92 Applying Pivot Poms tothe CHAM ieicdiudeeceeewiveceand deyedetiuaveielacvueweds swans udeevesehddcecesdatede 93 Adding the Currency Index to a Chatt cccccccccecccececeseceeeseeeseeeceeeceeeceeeseeesseeseeeseens 94 Displaying Detailed Candlesticks in a Chart cccccccceccceecseeeteeeeeeeseeeseeseeeseeeaeeeaes 95 Applying an Autochartist Custom INdICAtOL ccc ccc cceccc cece eeece seca eese esse eeseeeteeeeaeees 96 Managing Templates in the Chart Window cccccccceecseeeceeeeeeeeeeeseeeseeeseeeseeeaaeeaes 97 Closing Charts and Recovering Them ccccceccseceseeeceeeseeeeeeeaeeeseeeseeseeeseesseeeaeeeaees 98 Section 4 Opening MetaEditor for the First Time cece cece eecceeeceeeeeeeeeeeseeeseeeseeeaes 99 Opening Meta Editor sessirnir eE E a aE a 99 Viewing the MetaEditor Workspace cccceccceccecceeceeceeceeceesusccescueceeseeseesensaesass 100 CREMEN BAT aerate ste E E a MeaneeG dna ctwaan tamer vecadeu dhoweay ieee 101 the MetaEditor TOODA nirera asst ee ee ee hl a leet oe E eh 101 TENG TOOIDOX VV ING OW sorria aiaeei hada hvhedeebe a a ie a aa 103 Tne Navigator VV ING OW fees cectecee eronenencqasiancionaneammnanininns Ea ENEAN AENEA 107 The Code WinGOW sc sccct is coche acelin a a at van di dade dee tbat adadate deena enduieetacaieleis 110 TMS OOUOMS
98. checkbox places the chart in the foreground When this is checked all drawing objects will look as if they are under the price chart The Chart on Foreground checkbox will be checked if you click the Charts menu and select Foreground Chart The Chart Shift checkbox arranges the chart so the latest price moves appear at a certain point in the chart When active you can click the marker at the top of the chart window and set it anywhere between the right side of the chart and the middle of the chart The Chart Shift checkbox will be checked if you click the Charts menu and select Chart Shift The AutoScroll checkbox updates the chart so that it always scrolls to the right to show the latest price moves The AutoScroll checkbox will be checked if you click the Charts menu and select AutoScroll The Scale Fix One to One checkbox sets the chart scale as one to one the size of one point of the vertical axis in pixels is equal to the distance between the bars axes in pixels When placing lines and other drawing objects or indicators on the chart many traders prefer to set Scale Fix One to One because it creates the most accurate objects or indicators Scale fix One to One Cee e eee e eee eeeeeeeee UTTE 1 56970 Fixed maximum 1 52850 Fixed minimum EE The Scale Fix checkbox sets the current chart scale to a value that you specify in the Fixed Maximum and Fixed Minimum text box 163 When selected the Bar Chart radio but
99. checking the options in the drop down menu 19 Strategy Tester With MetaTrader you can create expert advisors to help you analyse markets and make trades automatically The Strategy Tester window allows you to test expert advisor strategies against already saved market history data and modify expert advisors as needed The Settings tab is where you specify which expert advisor the testing period modelling and other information x Expert Advisor MACD 5 ample v Expert properties Symbol AU DUSD Australian Dollar vs US Dollar v Period M1 x Symbol properties Model Every tick the most precise method based on all available least timeframes to generate each tick j Optimization Open chart Use date iw Modify expert Visual mode zl Start Settings Journal The Journal tab displays a list of system messages about the expert advisor s test such as orders filled and positions closed The Results tab displays a table that contains information about all of the trades that were executed during the test x Time Type Order Size Price Soils TIP Profit Balance F 1 2010 08 18 02 22 sell 1 0 10 0 90364 0 90314 E 3 2 2010 08 18 02 34 modify 1 0 10 0 90364 0 90363 0 90314 F 3 2010 08 18 02 34 modify 1 0 10 0 90364 0 90362 0 90314 3 4 2010 08 18 02 34 modify 1 0 10 0 90364 0 90360 0 90314 F 5 2010 08 18 02 34 modify 1 0 10 0 90364 0 90359 0 90314 3 6 2010 08 1
100. com Parameters Name Type Initial value datetime 2010 09 03 16 32 Once you click Next the wizard opens the General Properties window Here you can add parameters to the file in the wizard by clicking Add Once added you can change what kind of parameter the custom indicator uses by right clicking on it and selecting Change Type This displays a drop down menu of several strings You can also change the initial value for the parameter by right clicking on it and selecting Edit Value If you want to change the name of the parameter right click on it and select Rename You can also remove a parameter by selecting it and clicking Delete Expert Advisor Wizard Drawing properties of the Custom indicator program Please specify drawing properties of the Custom indicator program Indicator in separate window Minimum 1 Maximum 40 Indexes 4 Type Color 1 Line W Blue When you click Next again you can view the Drawing Properties window Here you can use the wizard to specify where the custom indicator appears Your custom indicator will automatically appear in the chart unless you check Indicator in Separate Window which displays the custom indicator in a window below the chart You can then specify the range it will have by checking Minimum and Maximum and entering in a value You can specify how you want the indicator to look in the chart by clicking Add in the Indexes section You can right click the Type field and select Change
101. cription This E is based on the strategy Stop Hunting with the Big Players All in one trading tool Multi TF Indicator amp Expert advisor This E4 is based on daily highs and lows and the relationship to each other Double zero cross level is the signal to open position and or close Settings For H4 TF Robot_ADX 2M4 Ea optimised on H4 based on low trailing stop Author mt coder Date T 2010 08 28 2010 08 25 2010 08 23 2010 08 20 2010 08 17 2010 08 16 eagleye7 77 hansH mich99 satop chris10 For Help press lt F1 gt Ln 1 Col 1 You can access the Online Library by right clicking on the Expert Advisor Custom Indicator or Script menu in the Navigator window and select Online Library This opens MetaEditor For an overview of this application see Section 4 Opening MetaEditor for the First Time The Online Library opens in the Toolbox window of Meta Editor You can use the toolbar along the top of this window to switch your search between expert advisors custom indicators scripts and libraries When you re searching for expert advisors make sure Experts is selected 116 Refresh Experts Indicators Scripts Libraries N articles Q MOL4 com v TA Fa You can use the scroll bar to move through the list You can also click 5 to see if any new expert advisors have been added When you find the expert advisor custom indicator or script you want select it and click Download You
102. curate trading activity on your account All transaction order history information that appears in this online trading application is considered the most accurate and legally binding Because of this we recommend that you have both MetaTrader 4 and the online trading application open when trading to compare equity values The Account History tab compiles a list of all executed trades You can also view your profit and loss credits deposits and withdrawal information 17 x Order Time Type Size Symbol Price S L TIP Time Price Swap Profit A 91131203 2010 07 13 12 37 balance Deposit 50 000 00 FF 91768415 2010 07 15 15 42 buy 2 00 usdchf 1 04105 1 03999 oii 2010 07 29 18 34 1 04111 31 92 tee 3 92191210 2010 07 19 14 09 sell 2 00 nzdusd 0 70616 0 00000 0 00000 2010 07 29 18 50 0 72565 139 47 3 898 00 F 92191216 2010 07 19 14 09 sell 2 00 nzdusd 0 70631 0 00000 0 00000 2010 07 29 18 55 0 72535 139 47 3 808 00 F 92354344 2010 07 29 16 49 buy 2 00 usdead 1 03815 0 00000 0 00000 2010 08 27 19 54 1 05205 168 60 2 642 46 F 92354383 2010 07 29 16 59 buy 2 00 eurusd 1 30812 1 30865 0 00000 2010 07 29 19 40 1 306885 0 00 146 00 92354397 OF u y limi 2 00 chfj 53 359 0 000 0 000 2010 07 29 19 32 63 485 Trade Account History News Alerts Mailbox Experts Journal The Alerts tab shows a list of alerts You can also use this tab to set alarms to notify you when an instrument has either reached a specific price or crosse
103. d an indicator trend line See Viewing and Setting Alerts in Section 2 Opening and Managing Your Trades for more information x Symbol Condition Counter Limit Timeout Event Qy EURUSD Bid gt 1 27500 0 1000 10 sec alert A GBPUSD Bid gt 1 55930 0 1000 10 sec alert J GBPUSD Bid lt 83 50000 1 1000 10 sec alert Sy tee ere Hori ka OURS PS Mia ruon ee oE Moyer ka DRS nani HTa oona ey GE Whai is Fito rade ee te HTA Pomo r DE Fieke Eredrp dis Eer ED STALE ESE HTA re Bye DOE Ee mi e Hey dere eta eal o The Experts tab shows information about the expert advisors that are active in your account You can also view positions the expert advisor opened or closed x Time Message Ay 2010 08 31 10 34 41 MACD Sample EURUSD M1 removed A 2010 08 31 10 34 41 MACD Sample EURUSD M1 uninit reason 1 Ay 2010 08 30 08 53 33 MACD Sample EURUSD M1 inputs TakeProfit 50 Lots 0 1 TrailingStop 30 M4CDOpenLevel 3 MACDCloseLevel 2 MATrendPeriod 26 A 2010 08 30 08 53 33 MACD Sample EURUSD M1 loaded successfully J Trade Account History News Alerts Mailbox Experts Journal The Journal tab displays system messages about your account such as login times orders filled or edited and positions closed x Time Message A 2010 08 31 11 17 17 Alert bid lt 83 50000 2010 08 31 11 17 07 Alert bid lt 83 50000 Ay 2010 08 31 10 34 41 Expert MACD Sample EURUSD M1 removed 2010 08 30 1
104. d to a chart If you attach an expert advisor to a chart that already has one the new expert advisor will be added and the old one removed from the chart Modifying an Expert Advisor Attached to a Chart If you want to make a change to an expert advisor once it s already attached to a chart you can right click in the chart select Expert Advisors and click Properties in the drop down menu This opens a window so you can specify settings for the expert advisor Moving Average feo OERE EEA EEEE EE E NE E ESEB cc cud bac E N E de E E T oe A EEE SE A EA es E E N AEA E S E AE bacwsores cuss E 1 30265 i i i i I i I i I I i g I I I i I I y i I I 1 30000 as Sees emai Boe pee ee rad xha Ap Ba gy Yi i hee Y ince ee eye Breer ay co we eat fecha aay so a rer ua baie oS ee fierce iar Sct Mg a ee eer fo eo Bee i i of ana gees a gene capeecn gece sqeses eee eee eee eee eee ee Trading Tee ee Lee ee ee eee 1 29735 Expert Advisors q5 Properties id Pe ngetecdpezesueee nt eeederseree seesexeesuraen seater scp enat eer d a AA aiii i i i i i i i i i i 0 bjects List Ctrl B oe Remove f 3ef ereer prscegoccss lt pialecatetl foal ta jw2eee presegocess o _ an oa eos pocccgc cop 1 29208 i i i i i Periodicity gt s i Strategy Tester F6 Template A i i i i i i i R f i i i i i i
105. de file after you ve edited it You can click Save lito save your changes and continue working Once your edits are made click This verifies if the code works as programmed The Errors tab opens automatically in the Toolbox window to show you if there are any errors or warnings When the compilation is successful MetaEditor saves the file AN See Section 4 Opening MetaEditor for the First Time for more information on MetaEditor Setting Keyboard Shortcuts for Autotrading Tools in the Navigator Window If you think you will use an expert advisor custom indicator or script frequently you can set a keyboard shortcut or hot key to open the autotrading tool automatically in the chart AUREA M4 Powered by Al Deme Account EURUSI H4 File Wee Dede Chats Took Winder Help mb b at a iih Mew Orda i GR expert akso Sarrian fie LSD 0 98 0 T GBP Loita rs FRO 1 47 YF a1 t Mavigator Hot Keys a AD 1 03 NEDUSO 07h ADUD 0 95 USDTAR 705 7 05 USD 1 30 13 USDTRY JA LH EUATRAY ipapa 1 Pair a Fader mI Fret y e Gulls Poe F Comodity hanna Imie a Erreopes Ponce briez ee es F Fragak Tpi ey DE Gator Cecilio a F Tehingu anko Hien CF Bolinger Hants F Maco Bulls Power OP harket Peclitateon Index F Commodity Channa Fin Cenega Hti hy chai Ei a a ee eee ean rsa F Fre Te Sak ig haie F Fractal Te hokk ey biter Sa F kiru irio Hyra F
106. dicators Date amp Time Functions 2 Q File functions woid initi Print point Point bars Bars Global variables Math amp Trig j Object functions void deinit i amp String Functions Technical indicators ObjectDelete line name ObjectDelete object namel ObjectsRedraw i Q Timeseries access Trading Functions Window functions obsolete functions int start i Dictionary Search Back Foward Home oft Previous G2 sync Sib Next MOL4 com MQL4 Reference Basics MetaQuotes Language 4 MQL4 is a new built in language for programming of trading strategies This a Standard constants language allows to create your own Expert Advisors that make trading management automated and are a Predefined variables perfectly suitable for implementing of one s own trade strategies Besides one can use MQL4 for creation of a Program Run one s own Custom Indicators Scripts and Libraries You can start learning the language using Sergey Errors Findin Files Online Library Help For Help press lt F1 gt Ln 1 Col 1 The Dictionary tab shows code examples of the MQL4 language organised in books and files You can open these files by clicking the to expand the book and then clicking on the file you want the topic you want opens in the Help tab of the Toolbox window 108 Metakditor rotate_text mq4 BHR oF X K Fie Edit View Tools Window
107. ditor MetaEditor is a development tool If you plan on creating and editing autotrading files you should be familiar with the MQ4 programming language You can learn more about this at http www mql4 com Even if you aren t familiar with programming you can use the application to download autotrading files Tips for Using This Manual This guide uses the following notes to emphasise important information about MetaTrader Describes information on the action of a tool or feature in MetaTrader When you see this symbol it provides a larger context for information and procedures Provides hints tricks and shortcuts that may help you as you place and monitor trades in MetaTrader Alerts you of critical information that you need to know when you perform a particular procedure Section 1 Opening MetaTrader for the First Time Before you start trading you ll want to launch the MetaTrader platform and become familiar with its workspace In this section you ll receive an overview of the tools and features that you ll use while trading in MetaTrader Viewing the MetaTrader Workspace The MetaTrader workspace contains all of the features and charts you need to trade we CA fie yew jeant Chats Toole Window Help T D l gt Ge lO A a worse a e j e nl a Q p lik G 0 B t i we Mi het Gi i a k we z A i r ai O O EURUSD Hi Connect lo es Symbol Bid Ask US
108. e Errors Findin Files Online Library Help Basics MetaQuotes Language 4 MQL4 is a new built in language for programming of trading strategies This Standard constants language allows to create your own Expert Advisors that make trading management automated and are Predefined variables perfectly suitable for implementing of one s own trade strategies Besides one can use MQL4 for creation of Program Run one s own Custom Indicators Scripts and Libraries You can start learning the language using Sergey For Help press lt F1 gt Ln 1 Col 1 The Files tab displays the folders and files that are in the Experts folder of your computer You can open these files by clicking the to expand the folder and then double clicking on the file you want 107 Metakditor rotate_text mq4 KA File Edit View Tools Window Help b Fy a TA A e iA a D ae Uy B we ae iy Compile Terminal MD rotate_text mg4 stdib mg4 ire I MQL4 Reference 4 Q Basics Copyright 2004 Meta uotes Softwa Corp 2 Standard constants http www metaquotes net 2 Dradakinad v rai oO Program Run Account information property copyright Copyright 2004 MetaQuotes Software Corp property link hetp www metaquotes net include lt stdlib mqh gt Array Functions string line name rotating line client terminal string object_namel rotating text Common functions Conversion Functions Custom in
109. e chart to a specific pixel size a AUDCAD H1 Trading Expert Advisors Periodicity Template Z Refresh Save As Picture Auto Arrange Ctrl 4 be C You may freely print out reproduce and distribute all screenshots of this Grid hG _ product as long as the copyright notice can be seen at the bottom of the Ly Volumes Ctrl L ar window Select the image you would like to save Q Zoom In Active workspace Q Zoom Out T Save As Picture 3 Active chart 5 pixels Print Preview d Print Ctrl P Gel Properties 64 Printing the Chart You can print the active chart To preview it before you print right click in the chart window and select Print Preview When you re ready to print right click in the chart window and select Print ma AUDCAD H1 Trading Expert Advisors Periodicity Template Z Refresh Auto Arrange Ctrl A Grid Ctrl G la Yolumes Ctrl L Q Zoom In ii Q Zoom 0 ut py S ave 5 Picture m Eh Print Preview E Print Ctrl P GI Properties FS bar You can also access the tools listed here from the Charts or File menu in the menu Displaying the Line Studies Toolbar If you are planning on drawing in the chart window you may want to display the Line Studies toolbar This contains a number of MetaTrader drawing tools j enables you to click on other drawing objects and drag them to new locations in the chart This is active when you first open
110. e Text window with the Common tab displayed Here you can enter a name for the label add the text you want and change the colour size or font You can also specify where the label should anchor on the Parameters tab or select if the text label should appear on all chart time frames on the Visualisation tab 68 7 displays a drop down menu so you can select from eight different types of icons to add to the chart window If you add too many of these icons to the window you select the Delete All Arrows menu option to remove all icons from the window Line Studies Thumbs Up Thumbs Dy vir Aow Up now Down Stop Sion Check Sign coy Leit Price Label ka Right Pree Label E Delete All Arrows A MetaTrader draws all trend lines on the charts as rays lines which start at one point and continue in one direction toward infinity You can change this using the Objects List See Configuring Drawings in the Chart in this section for more information 70 Drawing in the Chart As you trade you ll want to examine the chart looking for possible patterns and trends in the price movements MetaTrader offers a number of drawing tools so you can plot support and resistance levels identify simple and complex patterns and create other notations on the chart File View Insert Charts Tools Window Help 0 X Gh Eh Indicators E New Order gt SB Expert Advisors EURUSD H4 1 384 Vertical Line _ 1 41530 Channels Horiz
111. eceuecuessuesaeesaees 177 Appendix A Meta Trader HOt KeyS ercranon ii e E E E 178 Welcome to the MetaTrader and MetaEdlitor User Manual In this user manual you ll find instructions on how to use the features and tools in MetaTrader If you re new to the program you can walk step by step through this manual to learn how to login and access specific MetaTrader features If you ve been using automated trading systems for a while we ve included a detailed table of contents so you can quickly reference how to use a specific section or tool in the MetaTrader platform What are MetaTrader and MetaEditor MetaTrader is an online trading system that allows you to place trades manage open positions and pending orders and conduct technical analysis You can also use MetaTrader with automatic trading and analysis tools Once these tools are active in the chart window MetaTrader automatically executes and manages orders based on market conditions and the settings you specified This version MetaTrader offers more tools and flexibility than many versions on the market This user manual provides a comprehensive look at all of these tools in MetaTrader This manual also provides an overview of MetaEditor an application installed with MetaTrader that develops autotrading tools With MetaEditor traders can import create and modify expert advisors custom indicators scripts and other MetaTrader autotrading tools Before You Use MetaTrader and MetaE
112. ed by the system click Reset and change the hot key to another combination 150 section 6 Generating Reports Using an online trading application you can access a variety of statements that you can use to monitor your trading activity on MetaTrader In this section you ll learn how to use this tool Generating MetaTrader 4 Reports When you sign up for a live account with MetaTrader 4 you will also receive access to a special online trading platform which you ll use to generate your reports and statements You ll use your MetaTrader 4 login to access this If you have a practice account you will not receive the online trading platform STATEHERTS Type of report Demi Tianhe repent From 200 228 E Te aia E User aoneunds deabh Sb w Ea A di Aun Tees Conte Feb 26 2019 3 11 45 Pw R Park Fete 25 2011 0000 FP Detail Transaction Report Feb 28 2011 ROET PM MID Semed PL 1 062 93 CA YTO Semed FL 1 0b Scr MTID Tee 0 00 CR YTO tee uo CR Al tines are in CRIT Account Value and Margin Summary Aari Geabaree Margin Requirement Open FL Account Balance UnRealized P L LISD 0 00 CR USD 0 00 oF Le 70 663 81 OF 1 00 cH Me Wie ORS CH 0 00 CF Margin Excess UnRealized P L USD 70 663 81 CA USD iii OF Equity LED TODEN CR While you won t be able to place trades from the online trading platform it will show you the most accurate transaction and order history on your MetaTrader 4 account Generating reports
113. eeeeeeeeeeeeeeeaeeeaeeeaees 39 Modifying Orders in the Terminal WINdOW cccccccccececeeeeeeeseeeeeeeeeeeeeeeseeeseeeaeeeaes 40 Deleting Orders in the Terminal Window ccccccceccceeece cece eeseeeeeeeeeeeseeeseeeseeeaeeeaes 41 PACING a TEANG SUC cae ecces sce si E E 41 Managing Order Cancels Another OCA Orders c cccceccseeeeeeeeeeeseeeseeeseeeseeeseeeaes 43 Setting Up an Automated Cl0SC cc ccecccccccscccececeeeceecceeeceeeeeeceueeseeseeeuessueseeesaeesaees 44 Applying a Partial Close irc circsccnnstensnes cntcmenescesaisdisueesatiasnncennenceeiinteand sishaadnnaiieesesenexldeeenactieas 46 Closing Positions in the Terminal WiINdOW cccscccceeceeeeeeeeeeeeseeeaeeeseeeseeeaeeeaeeeaees 47 Closing Offsetting POSIONS serseri araa a EAEN EEEE 48 VIEWING Your Account HISO sce sinicteiecaydeeetanienatentecaacdeauaeniaxtuesendeneeteenscdderiapaceseealeaaaiee 49 Viewing and Setting Alerts in the Terminal WiINdOW c ccccsecceeeceeeeeeeeeeeeeeeeeeees 50 Setting Account Alarms Trade Terminal ccccccccecccecceeeeeeeeeeeeseeeseeeseeeseeeaeeeaeeeaees 52 Section 3 Using the Chart Tools ccccccccceccceecceeeeeeeee cece cess eeseeeseeeseeeseeseeeseeeseeeseeaes 54 CTIA CS e orci eteed E etisaiee don caer E E E E E 54 opening Cran AIG eee nen ee een fete ee ee eee nce eee eee nee eee 55 Viewing the Chart WINdGOW ivesicecccucsdecivedeleceweencees Sr NEE EEE e 56 Displ
114. electing it from the Symbol drop down menu You can view information about the spread contract size and other details about the selected instrument by clicking Symbol Properties You can also select a time frame from one minute M1 to one hour H1 to Daily using the Period drop down menu If you want to view this instrument with this time frame on the chart click Open Chart MetaTrader stores historical data for all symbols and time frames so you can research the price moves of an instrument over time or test how an expert advisor strategy would perform during a particular market event With historical data you can use the Model drop down menu to select three modelling types for testing e Every Tick tests a strategy based on the smallest available timeframe e Control Points uses the last 12 bars of the current timeframe and then calculates the next possible price moves using fractal interpolation e Open Prices Only looks at the current open high low and close of data on the chart This is the fastest method to analyse price moves on the chart When you want the expert advisor to go through optimisation you can click the Optimisation checkbox If you want to modify the expert advisor before you test it you can click Modify Expert to open Meta Editor and made the changes you want Once the expert advisor is compiled you can return to MetaTrader and continue your test If you think the market will behave like it did at some po
115. en charts and time frames or scroll to a particular point in time on the chart using the Fast Navigation text box You can display this field by double clicking in the lower left corner of the chart a GBPUSD H1 ee 18 Aug 13 00 19 Aug 21 00 23 Aug 07 00 24 Aug 15 00 25 Aug 23 00 27 Aug 07 00 30 Aug 17 00 Once open you can enter a specific time date symbol or all of these and press Enter on your keyboard You can use the table below to see how to enter times and dates time hours minutes example 08 30 8 30 date example 2004 10 16 16 10 2004 16 10 04 date and time example 2004 10 16 8 30 16 10 2004 8 30 16 10 04 8 30 symbol example GBPUSD EURUSD chart period example M1 M5 M15 M30 H1 H4 D1 W1 MN symbol chart period example GBPUSD M30 EURUSD D1 61 Displaying Other Tools in the Chart Window After you specify a chart type and time frame you can set the chart window to display other tools to help you trade Displaying a Grid When you first open MetaTrader the chart displays vertical and horizontal grid lines You can right click in the chart window and select Grid from the drop down menu to activate or deactivate it m AUDCAD H1 Trading Expert Advisors Periodicity Template Ko Refresh Auto Arrange Ctrl A HE Grid Ctrl G Volumes Ctrl L Zoom In Zoom Out Save As Picture S Print Preview Eh Print Properties 64ug 2010 10 Aug 00 00 11
116. en view these on the Favourites tab on the Navigator window Navigator d delete pending fg Heiken Ashi fg Bands LE AutoMagiCal Moving Average F Parabolic SAR F Volumes Common Favorites 11 The Chart The chart window plots the real time prices of an instrument on a graph and provides a snapshot of market movements over a particular period of time z 1 62870 GBPUSD H4 1 62049 1 62454 1 61920 1 62298 1 61835 1 61325 1 60800 1 60290 1 59780 1 59270 1 58745 1 58235 1 57725 1 57200 1 56690 1 56180 1 55670 12 Jan 2011 0 At least three charts are displayed when you first open MetaTrader Prices appear on the right side of the chart and the time and date appear along the bottom There are several ways to open the chart window One of the most common is to right click on an instrument in the Market Watch quote board and select Chart Window 31 Aug 2010 31 Aug 07 07 31 Aug 07 39 31 Aug 08 11 31 Aug 08 43 31A EURUSD M30 GBPUSD M15 USDIPY M1 USDCHF H1 You can open more than one chart at a time up to 99 can be displayed When the Charts Bar is active you can switch between them by clicking the instrument tab at the bottom of the window You can customise the chart window using the tools in the Chart toolbar See Displaying the Chart Toolbar in Section 3 Using the Chart Tools for more information on the chart window If you do not see the tabs on the bottom of your chart
117. endlines used to identify lines of support or resistance If you suspect that a channel trend is forming around price movements in the chart you can use this drawing object to verify your assumptions When Andrew s Pitchfork is selected you can click on a high or a low to specify the middle of the pitchfork and then click two significant peaks or troughs beside it to compose the prongs 80 Cycle Lines are a row of vertical lines placed at equal intervals Usually one interval corresponds with one cycle When Cycle Lines is selected click a point in the chart window and drag to adjust the interval You can add a label to a particular part of the chart by clicking Text Label As you scroll the comment remains displayed over the chart When selected you can click in the chart window where the label should be The Label window appears with the Common tab displayed Here you can enter a name for the label add the text you want and change the colour size or font You can also specify where the label should anchor on the Parameters tab or select if the text label should appear on all chart time frames on the Visualisation tab 81 You can add a comment to the chart by clicking Text When selected you can click in the chart window where the comment text should be The Text window appears with the Common tab displayed Here you can enter a name for the comment add the text you want and change the colou
118. ends you a message when the script has placed a trade You can also click Disable Alerts Once Hit so MetaTrader only sends a notification once In the Live Trading section you can click Allow Live Trading to enable or disable the script in live trading When this is checked you can also choose to select the Ask Manual Confirmation checkbox below it If your script is about to perform a trade and this checkbox is selected a notification appears asking you to confirm the trade The Safety section contains options for specifying how to handle dynamic link library dll files When checked the Allow DLL Imports checkbox allows a script to automatically access dll files associated with them When this is checked you can also choose to select the Confirm DLL Function Calls checkbox below it If your script is about to access a set of dll files and this checkbox is selected a notification appears asking you to confirm the request The Allow Import of External Experts checkbox enables your script to automatically import functions from other MQL4 files This is a security option that protects you when you are working with a script from an unknown source On the Inputs tab you can view the variables used to calculate the script The variables are specific to the script you selected You can change the variable values by double clicking in the Value column of the variable row _ 2088454440 MT4 Powered by BT Demo Account EURUSD H4 si
119. er cccccccceccceceseeeeeeeeeeeeeeeseeeseeeseeeseeeseeeeeeeeeees 21 Viewing Pricing INFOPMAtION ccccccc cece eeeceeeea seca eeeeeeeeeeeeeeeeeeseeessueceeeseeeeeeesaeeteeeeeeees 22 Placing Orders with Mini Terminal cccccccceccceecce cece cece eeseeeseeeseeeeeeeseeeseeeseeaeeeaes 25 Placing Orders in the Trade Terminal cccccccccccececececeeeceeeceeeceseseeeseeecaeecseeseeeaes 26 Calculating Stops Or LIMIS eras cng ecneseasmesacee sane anaes a EEN E 29 Placing Orders in the New Order WiNndOW c cccceccceecc cess eeseeeseeeeeeeseeeseeeseeaeeaes 30 Saving Orders aS a Template ccccccccecccsceceeeceeeeeeeceeeceeeceeeeeeeseeesgessgeseuseeeesaeeeaees 31 Opening the Order WINdGOW cccccccceccceecee cess eeeeeeeeeeseeeseeeseeeseeeseeeseeeseeeseeeseeeseeeaees 33 Placing Market Orders in the Order WiINdOW ccccccceccceeeseeeeeeeceeeeeeseeeseeeseeaaeeaes 34 Placing Pending Orders in the Order WINdOW ccceccceeeceeeseeeeeeeeeeeseeeseeeseeeaeeeaes 35 Managing Orders in the Trade Terminal ccccccceccceccceeeseeeseeseeeseeeseeeseeeseeeaaeeaes 36 Managing Orders in the Terminal WiInNdOW cccccccceecceeeeeeeseeeeeeeeeeeseeseeesaeeaeeeaes 37 Setting Stops and Limits in the Trade Terminal cccccccceccseceseeeeeeeeeeeeeeeaeeeaeeeaees 37 Setting Stops and Limits in the Terminal WiIndOW cccccccecee
120. er Add a tweeter x Add tweets from a Twitter user Cancel Type in the username of the Twitter user Twitter username Alerts Display new item alerts Add tweets The Add a Tweeter window opens You can enter the name of the twitter follower You can click the Display New item Alerts checkbox to have an alert display when MetaTrader receives a new tweet When done click Add Tweets If you need to modify the Twitter settings select the Twitter feed that you want and click Edit Tweeter in the Open and Pending Orders section Edit tweeter x Edit Twitter user Cancel Change the details of this Twitter user Twitter username FXExaminer Alerts Display new item alerts Save changes Remove tweeter When the Edit Tweeter window opens you can make the changes as necessary When done click Save Changes Or if you want to remove the tweeter click Remove Tweeter At any time you can click Back to go to the previous screen or Cancel to exit the window entirely Filtering Twitter Feeds in Connect In Connect you can filter which Twitter feeds appear in the Twitter section When you first open Connect the filter is set to display all Twitter feeds You can narrow down the selection of tweets by clicking All Tweeters and selecting one of the Twitter feeds 158 News Calendar G ALUIWEELErS T Add a tweete All tweeters FX360 What GI FAExaminer GFT UK EURUSI GFT Markets You
121. er sends a report to the server You can select time frames from five minutes to 1440 minutes The FTP Server text box is where you ll enter the FTP server address where the report will be sent The FTP Path text box is where you ll enter the name of the FTP server directory where the report will be placed You ll need to include the path including the root directory in this field The FTP Login text box and FTP Password text box are where you enter the login and password for the FTP server When Enable is selected the Passive Mode checkbox becomes active In active mode the server sets up a connection with MetaTrader to transfer data In passive mode MetaTrader establishes a connection with the server The Test button posts a report to the server using the settings specified If the test is successful click OK If not check the settings and test again MetaTrader will only publish reports for active accounts If the account number entered does not match with the one on file MetaTrader will not publish the report 171 Customising Sounds for MetaTrader The Events tab displays a list of MetaTrader actions that play a sound file when active Options Server Charts Objects Trade Expert Advisors Email Publisher Events M Enable Event Action a A Connect connect wav A Disconnect disconnect waw A Email Notify email wavy A Timeout timeout way A Ok ok way E X News news way A Expert Advisor expert way A Exper
122. eral commands USDCHF Lots 1 00 Fy WE Fan 7 New Order opens the New Order window where you can place more complex orders as you trade You can also save your order settings as a template for future orders Template displays a list of all saved order templates You can also click Manage Templates from this menu to delete templates Close Position closes all orders for the selected instrument Symbol Information displays size value and other information about the selected symbol New Chart opens a new one hour chart of the selected instrument 27 For more information on templates see Saving Orders as a Template The Status Indicator section displays the options for placing a one click trade You can set the size of the trade as well as specify settings for stops or limits associated with the market order Lots 100 gt T S 0 A S L 0 oe A w A Yv T P 0 A Lots sets the size of your trade You can enter a number or use change the size When setting an associated stop or limit you can choose any combination of these three fields S L Stop loss or a stop T S Trailing stop T P Take profit or a limit In these fields you can enter a number in pips or if you need help determining the best value click CTRL and click the field to access the Calculator tool T s calculation x Calculate trailing stop for cash amount Calculate the T S to use from the current lot size and t
123. es M30 Daily H1 Weekly H4 C Monthly Show in the Data Window On the Visualisation tab you can select in which time frames the custom indicator can be used When you first open MetaTrader the All Time frames checkbox is selected When you uncheck it you can select one or more time frames If you need to return to the original settings click Reset Adding a Custom Indicator to a Chart 1 Right click on the custom indicator you want in the Navigator window and select Attach to a Chart 2 Select the options you want on the Common tab 3 If desired click on the Inputs tab Click Load Navigate to the external set you want and click 137 Open 4 Adjust the settings as desired in the other tabs 5 When done click OK ps You can duplicate custom indicators and use the settings on the Visualisation tab to specify different time frames for each one You can then place these in the same chart and compare how the indicator for the instrument would behave over multiple time frames Modifying a Custom Indicator Attached to a Chart Once a custom indicator is attached to a chart you can modify it using the Indicators List This displays a list of all indicators in the chart window J0BB4ASAA440 MT4 Powered by BT Demo Account EURUSD H Ed Ge Che e Oe PL Eh New Order gt GR Expert Advisors Symi Bad fish PAH 7 LRF 05 0 9 GBPUSD 1 58 1 58 F ERD Lh h G USDPY Oleo 61 60
124. es M30 f Time 2010 10 27 17 00 2010 10 27 16 30 2010 10 27 16 00 2010 10 27 15 30 2010 10 27 15 00 A 2010 10 27 14 30 2010 10 27 14 00 2010 10 27 13 30 2010 10 27 13 00 A 2010 10 27 12 30 2010 10 27 12 00 2010 10 27 11 30 A 2010 10 27 11 00 A 2010 10 27 10 30 A 2010 10 27 10 00 0 2010 10 27 09 30 2010 10 27 09 00 A onin in oF NoN Open 1 00086 1 00040 0 99958 1 00037 1 00005 1 00174 1 00105 0 99955 0 99935 0 99997 0 99926 0 99946 0 99958 1 00015 1 00075 0 99956 0 99849 A NANON High 1 00167 1 00149 1 00091 1 00113 1 00106 1 00206 1 00227 1 00152 1 00133 1 00054 1 00060 1 00078 0 99981 1 00122 1 00167 1 00086 0 99966 ANANNIN Low 1 00040 1 00018 0 99876 0 99913 0 99916 0 99998 1 00050 0 99843 0 99910 0 99880 0 99906 0 99870 0 99866 0 99939 0 99982 0 99940 0 99777 N NANOSDT Close 1 00081 1 00086 1 00041 0 99958 1 00034 1 00001 1 00173 1 00105 0 99955 0 99935 0 99990 0 99927 0 99946 0 99958 1 00014 1 00074 0 99956 ANANDAN volume A 2598 3626 5595 5395 7703 4716 2783 3607 3296 2339 3145 4661 3203 3674 3842 3876 4459 v cano History Center AUDCAD M30 Symbols Database 1169 records Close You can download quotes for instruments from 1999 to present by selecting the instrument and the timeframe you want from the list and clicking Download E ForexRegula g 8 AupcaD 1 M
125. es 143 Modifying an Expert Advisor Custom Indicator or SCript cccceccseeeeeeeeeeeeeneeees 145 Deleting an Expert Advisor Custom Indicator or Script from the Navigator 146 Adding a Library to an Expert Advisor or Script cccccccsecceeeceeeeeeeeeeeeeeeeaeeeaeeeaees 147 Setting Keyboard Shortcuts for Autotrading Tools in the Navigator Window 149 Section 6 Generating RE DONS cerre re ear A ER et EEEE ENNEA 151 Generating MetaTrader 4 Reports ccccseccseeceeeceseceeseeeceeceeeseeeseeeseeesseeseeeseeees 151 Section 7 Customising the Appearance and Settings in MetaTrader ccceee 153 Changing the Language in MetaTrader cccccceccceccceeceeeeeeeeseeeeeeeseeeseeeseeeseeeseeees 153 CUSTOMISING the Toolbars nerean E E O 154 AGING RSS FECES To CONNEC esei has odie ng th adee onneesiteddedlnataseexe sede 155 Filtering News in Connect cccecccecccecceeeceeeeseeesueceueceeeeeueseueseuessueesuessuecuessuesaeesaees 156 Adding Twitter Feeds in Connect senonnsnnnnsnnennnrerrnrnrsrrnrsrrrronrsrrnrsnrerrnrnrrnrnrrerne 158 Filtering Twitter Feeds in Connect n nsennennsnnennerrnrnrrrrrrrrrrrrnrrrrrrrrnrrrrrnennrrerrnererrne gt 158 Changing the Mini Terminal and Trade Terminal SettingS ccccceceeeeseeeeeeeees 160 Customising the Appearance of the Chart WINdOW ccccccceeeceeeeeeseeeeeeeeeeeenees 161 Changing
126. ext boxes MetaTrader disables the Modify button in the window You need to correct the prices to enable this Protecting a Position with Stop Loss and Take Profit Orders 1 Right click in a position row in the Trade tab of the Terminal window and select Modify or Delete Order to open the Order window Make sure Modify Order is selected in the Type drop down menu 3 In the Modify Order section enter the number of points in the Level text boxes 39 4 Click the Copy As button above the Stop Loss or Take Profit text box 5 If you want to add both a stop loss and take profit order to the position repeat steps 3 and 4 for the other order 6 Click Modify 7 Click Print to print the order information if desired 8 Click OK to close the window Modifying Orders in the Terminal Window If you ve already placed a stop loss and take profit order or you have a pending order you can manually modify these by right clicking an order in the Trade tab of the Terminal window and selecting Modify or Delete Orders Order 93310697 sell stop 4 00 EURJPY at 106 200 sl 0 000 tp 0 000 Symbol Volume Stop Loss Take Profit Comment Type Modify Order Modify Order Price 106 200 StopLoss 106 800 Take Profit 106 900 Expiry o v Modify ekte Open price you set must differ from market price by at least 30 pips When you modify a pending orde
127. ge your language preferences and access the Strategy Tester from this window Insert Displays menu options for displaying indicators drawing and analytic objects and text in the chart window Charts Contains menu options for managing the appearance of the chart window You can change the time frame and chart type as well as display grid features Tools Contains tools for placing orders displaying the History Centre accessing MetaEditor and customising the interface Window Displays menu options for arranging the windows in the MetaTrader workspace Help Contains menu options for displaying MetaTrader online help accessing the MQL 4 the MetaTrader programming language community and viewing version information AN MetaEditor is an application installed with MetaTrader that enables traders to import create and modify expert advisors custom indicators scripts and other autotrading tools See Section 4 Opening MetaEditor for the First Time for more information MetaTrader Toolbars MetaTrader groups its most commonly used tools on four toolbars You can access these by clicking the View menu selecting Toolbars and then clicking on the menu option for the toolbar you want Lih Eh e l yy E wI a New Order D D Expert Advisors The Standard toolbar contains tools for displaying windows in the MetaTrader workspace The Charts toolbar displays tools for managing the appearance of the chart window IK amp e
128. hapes you can select from one of three different shapes to add to the chart Rectangle draws a rectangle of any size on the chart When this is selected click where you want one of the corners of the rectangle to start and drag to size 78 Triangle draws a rectangle of any size on the chart When this is selected click where you want the three corners to be Once you place the third point the triangle appears on the screen Ellipse draws an ellipse of any size on the chart When this is selected click where you want the edge of the ellipse to be You can change the colour line style and other settings of the shapes you draw on the chart using the Objects List See Configuring Drawings in the Chart in this section for more information 19 When you click on the Insert menu and select Arrows you can add eight different types of icons to the chart Thumbs Up Thumbs BA Down Up Arrow Down Arrow E Stop Sign Check Sign Left Right Price Label AN You can also place all of these icons using the drop down menu in the Line Studies menu bar This also contains an option for removing all icons from chart window See Displaying the Line Studies Toolbar in this section for more information Using the Advanced Drawing Tools in the Charts The Insert menu also includes four other menu options for adding technical analysis drawing or label objects to the chart Andrew s Pitchfork is a set of three tr
129. hart window It also contains four command buttons Objects that are checked are currently selected and can be edited Show changes the view of the chart window so the currently selected object is prominently displayed Delete removes the object from the Objects On window and the chart window Close closes the Objects On window Edit opens an edit window for the currently selected object This window contains three tabs 83 Trendline aos Common Parameters Visualization Name 1MM Sibel Description EUR USD ascending trendline Style L Red v v Draw object as background The Common tab contains settings for entering the name for the object adding a description and changing the colour line style or other appearance settings of the selected object Drawing objects like Rectangle and Ellipse appear filled If you want to see just the outline of the shape uncheck Draw Object as Background Trendline Common Parameters Visualization Time YLM AACA Value 1 31981 Time 2010 07 21 07 00 Value 1 29113 Ray The Parameters tab is where you can enter specific data on where the object appears in the chart The selections available here depend on what the selected object is The Time and Value fields enable you to specify where an object is placed on the chart You can use the Angle in Degrees field to set the angle of the text or the drawing object The Arrow Code field adds an o
130. hart window appears with its settings in the same location as it was when it saved Saving a Profile 1 2 3 4 Click the File menu and select Profiles When the drop down menu appears select Save As In the Save Profile window you can type in a new name or select an existing name from the drop down menu to save over that profile Click OK If you make a change to the chart windows in a profile you don t have to save it These are automatically saved in the current profile from the graphic that you see here You can also use these commands by clicking fh in the Standard toolbar This displays a drop down menu similar to the one that you see when you click the File menu and select Profiles The profiles in the drop down menu or the Profiles folder on your computer may vary Placing Trades from the Chart You can place trades from the chart by right clicking in the window selecting Trading and then clicking a menu option from the drop down menu that appears 1 31090 Trading zA New Order 1 30650 pert Sdyisors eee Expert dvisor B uy Stop at 1 30952 1 30200 Periodicity Sell Limit 1 30952 Template 1 29750 3 Refresh 1 29300 Auto Arrange Ctrl 4 1 28850 Grid Ctrl G 2 7 1 28410 Volumes Ctrl L 1 28082 Jbl Zoom In Zoom Out 1 27510 Save s Picture 1 27060 5 Print Preview 1 26610 a Print Ctrl P 1 26170 Properties Fa 1 25720 86 New Order Open
131. he Terminal window x Symbol Condition Counter Lirit Timeout Event recumusd edi o ooo osecao Drar a GBPUSD Bid gt 1 55930 0 1000 10sec alert A Modify Enter amp GBPUSD Bid lt 83 50000 2 1000 10sec alert a Delete Delete A GBPUSD Ask gt 1 60000 0 1000 10sec alert amp Enable On Off Space Auto Arrange A v Grid G Trade Account History News Alerts Mailbox Experts Journal You can create or modify these price alert settings in the Alert Editor This is where you can set conditions and specify the sound to play for your alert Alert Editor a To add a new or modify the existing alert please define all conditions and select the necessary action Action Symbol GBPUSD v Condition Bid lt v Source alert Timeout 10sec vi Maximum iterations You can choose to be alerted when the instrument price is less than the bid price Bid gt greater than the bid price Bid lt less than the ask price Ask gt or greater than the ask price Ask lt You can also set the alert to occur at a certain time Time Action Mail v Symbol MetaTrader will play a sound file if the application is open when the alert goes off If you plan on closing the application you can use the Action drop down menu to select an alternate way to be notified select Mail to receive an email or File to receive a file If you choose Sound from the Action drop down menu you
132. he cash risk Fixed cash risk USD C ofequity of USD 49308 78 C ofbalance ofUSD 51 410 66 For more information about using the Calculator tool see Calculating Stops or Limits AN You can also place stop or limit orders to enter the market See Placing Pending Orders with Mini Terminal for more information Prices appear in real time in the Market Watch window The current sell price appears in red The current buy price appears in green The spread appears between the two buttons 0 90967 0 90994 Placing a Market Order in the Trade Terminal Make sure the Trade Terminal is open and Expert Advisors is on In the Mini Terminal of the instrument you want change the size of the order If desired enter the number of pips to set your stop or limit in the S L or T P fields If desired enter the number of pips to set your trailing stop in the T S field Click Sell or Buy O 0 Se O YS Click Yes or No to confirm the order 28 Once your order is placed MT4 shows a dotted line in the chart for each order placed and markers showing where orders were opened and closed Calculating Stops or Limits When you need help calculating where you want to place your stops or limits in the Mini Terminal in the chart or in the Trade Terminal press CTRL and click the stop or limit field you want which will open the Calculation window T S calculation x Calculate trailing stop for cash amount Calculate the T
133. he condition box you can specify the automated trigger You can select from the three drop down menus that define the first condition of the automated close e The Condition drop down menu is where you can select what event starts the automated close Your condition can centre on a net profit profit and loss or how long you ve had the trade open e The Threshold drop down menu is where you can specify if the condition is greater than or equal to or lesser than or equal to e The Size field is where you can enter a pip or minutes value depending on the menu item you selected in the Condition drop down menu You can then select one or more of the checkboxes in the Action area to tell MetaTrader what you want to do when the condition is met 44 If you want to add more rules to the Automated Close you can click Add a Rule to open a second condition box If you want to remove a condition box click o You can also modify existing templates to create new ones Click Load Template at the top of the window and then make the changes as desired When done click Save Template An additional field appears and you can enter a new name for the template Apply rules Save template Name Save Cancel Click Save and then you can then click Apply Rules to activate the rule Once saved you can select the template you want by navigating to the Automated Close and selected the template you want Open and pending orders
134. he future Open and pending orders Close amp Close 7 Tools v sROCAy LZ O Settings 7 EA Partial close b Ticket All orders p Volume Net profit 20134 sSelectedorders p SL b 1 00 342 00 20138022 z EUR TP b 1 00 342 00 20138023 3 EURUSO Trailing stop gt 1 00 342 00 20138025 4 EURUS Di aie ibaa wal Create 0 20138032 32 EURUS 0 Automated close p no templates If you place an automated close and you do not have a Virtual Private Server VPN subscription your order will stop running when you close MetaTrader You can access Automated Close from the Open and Pending Order window of the Trade Terminal Click Tools and then select either of the All Orders and Selected Orders menus You can also select Automated Close for a specific order or position by clicking in the row When you click Create the Automated Close window appears This displays one condition box Automated close x Load template An automated close applies one or more rules to an order when conditions are met You can save automated close rules as templates for quick re use in future O 1 When order profit in pips Greater or equalto v 0 pips Close of the original volume Set the s to pips Set the t p to pips Run a trailing stop at pips ee Moenen 1 gt J Add a rule Apply rules Save template At the top of t
135. he number of targets The final percentage in the Partial Close row should be 100 if you want to close out your position entirely If you want to not have a trailing stop ona particular target in the sequence you ll need to enter a zero for that particular target Once set you can view the settings for the partial close in the upper left corner of the screen If you don t want to see the settings on the chart you can change the Display Info field to false Applying a Partial Close 1 Right click Order Partial Close in the Navigator window and select Attach to a Chart 2 Make sure everything you want is checked on the Common tab 3 Click the Inputs tab 4 For the Order Number variable double click in the row in the Value column and enter the position with multiple lots 5 For the Profit Targets variable double click in the Value column and enter the number of targets that you want 6 For the Partial Close variable double click in the Value column and enter in the percentages of how you want the target to close 7 f desired set Trailing Stops for each target by double clicking in the Value column and entering the stop value 8 When done click OK You can save the settings for a partial close as an expert set by clicking Save This allows you to name and save the set to your computer When you want to reload the settings click Load and you can navigate to the folder where the set is Closing Positions in the Ter
136. hing for OrderClose i ay C Program Files Interbank FX Trader 4 experts 29 result OrderClose OrderTicket OrderLots price 3 CLR_NONE ay C Program Files Interbank FX Trader 4 experts 96 OrderClose OrderTicket OrderLots Bid 3 Violet J close position ay C Program Files Interbank FX Trader 4 experts 118 OrderClose OrderTicket OrderLots Ask 3 Violet J close position Cee C Program Files Interbank FX Trader 4 experts 103 if Open 1 gt ma amp amp Close 1 lt ma OrderClose OrderTicket OrderLots Bid 3 White ay C Program Files Interbank FX Trader 4 experts 108 if Open 1 lt ma amp amp Close 1 gt ma OrderClose OrderTicket OrderLots Ask 3 White 5 occurrence s have been Found x o o D _ Errors Findin Files Online Library Help AN If you search for a line of code and then click the Find in Files menu option to start a new search MetaEditor clears the Find in Files tab x Refresh Experts Indicators i Scripts Libraries Articles fm Download MOL4 com v ira Name Description Date T Author A Price Distribution Numeric representation of how many times each price occurred during a given period Use ona 1 2010 09 01 kurkafund Stop Hunter This EA is based on the strategy Stop Hunting with the Big Players 2010 08 28 mt coder Doji Hunter This indicator is a spin off of the Doji Reader 2 Found in the code base I ha
137. ibes the various order types that are available in MetaTrader and the tools you can use to manually manage your orders in the market Available Order Types in MetaTrader When you trade with MetaTrader there will be times when you need to manually place an order to open a position in the market MetaTrader allows you to do this using several types of trading orders Orders in MetaTrader will be filled at the nearest market price Sometimes this price may be different either higher or lower than the price you requested This price difference is called slippage Slippage is possible on all orders From the New Order window you can choose to place the following orders Market Order Places a buy or sell order on an instrument at the current market price Pending Order Enters your order when the market reaches a specific price There is a difference between orders and positions All trades are placed as orders When the price of the order meets the market price it becomes an actively traded position You can modify and cancel orders but you can only close positions When you select Pending Order in the New Order window or the Order Type drop down menu in the Mini Terminal or Trade Terminal window you can choose these types of orders e Buy Limit Places a buy order at a specific ask price When you place a buy limit the price should be below the current market price e Sell Limit Places a sell order at a specific b
138. icators see Managing Indicators in the Chart Window in this section O Period displays the selected time frame for the chart You can also use this to change the time frame of the chart from one minute M1 to one hour H1 to daily Er Templates displays a drop down menu for loading and saving a chart template With a chart template you can save the chart type time frame indicators expert advisors and other settings and apply it to any chart For more information on templates see Managing Templates in the Chart Window in this section You can set the chart to zoom in to a precise point by checking the Scale Fix option in the Charts Setup window See Customising Viewing Settings on the Chart Window in Section 7 Customising the Appearance and Settings in MetaTrader for more information ps If you are scrolling through the chart and analysing chart history make sure that AutoScroll and Chart Shift are deactivated Selecting a Chart Type and Time Frame When you open the chart for the first time in MetaTrader Bar Chart is selected in the Chart toolbar and One Hour H1 selected in the Period O drop down menu You can change both of these at any time m AUDCAD H1 offline AUDCAD H1 0 93612 0 93664 0 93612 0 93641 4 Aug 2010 5 Aug 23 00 9 Aug 09 00 10 Aug 17 00 12 Aug 01 00 13 Aug 09 00 16 Aug 19 00 18 Aug 03 00 19 Aug 11 00 20 Aug 19 00 24 Aug 05 00 25 Aug 13 00 You can change the chart type by e Clicking one of the
139. ice e Clicking in the terminals in the Trade Terminal window and selecting New Order Whatever order type you choose you can also set a stop loss take profit or trailing stop order to protect your order If you set a stop loss or take profit order you can choose between setting your stops and limits at a set value in pips a fixed price a fixed risk a percentage of equity or a percentage of balance Placing Orders 1 Make sure either the Mini Terminal or Trader Terminal is displayed and Expert Advisors is on 2 Click 2 3 Select the order you want from the Order Type drop down menu If you re using Trade Terminal select New Order The New Order window opens 4 For any order type except Buy or Sell enter the entry price you want in either the Price or Pips fields 30 9 Enter a number in the Size field or use the drop down menu to select a way to determine size and then enter in a number in the Size field If desired set a stop loss and or take profit order by choosing a set option from the drop down menu You can then enter the pips price or percentage that you want If desired set a trailing stop by choosing Pips from the Trailing Stop drop down menu and entering the number of pips to set your stop If desired click to expand the Order Comment section and enter a message in the Comment field When done click Place Order Saving Orders as a Template If you plan on frequently placing a particu
140. id price When you place a sell limit the price should be above the current market price e Buy Stop Places a buy order at a particular ask price When you place a buy stop the price should be above the current market price e Sell Stop Places a sell order at a particular bid price When you place a sell stop the price should be below the current market price Take profit Places an order to exit an active position to capture any existing profits that you may have Stop loss Places an order to exit an active position to minimise any current losses that you may have Trailing Stop Orders Places a stop order at a specific number of pips away from the current market price Once the market moves in your favour by that number that Stop loss order will then automatically update as long as the market moves your way so that it trai s the current price by the number of points you set When the market moves against your position after the trailing Stop loss has been set the Stop loss remains set at the last trailing price that it reached when the market was moving in your favour You can use the trailing stop to help protect profits without limiting any potential gains on your open positions 21 In MetaTrader 4 trailing stops will run as long as you are logged into the platform If you set a trailing stop and then log out of MetaTrader before the market moves in your favour by the number of points that you entered then the t
141. ie View imet Chais Took window Hee F x Ghe e Set E A ag o gaa aior iche 16253 E 7 o Standad Chart E UD DA 0 W Line Shades GPD iSo 1S Preticechealy 4 EURLEO T LEDCAD DLD T ADUD T LEDZAR UTS 1a 1 LEDTAY il L a EURTAY 1 705 LAm Customizing toolbar Prva Selected eth Data Window Print Pra Ph z br Mavigator Sh print a n mamr S ke Terminal Tiri Tk i i C3 Full Sorem ngst harat x Gey Options Bolinger Bands A S ik EI Tirate Tester i F hk En Pii Co chee ue Foer EF Commodity Charra apis E Expert Acviaors F Ereegnes F Rorce Index F Fractals F Gator Cscilster F tdhimoky Kinko Hyo F Maco F Harkat Faik tio E nhan biona Fie index i Pe G20 OOo OM Oaia Lira Lt eae ELL Hi n 5 Tire Fret G Makakdhes fo OOS DELS D S007 SS ii fo SOOT SS gA E bel SO OSES Lcd Cushieane hoods M4 Powered by BT Ha Powered by OT Mild Powered by OT 14 Powered by OT Registration What Is Automated Trading obale Trading It s Caspi Weloonve ul a ke This window is where you can specify what appears in the selected toolbar The Available section shows any menu options that are currently not in the toolbar and can be added The Selected section displays all of the options that are currently displayed in the toolbar The tools that appear in the Available and Selected section depend on which toolbar you right clicked on To
142. igator z t MT4 Powered by BT a B Accounts Indicators Expert Advisors Connect Mini terminal _ Order Partial Close a Trade terminal MACD Sample Movina Averane it AN For more information on expert advisors see Attaching an Expert Advisor to a Chart in Section 5 Using MetaTrader s Autotrading Tools Before you add it to the chart window you ll need to have a position in the same instrument as the chart with multiple lots You also need to enter the order number of the position in the Value column next to the Order Number row on the Inputs tab GET Order Partial Close Ea Common Inputs Variable Value bed OrderNumber 0 ab Profit Targets 10 20 30 2b PartialClose 25 25 100 ab Trailing Stops 0 10 20 z Displaylnfo true load Save You can specify the targets for when you want the positions to close in the Profit Targets row When you first open the window three targets are set at ten twenty and thirty pips You can change these to any level or enter in more or fewer targets You can then set the percentage of the total order that you want to close each of these targets at in the Partial Close row You can also add trailing stops to each of the targets in the Trailing Stops row You can enter the value the stop should trail the target in pips 46 The number of percentages and trailing stops that you have should always be equal to t
143. illator p esome ato b Trend Average Directional Movement Index vr k Oscillators Bollinger Bands amp Andrews Pitchfork 2 Volumes b Commodity Channel Index Bill Williams gt Moving Average Custom gt Parabolic SAA Standard Deviation 1 e Click h7 in the Charts toolbar This displays a drop down menu with a list of the most recently used indicators and then the indicator folders You can select the indicator you want or click on the folder and select the indicator When you add an indicator to the chart a settings window for that indicator appears You can specify settings for the indicator over several tabs The ones that you see depend on the indicator you selected 88 Average Directional Movement Index EEE Parameters Colors Levels Visualization Period E Apply to Close Style E LightSeaGreen Y v Fixed minimum Fixed maximum The Parameters tab is where you can enter specific data on how the indicator appears in the chart The selections available here depend on what the indicator is On the Colours tab you can modify the line colours of the indicator by double clicking on the colour and selecting a new one from the drop down menu Like the Parameters tab the selections that you see depend on what the indicator is You can also specify line width on a scale of one to five by double clicking on the Width row and selecting a new o
144. in the Errors tab It adds the selected error to the clipboard Clear This appears in the Errors tab and the Find in Files tab Clear removes all of the displayed items from the tab Open This appears in the Online Library tab It displays the selected item in the application Download This appears in the Online Library tab Download opens the source code file in the workspace Refresh This appears in the Online Library tab It updates the list to see if any new files have been added Auto Arrange This appears in the Errors tab the Find in Files tab and the Online Library tab When checked Auto Arrange resizes the columns automatically if the tab window size changes Grid This appears in the Errors tab the Find in Files tab and the Online Library tab When checked Grid displays lines between the rows and columns 106 Back Forward Home 2f Previous G2 Sync Bb Next MOL4 com M L4 Reference Global variables Select All Ctrl a GlobalVariableDel Back Backspace GlobalVariableName GlobalVariableSet GlobalVariableSetOnCondition sync Contents Previous Topic Next Topic aha ahioast Errors Find in Files GlobalVariableCheck 7 ng with global variables GlobalVariableGet hould not be mixed up with variables declared in the global scope of the For Help press lt F1 gt Ln 29 Col 75 The Help tab menu contains the menu options that are in the toolbar on the tab
145. int in the past you can click the Use Date checkbox and use the drop down menus to specify a date You can select any date back to January 1 1999 You can watch a visualisation of the expert advisor being tested or optimised by checking Visual Mode When this is checked MetaTrader displays a chart with the expert advisor and performs the test or optimisation You can use the playback scrollbar to adjust the playback speed or stop the playback temporarily by clicking Pause If you checked the Use Date checkbox you can click Skip Ahead and select the date you want to see When you are ready to run the test click Start MetaTrader shows a progress bar so you can monitor the amount of time it takes to run the test At any time during the test you can click Stop to close the test 122 The amount of information that appears in the chart window may be different than the amount you receive from the History Centre For more information see Specifying Chart and History Data Properties in Section 7 Customising the Appearance and Settings in MetaTrader When you click Skip Ahead MetaTrader stops the visualisation and continues it after the selected date Once opened the Strategy Tester appears below the Terminal window You may need to adjust the size of the Strategy Tester window to see all of the windows you have open If you want to optimise an expert advisor you should select Control Points Testing or Optimising an Expert Advisor
146. inute M1 13 5 Minutes M5 15 Minutes M15 E aubuUsD E capIPY E cHFIPY S EURAUD 5 EURCAD E EURCHF Al Fiiwecro Time 2010 10 27 17 00 2010 10 27 16 30 2010 10 27 16 00 A 2010 10 27 15 30 ibty 10 27 15 00 v 1 00005 High Open 1 00086 1 00040 0 99958 1 00037 1 00106 High 1 00167 1 00149 1 00091 1 00113 Low 2010 10 27 11 00 A 2010 10 27 10 30 2010 10 27 10 00 2010 10 27 09 30 9 2010 10 27 09 00 ANINA INA NOT NANDLAN 0 99956 1 00015 1 00075 0 99956 0 99849 nA anenit 0 99916 0 99951 1 00122 1 00167 1 00086 0 99966 oon Low 1 00040 1 00018 0 99876 0 99913 Volume Close 0 99566 0 99939 0 99982 0 99940 0 99777 N aneo Close 1 00081 1 00086 1 00041 0 99958 7703 1 00034 0 99945 0 99955 1 00014 1 00074 0 99956 nm NANDAN volume A 2598 u 3626 5595 5395 4716 2783 3607 3296 2339 3145 4661 3203 3674 3842 3876 4459 v cano 173 Close If you need to add a time point you can click Add This opens the Bar window where you can enter the time and modify the open high low or close You can also modify a time point by selecting a time point and clicking Edit or remove a time point by selecting a time point and clicking Delete A Data that appears in the History Centre is downloaded from MetaQuotes servers
147. isor Wizard Welcome tn Expert Advisor Wizard Mol 4 Messe seket shy ycu meus ke bo cole O Con haza O Scip O L bray O le kee ATH OO Genuae bom lenpicic To cori s dich Net mel SS Anm amp Expt F Sty tan vah te Ea Poraa FE Hve Ie derc Akere tracing tog HETT Indicator O Cpet acviscr cw yT rote Ths EA s Cameo on dad hig s and bees ad e re awt p ba cach aher Dot Zam 00 Dable saro ones leva tc tha siyal be opan pee tion ancicr cen wine w H TTP 1 Rober ADE ZMA Rotot ADHAMA 5 a da f rir ed baog reed n He owed oe bs brat ten RS tras dine Onrettray scp Fer eek ress Flo 118 D Xx ME rks Cy ceria gt fin i E gt ixi ted datos S E tecsnis tthe lxs ACS presets a Qo sn n m 7 amits te tenrpletes 2 cw Bede Pase war mod ha op ofl MACD Save t migi Mida mrn Hamyon Mong Over ss rmy Cetonery Search 2210 00 25 eoceysrir 2010 06 25 hand 2010 18 20 2010 05 17 AW IA The Expert Advisor wizard helps you specify which type of expert advisor you want and name the file Expert Advisor Wizard General properties of the Expert Advisor Please specify general properties of the Expert Advisor Name Author Copyright 2010 MetaQuotes Software Corp Link http www metaquotes net Parameters Name Type Initial value F ExtParami int Once you click Next the wizard opens the General Properties window Here you can add par
148. it loss of one trade Drawdown displays the largest drawdown related to the initial deposit Drawdown shows the largest drawdown related to the initial deposit in a percentage Inputs displays the changeable values of inputs at each pass You can click in the column header to sort the entries in ascending or descending order 126 If you right click in the Optimisation Results tab you can view a drop down menu with other menu options You can use Copy to copy select lines in the table You can also click Copy All to select the entire table You can also save the table as an htm file by clicking Save as Report and entering the name of the report If you want to rerun the results of the test again click Set Input Parameters to return to the Settings tab If you only want to view the results of profitable passes you can check Skip Useless Results You can also display or hide the Inputs column by checking or unchecking Show Input Parameters You can also change the appearance of the journal table by right clicking in the Optimisation Results tab and selecting Auto Arrange which resizes the columns automatically if the Strategy Tester window size changes or Grid which displays the lines between the rows and columns x The Optimisation Graph tab displays a graph which maps your profitable trades in a green line and your unprofitable trades in a red line You can double click anywhere in the Optimisation Graph tab to return
149. lar order you can save your order settings by clicking Save Template New order Buy v Fixed lot size v Lots l none v none v none be Place order Save template The Save Template button appears 3 3 After you click in the Mini Terminal After you click in the terminals in the Trade Terminal window and select New Order Both of these buttons open the New Order window After you enter the order settings you can click Save Template An additional field appears and you can enter a new name for the template When done click Save You can then click Place Order to enter the order 31 Place order Save template Save this order definition as a template Tip you can execute saved templates quickly by holding down the Ctrl key while you dick on Once saved you can access the template from the Mini Terminal by clicking CTRL as you select A drop down menu appears with the templates in it You can also click in the Trade Terminal window and select Template to open a drop down menu where you can select the template you want You can delete a template at by accessing the Manage Templates window You can access it e From the Mini Terminal click CTRL as you select 3 click E In the drop down menu that appears e From the Trade Terminal window click 3 Selecting Template and clicking Manage Templates You can delete a saved template by clicking on the icon next t
150. le Edit View Tools Window Help I e FE D a Ly LY Compile G Terminal MACD Sample mqa4 Copyright 2005 MetaQuotes Software Corp http www metaquotes net extern TakeProfit 50 extern Lots 0 1 extern TrailingStop 30 extern MacDOpenLevel 3 extern MACDC loseLevel 2 extern MaTrendPeriod 2 6 int start i double MacdCurrent MacdPrevious SigqnalCurrent double SignalPrevious MaCurrent MaPrevious int cnt ticket total f initial data checks ff it is important to make sure that the expert works with a normal chart and the user did not make any mistakes setting external f variables Lots StopLoss TakeProfit TrailingStop in our case we check TakeProfit f on a chart of less than 100 bars if Bars lt 100 Refresh S Experts F Indicators pa Scripts Libraries N Articles Name Description Seles X 4 E q D Files O config files H include 2 indicators H libraries O logs O presets H samples H scripts H templates S IMATRIXDoubleZero maq4 IS earlyBird3 maq4 S Easiest ever mq4 hardprofit mg4 le MACD Sample maq4 IS Make Some Money mq4 IS Moving Average 2 ma4 e take profit maq4 Dictionary Search MOL4 com v Stop Hunter This EA is based on the strategy Stop Hunting with the Big Players FX Multimeter I v demo All in one trading tool Multi TF Indicator amp Expert advisor ea
151. lect None to remove the trailing stop from the position e Break even Exit places an order based on the set up of your trade at the selected position s entry price Traders use Break even Exit if they have a losing position and want to close the position at the entry price e Automated Close allows you to define rules for exiting an open position You can place multiple stop or limit orders to scale out of a position You can then save these rules as templates to reuse in the future If you place a trailing stop or automated close and you do not have a Virtual Private Server VPN subscription these orders will stop running when you close MetaTrader For more information about using Automated Close see Setting Up an Automated Close 38 You can also access these menu options when you click in a specific row If the order or position has automated tasks associated with it this appears in the row and when you click it an additional option called Tasks in Progress appears This opens the Automated Tasks in Progress window where you can view which automated tasks are linked to the trade Setting Stops and Limits in the Terminal Window Once your order becomes a position you can view it on the Trade tab in the Terminal window If you didn t specify a stop loss or take profit order when you first placed your order you can add those orders by right clicking in a position row and selecting Modify or Delete Order to open the Order
152. ling stop for cash amount Calculate the T S to use from the current lot size and the cash risk Fixed cash risk USD l of equity of USD 49308 78 O of balance of USD 51 410 66 k For more information about using the Calculator tool see Calculating Stops or Limits You can also place stop or limit orders to enter the market See Placing Pending Orders with Mini Terminal for more information Prices appear in real time in the Mini Terminal The current sell price appears in red The current buy price appears in green The spread appears between the two buttons zM ETT 0 90967 0 90994 Placing a Market Order in the Mini Terminal Window Make sure the Mini Terminal is displayed and Expert Advisors is on If desired change the size of the order If desired enter the number of pips to set your stop or limit in the appropriate field Click Sell or Buy Te eS YS Click Yes or No to confirm the order Once your order is placed MetaTrader shows a dotted line in the chart for each order placed and markers showing where orders were opened and closed Placing Orders in the Trade Terminal You can place orders from several places in the Trade Terminal 26 Market Watch 1 Click Terminal USDCHF GBPUSD EURUSD TE TEE E EE Lots 0 01 gt T s 0 R Lots 0 01 gt T s 0 S Lots 0 01 gt Tis 0 S Si T P 0 i TP 0 si b S mw bb S Account info 208
153. minal Window When you need to close a position at the current market price you can right click in a position row in the Terminal window and select Close Order E Order Time T Type Size Sy Price L TIP Price Com Taxes Swap Profit Comment G 9235 2010 07 29 16 48 buy 2 00 gbpusd 1 53423 0 00000 0 00000 1 55844 0 00 E E Close Order Q 9235 2010 07 29 16 49 buy 2 00 eurgbp 0 82584 0 00000 0 00000 0 83903 ooo E 9323 2010 08 26 16 00 buy 4 00 eurusd 1 26729 0 00000 0 00000 1 27205 0 00 E Modify or Delete Order 3 9326 2010 08 2718 08 buy 4 00 eurusd 1 26729 0 00000 0 00000 1 27322 0 00 lesen Siop gt e Balance 44 614 53 Equity 22 998 67 Margin 9 263 46 Free margin 13 735 22 Margin level 248 279 Profit gt Commissions Trade Account History News Alerts Mailbox Experts Journal Taxes Comments Auto Arrange v Grid The Order window appears with a Close button that displays the instrument volume and order number 47 Order 92354314 buy 2 00 EURUSD at 1 30727 sl 0 00000 tp 0 00000 Symbol JEA v 1 26729 volume 2 00 v 1 26721 Stop Loss 0 00000 Take Profit Comment 1 26713 Type Market Execution 1 26705 Market Execution 1 26697 1 26705 7 126727 1 26685 126672 Close 92354314 buy 2 00 EURUSD by Market 1 26664 Notice At order by market execution the price will be quoted by de
154. mmunity and viewing version information The MetaEditor Toolbar You can access the most commonly used tools on the MetaEditor toolbar If this isn t displayed click the View menu and select Toolbar a pS f Q ab Ly mo Compile GA Terminal MP a opens the Expert Advisor wizard You can use this to immediately create an expert advisor custom indicator script library or other autotrading tool a a displays the Open window If you ve previously created a file you can click this to navigate to the file location and select it saves the code file of the autotrading tool you created All MetaEditor files are saved as mq4 files E opens or closes the Toolbox window QD opens or closes the Navigator window a cuts a selected section of code in a mq4 file D copies a selected section of code in a mq4 file pastes a selected section of code in a mq4 file into another file amp reverses the last action you just completed T repeats the last action you just completed Ly Compile verifies if the code in the open file works as programmed The Errors tab opens automatically in the Toolbox window to show you if there are any errors or warnings When the compilation is successful MetaEditor saves the file 101 Terminal switches your computer to MetaTrader displays help files based on what you click on When active the cursor appears with a question mark You can customise all of the toolbars so that they
155. mq4 File Edit View Tools Nik_PSAR_2B mq4 Window Help a nas FA PTa pisii bry BT T accounts E WI micatirg 2 Epe aiir p Mi Custom lnicator P Coo p Oy Srp Soot hiik m CD Orire ieay p vy Compile Terminal Nik PSAR 2B mg4 mg4 Copyright 2010 basisforex gmail com x property copyright Copyright 2010 basisforex gmail com property link hasisforex gqmail com property indicator chart window property indicator buffers 6 property indicator colori property indicator color2 property indicator color3 property indicator color4 property indicator colors property indicator color6 extern bool extern bool TF4 extern bool TF3 extern bool TF2 extern double extern double Step Max imurna double si1 double s2 1 E Refresh Experts Indicators Name Stop Hunter FX Multimeter I v demo earlyTopProrate Double Zero EA Robot_ADX 2M4 Take profit Eur Usd Errors Findin Files Online Library AlertsEnabled White Yellow Blue Black Green Red Navigator Files C config O files H include H indicators H libraries O logs presets H samples fam scripts H templates earlyBird3 mq4 3 Easiest ever mq hardprofit ma4 MACD Sample ma4 Make Some Money mg4 G Moving 4verage mqt EEk Dictionary Search a Scripts Libraries Articles MOL4 com vi A Des
156. mtp gftserver xx xxx SMTP login trader oftforex com OO SMTP password eeeeee From itrader agftforex com To itrader qftforex con i To begin entering information click Enable The SMTP Server text box is where you will enter the address of your SMTP server and the port number The SMTP Login text box and SMTP Password text box are where you enter the login and password for the trader server The From text box is where you enter your name and the email address on the SMTP this is the address from which the message will be sent The To text box is where you enter the name and email address that you want to send the message to The Test button sends a message using the settings specified If the test is successful click OK If not check the settings and test again 170 Entering Reporting Settings The Publisher tab is where you can publish reports about your account status to the internet automatically Server Charts Objects Account FTP server FTP path FTP login FTP password Trade Expert Advisors Email Publisher Events Enable REM Refresh every 5 v minutes ftp oftserver xx wwx finetpub xx atatatata Passive mode To begin entering information click Enable The Account text box is where you ll enter the account number that you want published The Refresh Every drop down menu allows you to specify how often MetaTrad
157. n QQ Lig O B The Line Studies toolbar contains tools for displaying drawing and analytic objects and text in the chart window Mi MS MiSs M30 Hl H4 Di Wi MN The Periodicity toolbar displays tools for managing time frames of the chart window AN You can customise all of the toolbars so that they contain only the tools that you use For more information see Customising the Toolbars in Section 7 Customising the Appearance and Settings in MetaTrader Market Watch Quote Board You can monitor the real time bid and ask prices of the available instruments in the Market Watch quote board These are displayed on two tabs Market Watch 14 33 45 EJ Symbol Bid Ask GBPLUSD 1 53982 1 54016 EURGBP 0 82609 0 82638 EURUSD 1 27234 1 27253 8 USDIPY 84 397 64 425 AUDUSD 0 88992 0 89027 USDCAD 1 06487 1 06512 EURCHF 1 29260 1 29292 F EURIPY 107 369 107 425 EURCAD 1 35490 1 35536 EURAUD 1 42925 1 42976 GBPCHF 1 56429 1 56489 GBPJPY 129 969 130 028 CHFIPY 83 065 83 105 Symbols Tick Chart The Symbols tab displays a list of instruments to trade and their prices The arrow beside the instrument symbol shows if the price is higher or lower than the previously listed price The Bid and Ask prices also show market direction If the price is lower than the last reported one the numbers appear in red If the price is higher than the last reported one the numbers appear in blue You can rearrange the inst
158. n also use this window to test recently downloaded or newly created files or search for specific code strings in the files The Toolbox organises these tools over four tabs If the Toolbox window isn t displayed you can click in the View menu and select the Toolbox menu option You can also click l in the toolbar The Errors tab displays a list of any errors that MetaEditor finds in the code file of the expert advisor custom indicator or other autotrading tool After you save the file you re working on you can click sv Compile The Errors tab then displays a list of any errors or warnings it found Description File Compiling MACD Sample mag4 MACD variable not defined C Documents and Settings My Documents MACD Sample mg4 70 23 1 error s 0 warning s Errors FindinFiles Online Library Help Toolbox To go to the line with the error you can right click in the Errors tab and select Go To Line from the drop down menu that appears z Description File Compiling MACD Sample mq4 MACD variable not defined 1 error s 0 warning s Go To Line Enter C Documents and Settings kprior My Documents MACD Sample mg4 70 23 Ly Copy Ctrl C Clear Auto Arrange Grid Errors FindinFiles Online Library Help You can use the Find in Files tab to search for a specific word or line of code in one or more autotrading files in a folder 103 gt Meta
159. n the Online Library tab of the Toolbox make sure the type of autotrading tool you want is selected Scroll through the list of available autotrading tools When you find one select it and click Download If desired make any changes to the code 3 4 9 6 Click W Compile AN Because EAs are created by separate and independent third parties we are not responsible for their completeness reliability or accuracy In other words you use them at your own risk If you have questions on how an EA works you will need to contact 117 the EA provider If you edited an expert advisor and if after you compiled it the icon is gray in the Navigator window there is an error and you cannot use the expert advisor You ll need to review and edit your code and then compile the code again Creating an Expert Advisor If you know MQL 4 the MetaTrader programming language you can create a new expert advisor by right clicking on the Expert Advisors menu in the Navigator window and selecting Create Navigator x GFT MT4 Powered by BT B Accounts E F Indicators dh Create Insert amp Expert Advisors Set hotkey a FA Custom Indicators g Scripts Online library This opens MetaEditor an application installed with MetaTrader that helps you create expert advisors and displays the Expert Advisor wizard gt Metaf ditor Ie C vis ae Ee ale A a amp Sok Bima amp Experi Adv
160. ne from the drop down menu that appears If you select a line width of one you can also specify whether the line appears as solid or dotted by double clicking on the Style row and selecting a new one from the drop down menu that appears The Levels tab is where you can add level lines to the indicator You can create a new level by clicking Add You can then select the line and use the drop down menus to change the colour thickness and style of the level line To remove lines select the line and click Delete On the Visualisation tab you can select in which time frames the indicator can be used When you first open MetaTrader the All Time Frames checkbox is selected When you uncheck it you can select one or more time frames If you need to return to the original settings click Reset Indicators will appear either in the chart or in an indicator window below the chart The name of the indicator in the separate indicator window appears in the upper left corner of that window 89 MACD 12 26 9 0 001395 0 001509 al dhiiin mn a yur il y 1 4 18 Aug 2010 19 Aug 14 00 23 Aug 00 00 244ug 08 00 25 Aug 16 00 27 Aug 00 00 30 Aug 10 00 31 Aug 18 00 2 Sep 02 00 You can add as many indicators to the charts as you would like but it is advisable to use no more than five at a time Attaching an Indicator to the Chart Window 1 Right click on the indicator you want in the Navigator window and select Attach to a Chart 2 Selec
161. ns for Fibonacci patterns and displays any found Fibonacci patterns on the chart Additional details about the patterns are seen in the top left corner of your chart e Autochartist Key Levels forecasts support and resistance trends in current market moves Like the Fibonacci patterns you ll see a pattern display in the corner of the screen when Autochartist detects a pattern e Autochartist Power Stats looks at market volatility and provides a price range depicting where the market may be in the next given period Once again when Autochartist detects a pattern a display appears in the upper corner providing details about the identified patterns You can also view the levels that Autochartist believes the market will reach Once added to the chart the Autochartist information appears in the upper left corner Applying an Autochartist Custom Indicator 1 Right click on the Autochartist custom indicator in the Navigator window and select Attach to a Chart N Make sure everything you want is checked on the Common tab When done click OK a loaded onto a chart One thing to note is that it can take up to 30 seconds for a pattern to be recognised and 96 Managing Templates in the Chart Window With a chart template you can save the chart type time frame indicators expert advisors and other settings and apply it to any chart m EURUSD H1 Trading gt Expert Advisors b Periodicity Template ER Save Template
162. nt 1 30691 Type ob se eee Bay 1 39655 Mukple Close By eee Mukiple Close By for EURUSDgft Order See Price Sit TiP Price 4589736 1 38699 0 00000 0 00000 4589737 1 38699 0 00000 0 00000 4589739 1 38675 0 00000 0 00000 Once this is executed there will be one remaining long position open Order Tere Type Size Symbol Price Sit Tip Price Commission Swap Profit yc d 5 Balance 499 917 71 Equity 499 898 96 Margin 1 000 00 Free margir 498 898 96 Margin levet 43989 90 18 75 Closing Offsetting Positions 1 Right click in a position row in the Trade tab of the Terminal window and select Close Order to open the Order window 2 From the Order Type drop down menu select Close by Market 3 When the Order window appears click Multiple Close by 4 Click OK to close the window Viewing Your Account History You can view all of your executed trades on the Account History tab of the Terminal window Here you can also view your profit and loss credits deposits and withdrawal information x Order Time Type Size Symbol Price SL TIP Time Price Swap Profit e 91131203 2010 07 13 12 37 balance Deposit 50 000 00 L 91768415 2010 07 15 15 42 buy 2 00 usdchf 1 04105 1 03999 O LOHI 2010 07 29 18 34 1 04111 31 92 11 53 _ L 92191210 2010 07 19 14 09 sell 2 00 nzdusd 0 70616 0 00000 0 00000 2010 07 29 18 50 0 72565 139 47 3 898 00 L 92191216 2010 07 19 14 09 sell 2 00 nzdusd 0 70631 0 0000
163. nt Info section click next to the account detail o3 Select whether you want the value of the selected information to be higher or lower than a certain point Specify how often the alarm repeats by selecting a time frame in the Repeat section If your email settings are configured check Send Email If desired select Close All Orders or Close All Charts So E When done click Save If you need to disable an account alarm you can click to open the Alarm window and click Turn Off 53 As you trade you ll discover that the chart window is essential for monitoring your trades performing technical analysis and running expert advisors custom indicators scripts and other autotrading files In this section you ll learn more about the chart window and the features you can use in it Opening Charts In Section 1 you learned that the chart window plots the real time prices of an instrument on a graph and provides a snapshot of market movements over a particular period of time lies eet Mill Red oe eC ee ee ee ee ee ee ee ee ee ee E FPrrrrierrrrtieirrrtrtrterrrre TreLerirrrerreterrrrwurrrrrcreterrtertrrtrwreLetriecrrrirtrecrrrirlt LrerrrrrrrrttrtlrrrekTTrrereerrerrrerrtererkrererereeererereT eT eee ei lero peer et eee eee phe eee eee rier eels Dei ier tamil i ing lee teas ia oe eee eee ee eed ieee eter en poe iain eke as T babe iter meee ies Moa ie ac Trrtrrirrtrtrtere tle r T
164. nt chart and its settings The Trade Terminal consists of three central areas e The Market Watch window contains several Mini Terminals which display current prices and market direction The instruments that appear here are based on the selections in the Market Watch quote board To add or edit instruments you ll need to edit the Market Watch quote board You can enter one click market orders or set up a trade with multiple stops and limits by clicking in a specific Mini Terminal e The Account Summary shows your account balance current equity floating P L and margin e The Order List displays all of your open positions and pending orders You can also access tools to manage orders such as trading alarms While the Account Summary contains fields for balance equity and margin data you should not use these to moderate your account When you sign up for MetaTrader 4 you will also receive access to an online trading application which displays the most accurate trading activity on your account All transaction order history information that appears in 16 this online trading application is considered the most accurate and legally binding Because of this we recommend that you have both MetaTrader 4 and the online trading application open when trading to compare equity values You can also display the Trade Terminal outside of MetaTrader In the Open and Pending Orders section click Settings and check Undock Terminal You can conti
165. nue to use the Trader Terminal even when MetaTrader is minimised To redock the window click Settings and uncheck Undock Terminal To place trades using the Mini Terminal see Section 2 Opening and Managing Your Trades for more information The Terminal Window You can monitor your trading activity manage your expert advisors and perform other trading tasks in the Terminal window This usually appears at the bottom of the MetaTrader workspace These features are arranged in the window on several tabs AN If the Terminal window is not displayed you can view it by clicking the View menu and selecting the Terminal menu option The Trade tab displays your open positions and pending orders This is where you ll manage all of your trades X Order Time Type Size Sym Price zL TIP Price Com Taxes Swap Profit Comment sess 2010 07 29 16149 buy 2 00 erusa 1 20507 0 0000 0 000 1 30727 ooo woo 197 49 asooo L 9331 2010 08 31 20 53 sell 4 00 eurjpy 107 832 0 000 0 000 106 800 0 00 0 00 205 11 4920 03 e Balance 46 814 01 Equity 37 101 38 Margin 3 843 60 Free margin 33 257 78 Margin level 965 28 9 360 03 Account History News Alerts Mailbox Journal While the Trade tab contains fields for balance equity and margin data you should not use these to moderate your account When you sign up for MetaTrader 4 you will also receive access to an online trading application which displays the most ac
166. o its name 50 pips Normal Click Q next to the template to delete it 32 Opening the Order Window You can place manual orders using the Order window Take Profit iy f if W M i 0 89092 0 89128 O selbymaret Buy by market Notice At order by market execution the price will be quoted by dealer There are several ways to open the Order window e Select New Order from the Tools menu k E eee in the Standard toolbar e Clic e Double click on an instrument in the Market Watch quote board e Right click on a position in the Terminal window and select New Order from the drop down menu Once open you can use the following features to specify your trade A Chart View the current by tick price movements of the instrument The blue line represents the current ask price and the red shows the current bid price B Symbol Select an instrument to trade C Volume Specify the number of lots you want to trade D Type Choose whether your order is a market order or a pending order In MetaTrader 1 0 equals 100 000 units and 10 equals 10 000 units 33 Placing Market Orders in the Order Window When you first open the Order window the Type menu is set to Market Execution so you can place market orders Symbol FUE nee Australian Dollar vs US Dollar v 0 89140 Volume 4 00 v Stop Loss Take Profit Comment 0 89115 hh y My h vn
167. o shift data by several hours in time e The Selected Only checkbox to import only data that is selected in the history You can select data by clicking and pressing CTRL or SHIFT e The Volumes checkbox to enable or disable MetaTrader s ability to import volume 174 AN When importing a file the historical data should be written as follows another separator can be used instead of a space e YYYY MM DD HH MMOHLCV e YYYY MM DD HH MMOHLCV e YYYY MM DD HH MMOHLCV e DD MM YYYY HH MM OHLCV e DD MM YYYY HH MM OHLCV e DD MM IYYYY HH MM OHLCV hst files should also include both the following header struct HistoryHeader int version database version char copyright 64 copyright info char symbol 12 symbol name int period symbol timeframe int digits the amount of digits after decimal point in the symbol time_t timesign timesign of the database creation time_t last_sync the last synchronization time int unused 13 to be used in future And the following bars array with single byte justification pragma pack push 1 standard representation of the quote in the database struct Ratelnfo time_t ctm current time in seconds double open double low double high double close double vol pragma pack pop 175 Exporting Quotes You can export current quotes to other programs using the Dynamic Data Exchange DDE a tool on Microsoft Windows operating systems that allows
168. ols on the Chart W D Gann considered a 45 degree line to be significant when analysing market moves Under certain market conditions traders could draw a 45 degree line on a chart and forecast that moves above the line were bullish while those below that line were bearish If price movements crossed the line it indicated that the trend was changing When you click on the Insert menu and select Gann you can select from one of three different types of Gann tools to add to the chart A Gann line is a trendline drawn at an angle of 45 degrees When Gann Line is selected click where you want the line to begin A Gann fan displays a set of trendlines drawn from one point at different angles When Gann Fan is selected click where you want to place the fan A Gann grid displays a series of intersecting 45 degree lines When Gann Grid is selected click where you want the grid to begin and drag your cursor to size the grid 19 Drawing with the Fibonacci Tools on the Chart Leonardo Fibonacci discovered a number sequence where each successive number represents a sum of two preceding ones 1 1 2 3 5 8 13 21 34 55 89 144 etc Many traders use these values to forecast points of support or resistance When you click on the Insert menu and select Fibonacci you can select from one of five different types of Fibonacci tools to add to the chart When a severe drop or lbp ltl rise occurs you can use H a Fibonacci
169. ome traders prefer to open offline charts These show you the available price history but do not update to show the real time prices of the instrument 4 ug 2010 5 Sug 2 23 00 9 aug O 03 00 10 Aog 17 00 12 Aug 01 00 13 a 09 00 16 Aug 19 00 18 aon 03 00 194ug 11 00 20 Aug 19 00 24 Aa 05 00 25 Aug 13 00 You can open an offline chart by clicking the File menu and selecting Open Offline This opens the Open Offline Chart window where you can view the available instruments and time frames as well as how many bars candles or line ticks are available in the chart To open one select the chart you want and click Open When the chart opens you ll see Offline appear in the chart header 55 Viewing the Chart Window Once the chart window is open you ll notice a few features AUDCAD H1 0 93612 0 93664 0 93612 0 93641 i i i i i FET FFT o ol o o oo bee eo ea o oo ot o o o bee eo ao o o o ob o o oo 4ae 5 Aug 23 00 94ug 09 00 10 Aug 17 00 12 Aug 01 00 A The Price section displays the current market prices of the instrument B The legend shows the instrument symbol and current price information C The Time Frame Interval section displays times and or dates based on the selected time frame D The Ask Line shows the current ask price When you open a chart window for the first time in MetaTrader the chart displays the price movements of the selected instrument as a continuous line measuring in
170. ons window are set to do so See Specifying Chart and History Data Properties in Section 7 Customising the Appearance and Settings in MetaTrader for more information To reopen a closed chart click the File menu and select Open Deleted In the drop down menu that appears select the instrument and time frame that you want 98 Before you use MetaTrader s automated trading tools you ll want to learn a bit about MetaEditor an application installed with MetaTrader that helps you develop autotrading tools With MetaEditor traders can import create and modify expert advisors custom indicators scripts and other MetaTrader autotrading tools Before you start downloading or coding autotrading files you ll want to open MetaEditor and become familiar with its workspace In this section you ll receive an overview of the tools and features you ll use to create MetaTrader autotrading tools Opening MetaEditor MetaEditor is automatically installed on your computer when you install MetaTrader You can open it while working in MetaTrader using one of the following methods Fie View imet Charts Tools Window Hep l o x ee Gh e ete Ce B eg New Onder Fo visors qa Highory Cenie FZ Smid Bad Aik 5 Giba Wigresbles F3 euwe og 0 99 oa Giba Variibie z A GRPUSD T Metsluotes Language Edic F4 USD 81 749 81 755 USDCAD 81 0 1 0 gt NIDO T AUDIS gt USDZAR US0SGD 13a 1 3 F USDTRY 1 44 L
171. ontal Line Gann Trendline 1 41220 Fibor accel Ao Trendline by Angle 1 40910 Shapes Arrows 1 40595 Andrews Pitchfork 1 40285 Cycle Lines Text Text Label 1 39975 1 39665 1 39350 1 39040 1 38730 1 38563 1 38420 You can select over 30 different tools by clicking on the Insert menu in the menu bar and selecting the tool you want from the drop down menu or its related menu When you click Lines you can select from one of four different types of lines to draw on the chart Vertical Line places a vertical line in the chart window When selected click where you want your line to be to place it Horizontal Line places a horizontal line in the chart window When selected click where you want your line to be to place it Trendline allows you to draw a diagonal line through a series of high or low price points in the chart window When selected click where you want your line to begin and drag your cursor to place it AN You can learn more about these three types of lines in the Displaying the Line Studies Toolbar in this section of the guide 71 When Trendlines by Angle is selected click where you want your line to begin and drag your cursor to place the line on a specific degree A Remember you can change MetaTrader settings so all your trendlines have a beginning and end point using the Objects List See Configuring Drawings in the Chart in this section for more information Drawing Ch
172. open and close of the instrument and represents the trading activity for the time frame selected in the chart w Candlestick Chart tracks the price moves of the selected instrument as a sequence of blocks or candles Each candle displays the high low open and close of the instrument and represents the trading activity for the chart time frame With candlesticks you can analyse the market spot trends and forecast their direction Line Chart displays the price moves of the selected instrument as a continuous line The line connects the close prices for the time frame selected in the chart g Zoom In magnifies the most recent price moves and displays them on the chart B Zoom Out decreases the magnification of the chart P AutoScroll updates the chart so that it always scrolls to the right to show the latest price moves e I Chart Shift arranges the chart so the latest price moves appear at a certain point in the chart When active you can click the triangular marker at the top of the chart window and set it anywhere between the right side of the chart and the middle of the chart h7 Indicators displays a drop down menu with indicators You can select between the most commonly used indicators or click the folder where the indicators are organised by type When you select one MetaTrader opens a window so you can specify settings for the indicator and then 57 view it in or below the chart For more information on ind
173. or the currently selected object If you don t want to configure all of the drawings at once you can also double click on a Grouping Charts with Profiles MetaTrader allows you to open multiple charts and save them in a profile Many traders use this to compare their most commonly traded instruments You can use the Profiles menu option in the File menu to save multiple groups of charts EJ 066454440 M14 Powered by BT Demo Account T Fle View Insert Charts Toos Window Help a ah New Order B Exp P Open Offiine Open Deleted Profiles Next ChieFS Chose ChisF 4 Previous Shult FS Save As Chl S m Saves Save As Picture Remawe Open an Account Default Logn British Pound E Prirt Setup und J Prd Prewiew Makat Dyrere Swiss Franc Bh Pint ChileP ws Franc Est When you click the File menu and select Profiles you can e Display one of the existing profiles by selecting its name from the drop down menu that appears When selected a check appears beside it to show you that it is active e Return to the original profile by choosing Default e Move between profiles by clicking Next or Previous 85 e Save several charts already displayed as a set by clicking Save As Once saved it appears in the Profiles drop down menu with a check beside it to show you that it is active e Delete a profile by clicking Remove and selecting the profile you want from the drop down menu When you open a profile each c
174. ou can use this menu to select the one that you want If you right click on an account you can access a drop down menu which includes options to login to an account delete an account or open a new practice account Indicators shows a list of up to 100 different technical indicators depending on your account type that you can add to the chart window Many traders use technical indicators to forecast where the market may be going You can right click on the indicator you want and click Attach to Chart from the drop down menu to display it in a chart window Expert Advisors contains a list of all available expert advisor strategies these are programs that automatically analyse market conditions and place trades based on criteria you set Custom Indicators displays a list of trader modified technical indicators Scripts contains a list of available scripts these are programs that perform a single trading action once You can download expert advisors custom indicators scripts and libraries from other sources or create them in MetaEditor an application installed with MetaTrader that develops autotrading tools See Section 4 Opening MetaEditor for the First Time to learn more about MetaEditor and Section 5 Using MetaTrader s Autotrading Tools for more information on these tools If you right click on a specific indicator expert advisor script or custom indicator you can select Add to Favourites from the drop down menu You can th
175. ow Period Separators checkbox displays or hides vertical lines in the chart to mark periods of time depending on the time frame For example if the Periodicity drop down menu in the chart window is set between M1 and H1 MetaTrader will draw vertical lines to separate the days If 166 Periodicity is set to H4 the period separators represent weeks for D1 the period separators depict months and for W1 and MN1 they represent years The Colour Print checkbox allows you to print all charts in colour when enabled If unchecked the charts appear in black and white The Save Deleted Charts to Reopen checkbox saves the settings from charts that were deleted or closed When enabled any chart can be restored when you click the File menu and select Open Deleted The Max Bars in History drop down menu allows you to specify how many bars candles or line ticks are saved with the chart history When you open a chart history MetaTrader will display only the amount of bars candles or line ticks as specified in the drop down menu The Max Bars in Chart drop down menu allows you to specify how many bars candles or line ticks appear in the chart When you open a chart MetaTrader will display only the amount of bars candles or line ticks as specified here If the chart is set to display the latest price information or is refreshed after being in offline mode MetaTrader will discard older bars candles or line ticks as specified in the drop down menu
176. pert advisors which continually work and execute orders based on market moves a script only performs a function once Normally a script shuts down by itself but there are several ways that you can remove it 143 7088454440 MTA Powered by BT Demo Account EURUSD H4 1 fi View Chats Took window Help intai i a ty E 4 ETI u ELH SD HEE Ask A LTAL 137857 LOSE 1 37763 Bid 0 7 Symbol OCHF PUD 57 LST EURUED LI 1 37 USOCAD 1 03 1 03 G NDU 0 74 O74 AUDUSD 0 95 0 9 GUDR 7 08 7 07 UDS 1 30 1 30 SDTRyY LA L4 GERRY 1 9905 1 918 7 Ai Th Symbols 4 Expert Adios A Custom Lndicakors ia ops bw Ly Cope Lo diete perdng th modiy La modiy perdr Th Orderserd Lg dp Pred cometa T rotate text Le pand_pending re brace Text 10 6h et igi Connon Time From ii Cet bic ij Gee Ga EER igh New Order G Gj Expert Advisors Trachrey Expert Auchisors Remove Song Uihesols List Penockcty Template Foetresh Dubi Cire Diha diare Gnd Vokie Ciel Save 5 Fiche Pret Presse Prot Prceceent lees Hck ti tet ia for cee 2 fhe ore bel 40101025 IRLS fa 2007 09 25 16300 w 2007 09 25 15 55 HT4 Powered by BT MT4 Powered by BT Td Powered by BT 114 Powered by DT Registration What Is Automated Trading Mobile Trading t s Easy Welcome i D 2007 03 25 15 56 Feien es ma ri TM 1600 OS HLA LSS CLS wzo
177. present weeks for D1 the period separators depict months and for W1 and MN1 they represent years The Show Grid checkbox displays or hides vertical and horizontal grid lines in the chart window The Show Grid checkbox will be checked if you click the Charts menu and select Grid The Show Volumes checkbox displays or hides the current trading volume for the selected instrument in the chart window The Show Volumes checkbox will be checked if you click the Charts menu and select Volumes The Show Object Descriptions checkbox displays or hides the description of objects in the chart window If this option is enabled and there are descriptions of objects imposed into the chart available they will be shown directly in the chart 164 Specifying MetaTrader User Settings You can customise MetaTrader features and tools using the Options window You can open this by clicking on the Tools menu and selecting Options Options Server Charts Objects Trade Expert Advisors Email Publisher Events Server Example Server J RRR Password eeeeeee Data Center auto configuration Login Data Center Enable proxy server Keep personal settings and data at startup Enable DDE server Enable news The Options window organises the various settings for MetaTrader on several tabs In this topic you ll see how to specify features on each tab Viewing MetaTrader Server Settings The Server tab in the
178. price point on the chart For example if you select 10 the object on the chart will automatically be anchored within 10 pixels of the nearest open close high or low price point on the chart You can disable this option by selecting zero from the drop down menu Specifying Order Settings The Trade tab in the Options window displays the settings for opening orders in MetaTrader Server Charts Objects Trade Expert Advisors Email Publisher Events Symbol by default O Automatic Last used Size by default Last used Default 1 00 v Deviation by default Last used Default fi vl pips The Symbol by Default section specifies which instrument to use when you open the New Order window to place a market order When Automatic is selected the first instrument in the instrument list is selected in the Symbol drop down menu of the New Order window When Last Used is selected the last instrument you traded is selected When Default is selected you can use the drop down menu beside it to select a specific instrument The Size by Default section sets the lot size of the trade you want to fill The number of lots you entered in your last trade is used indefinitely wnen Last Used is selected If you want to trade using a constant number of lots you can select Default and use the drop down menu beside it to set the lot size The Deviation by Default section specifies the number of pips that the price can
179. r size or font You can also specify the time and the angle of the comment on the Parameters tab or select if the text label should appear on all chart time frames on the Visualisation tab 82 Configuring Drawings in the Chart After you add a drawing to the chart you can change its appearance and properties as well as add a label to it by right clicking in the chart window and selecting Objects List This displays the Objects On window x 3 na 1 31900 I 4 31470 3 1 31040 l 1 30620 1 1 30190 Lo 1 29770 b 1 29340 x fee Gee ee ee ee Object Name Description I Trendiine July 2nd 15th EUR USD ascending trendline 0 Edit rf 1 28490 I Arrow Up Arrow 1 I Trendline July 21st Aug 2nd EUR USD ascending trendline D Delete T Arrow Up Arrow 2 0 aN oe ee eee BF 1 28031 T Rectangle July 12th 15th Market confusion i l it 4 27220 I Arrow Arrow 45255 E onssa e alata eral Gee cde T Arrow Arrow 45271 i 1 26360 T Arrow Arrow 45278 3 1 25940 1 25510 i 1 25090 3 1 24660 1 24240 1 23810 3 1 23390 1 22960 ios 1 22530 3 1 22110 1 21680 260 1 21 29 Jun 2010 30 Jun 11 00 1 Jul 19 00 5 Eal 05 00 6 al 13 00 7 Jul 21 00 3 TY 05 00 12 Jul 15 00 13 Jul23 00 15 Jul 07 00 16 Jul 15 00 20 Jul01 00 21 Jul09 00 22 Jul 17 00 26 Jul03 00 27 Jul 11 00 28 Jul 19 00 30 Jul03 00 2 y 13 00 The Objects On window shows a list of all objects that are currently displayed in the c
180. r the Symbol Volume and other text boxes are greyed out You cannot edit these Modifying Pending Orders Right click in a position row and select Modify or Delete Orders to open the Order window From the Type drop down menu select Modify Order Change the price in the Stop Loss or Take Profit text boxes if desired Click Modify Click Print to print the order information if desired Or Qi a oe NY a Click OK to close the window 40 Deleting Orders in the Terminal Window If market conditions change and you don t want your pending orders to become positions you can manually delete your order by right clicking an order in the Trade tab of the Terminal window and selecting Modify or Delete Orders Order 93310715 sell limit 4 00 EURJPY at 106 800 sl 0 000 tp 0 000 URIPY Symbol 106 485 Volume 106 475 Stop Loss Take Profit Comment 106 465 i Type tse pte a E v 106 455 Modify Order 106 445 Price 106 600 Stop Loss 0 000 Take Profit B 0 000 a Expiry o 106 435 106 425 106 415 Open price you set must differ From market price by at least 30 pips 106 405 106 395 Deleting Pending Orders 1 Right click in a position row and select Modify or Delete Orders to open the Order window 2 Click Delete 3 Click Print to print the order information if desired Click OK to close the window Placing a Trailing Stop
181. r name Text to search for Alerts Display new item alerts Add filter Tre eee You need to name the filter and then type the keyword in the field You can click the checkbox to have an alert display when MetaTrader receives a new story that matches the keyword If you want to enter more than one keyword you need to separate the keywords by commas For example if you were looking for information about the EUR USD you would enter EUR USD EURUSD in the field When done click Add Filter If you need to modify the filter settings select the filter you want and click Edit Filter in the Open and Pending Orders section The Edit Filter Details window opens Edit filter details x Edit filter Cancel Change the filter details or remove the filter from your list The text to match against can be a list of items separated by commas For example EUR USD EURUSD matches against news items which contain either EUR USD or EURUSD Filter name AUD JPY Text to search for AUD JPY Alerts Display new item alerts Save changes Delete filter You can click the field that you want to edit and make the changes as necessary When done click Save Filter Or if you want to remove the filter click Delete Filter At any time you can click Cancel to exit the window entirely 157 Adding Twitter Feeds in Connect In Connect you can add a Twitter feed to the Twitter section by clicking Add a Tweet
182. rading name of GFT Global Markets UK Ltd Trading forex CFDs and spread bets is risky and not suitable for everyone All of these products excluding Binary CFDs and Binary Spread Bets are leveraged and you can lose more than your initial deposit Don t trade more than you can afford to lose GFT Markets is a trading name of GFT Global Markets UK Ltd and is authorised and regulated by the Financial Services Authority FSA for forex CFDs and Spread Bets The FSA does not regulate Binary CFDs and Binary Spread Bets 2012 Global Futures and Forex Ltd All rights reserved CDO04UK 160 101112 179
183. railing stop loss order will not be placed If you set a trailing stop and log out of MetaTrader after the market moves in your favour triggering the trailing stop the stop loss order will not trail the market It will work as a hard stop at the last price that the stop loss was at when you logged off When you log into MetaTrader 4 again if the stop loss hasn t been triggered it will resume trailing the current market price by the number of points that you specified between the stop and the current price In the Mini Terminal window you can also select Order cancels order OCO order types An OCO allows you to set both a stop and a limit order When market movements cause either order to be filled the unfilled order is automatically cancelled You can set two different OCO order types and enter the specific price or a value in pips OCO Breakout Helps you place a Buy Stop and a Sell Stop You would typically use this when you expect a major price movement but you don t know whether the move will be a rise or a fall OCO Reversion Helps you place a Buy Limit and a Sell Limit You would typically use this if you expect a move in either direction followed by a return towards the current price In the Trade Terminal window you can also group pending orders into an Order Cancels Another OCA order In this grouping when one order is filled all of the remaining orders are deleted If you place an OCA order and you do not have
184. range which resizes the columns automatically if the Strategy Tester window size changes or Grid which displays the lines between the rows and columns 125 AN If you selected Open Prices Only from the Model Type drop down menu in the Settings tab the Modelling Quality field will display an n a and a red band Time Message A A 2010 09 03 09 55 32 2010 09 01 19 44 Tester take profit 22 at 0 90909 0 90910 0 90940 B Ay 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample AUDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90876 tp 0 90909 ok Ay 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample 4UDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90877 tp 0 90909 ok A 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample AUDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90875 tp 0 90909 ok A 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample 4UDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90874 tp 0 90909 ok Ay 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample AUDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90872 tp 0 90909 ok A 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample 4UDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90871 tp 0 90909 ok z A 2010 09 03 09 55 32 2010 09 01 19 44 MACD Sample AUDUSD M1 modify 22 buy 0 10 AUDUSD at 0 90859 sl 0 90870 tp 0 90909 ok y Settings Results Graph Report Journal The Journal tab displays a list of system messages about the expert advisor s test such
185. rly TopProrate This EA is based on daily highs and lows and the relationship to each other Double Zero EA Double zero cross level is the signal to open position and or close Settings For H4 TF Robot_ADx 2MA4 Robot_4DX 2M4 Take profit Eur Usd Ea optimised on H4 based on low trailing stop Errors Find in Files Online Library For Help press lt F1 gt e Menu bar e Toolbar e Navigator window e Toolbox e File window 100 Date T Author 2010 08 28 mt coder 2010 08 25 eagleye777 2010 08 23 hansH 2010 08 20 mich99 2010 08 17 satop 2010 08 16 chris10 Ln 1 Col 1 e Status bar The Menu Bar At the top of the workspace you ll see the MetaEditor menu bar You can use the five menus that appear here to access that MetaEditor options that you ll use to create and edit autotrading tools File Edit View Tools Help File Displays menu options for creating and opening autotrading tool files You can also access recently opened files Edit Contains the menu option for finding and replacing a text string in an autotrading tool file View Displays menu options for displaying MetaEditor windows and toolbars You can also manage your language preferences from this menu Tools Contains tools for accessing MetaTrader and arranging the windows in the MetaEditor workspace Help Contains menu options for displaying the MetaTrader online help accessing the MQL 4 the MetaTrader programming language co
186. rrency variable double click in the row in the Value column and enter the three character currency code for the currency you want Adjust the settings as desired in the other tabs When done click OK You can add more than one currency index to a chart Simply repeat the steps add more 94 Displaying Detailed Candlesticks in a Chart While you can change the chart type to display candlesticks you can display more information about the candlesticks in the chart with the Candlesticks custom indicator GBPUSD Hi oc aea Detailed candlesticks appear in the Custom Indicators section of the Navigator window as Candlesticks For more information on custom indicators see Adding a Custom Indicator to the Chart Displaying Detailed Candlesticks in a Chart 1 Right click Candlesticks in the Navigator window and select Attach to a Chart 2 Make sure everything you want is checked on the Common tab 3 If desired make sure the colors that you want are selected on the Inputs tab 4 When done click OK 95 Applying an Autochartist Custom Indicator The Autochartist custom indicators in MetaTrader scan the instrument of selected chart over multiple timeframes to identify chart patterns Depending on the patterns detected Autochartist can forecast possible market trends and determine their strength There are several types of Autochartist custom indicators that you can add to a chart e Autochartist Fibonacci Patterns sca
187. rt price movements The Disable checkboxes beneath it allows MetaTrader to automatically deactivate all of your expert advisors if you change your account or your profile Allow Live Trading enables you to place orders when an expert advisor or script is active When this is checked you can also choose to select the Ask Manual Confirmation checkbox below it If your expert advisor or script is about to perform a trade and this checkbox is selected a notification appears asking you to confirm the trade Allow DLL Imports allows your expert advisors custom indicators or scripts to automatically access dynamic link library dll files associated with them When this is checked you can also choose to select the Confirm DLL Function Calls checkbox below it If your expert advisor custom indicator or script is about to access a set of dll files and this checkbox is selected a notification appears asking you to confirm the request Allow External Experts Imports enables your expert advisors custom indicators or scripts to automatically import functions from other MQL4 files This is a security option that protects you when you are working with expert advisors custom indicators or scripts from an unknown source 169 Entering Email and Server Settings The Email tab is where you can enter your email and server information Options Server Charts Objects Trade Expert Advisors Email Publisher Events Enable SMTP server s
188. ruments as desired by clicking on the symbol you want and dragging it to a new location If you right click on an instrument when the Symbols tab is selected you can access a drop down menu with several options Market Watch 14 36 25 EJ Symbol Bid Ask A GBPUSD 1 53990 1 54028 EURGBP 0 82575 0 82602 EURUSD 1 27191 1 27211 USDIP EL New Order AUDUS Ea Chart Window P USDC w Tick Chart Space EURCH EURJF FURCE Hide All F EURAL Show All GBPCh Symbols GBPIP CHFIP Symbols High Low Time Hide Delete Sets Auto Arrange Grid E Popup Prices New Order displays the Order window so you can place an order to trade Chart Window opens a new chart window Tick Chart changes the Symbols tab to the Tick Chart tab You can also double click an instrument to view the Order window See Opening the Order Window Hide removes a single instrument symbol from the window Hide All temporarily removes all instrument symbols in the window Hide only works on instruments that have no open positions or pending orders Show All displays the list of all available instruments When you hide an instrument in the Market Watch window that instrument will also be hidden in other tools as well For example if you want to open a chart of the AUD CAD but the currency pair is hidden it will not appear in the drop down menu when you click the File menu and select New Chart Symbols displays the Symbols window where
189. s ql Y Grd G i If you right click in the Results tab you can view a drop down menu with other menu options You can use Copy to copy select lines in the table You can also click Copy All to select the entire table You can also save the table as an htm file by clicking Save as Report and entering the name of the report You can use Set Date From and Set Date To fields to change the timeframe x Balance f Equity f Every tick the most precise method based on all available least timeframes to generate each tick 7 25 00 The Graph tab displays a graph which maps your balance with a blue line and the number of lots with a green line You can view this information in a legend that appears in the upper left corner You can double click anywhere in the Graph tab to return to the Results tab If you right click in the Graph tab you can view a drop down menu with other menu options You can use Copy to copy the entire graph so you can paste it in another file You can also save the graph as a gif file by clicking Save as Picture and entering the name of the file 124 Bars in test 2433 Ticks modelled 65920 Modelling quality 25 00 Mismatched charts errors o ee Initial deposit 10000 00 Total net profit 120 00 Gross profit 32 50 Gross loss 152 50 Profit Factor 0 21 Expected payoff 5 45 Absolute drawdown 129 70 Maximal drawdown 129 70 1 30 Relative drawdown 1 30 129 70 Total trades 22 Short positions won 3 10
190. s Scripts and Libraries You can start learning the language using Sergey a Account information Kovalyov s book named Programming in Algorithmic Language MQL4 published and supported by MetaQuotes Array functions Software Corp You can download the Book in chm format at khe Errors Findin Files Online Library The Help tab displays online help files for creating or editing the MetaTrader autotrading tools using the MetaQuotes Language 4 MQL4 You can use the toolbar along the top of this window to navigate through the files to find the code you want You can also use the Dictionary tab in the Navigator window to select specific topics to appear on the Help tab If you right click an item in any of these tabs you can view a drop down menu The options that appear in the menu depend on the tab you selected Some of the menu options that you may see are 105 Description Compiling MACD Sample maq4 MACD vari i i i CD variable not defined Go To Line Enter C Documents and Settings kprior My Documents MACD Sample ma4 70 23 1 error s 0 warning s Copy Ctrl C Clear Auto Arrange Grid Errors Findin Files Online Library Help For Help press lt F1l gt Ln 29 Col 1 File Line Text Searching For OrderClose N C Program Files Intert OrderClose OrderTicket OrderLots Bid 3 Violet J close position ay C Program Files Interb Clear OrderClose OrderTicket OrderLots Ask 3
191. s Swi x 20222823 3P CADCHF Sell 3 00 331 99 10 5 0 92753 0 92648 2012 05 23 12 0 35 8 mins 331 99 wy 20222825 3 EURCAD Sell 1 00 235 29 24 1 1 29434 1 29675 2012 05 23 12 0 35 4 mins 235 29 4 ii j Trade terminal Connect AUDCAD M15 AUDJPY H1 CADCHF M15 EURCAD M1 You can also view open positions and pending orders on the Trade tab of the Terminal window Which one you choose is a matter of personal preference For more information see Managing Orders in the Terminal Window The Open and Pending Orders section contains tools to help you monitor and manage your open positions and pending orders Close displays a menu with different options for closing positions and deleting pending orders You can choose to close all positions at once or specific positions by type Tools features a menu with different options for placing and managing one click stop and limit orders You can even close orders or place partial close orders Open and pending orders Close 3 Close X Tools z OCA Z Se Partial close Ticket All orders b V 2124 ae 20133079 TIP 20138020 oe EURUS Trailing stop 20138021 2 EURUS Se ee 20138022 B EURUS o Automated close p You need to select an order row to view the Selected Orders menu options OCA creates an order cancels all group with at least two selected pending orders You can also use this to cancel an order cancels all group of pending orders
192. s a position in the market at the current price The Order window opens with a Market Execution order type selected You can change the Type drop down menu and select Pending Order if you want to place a buy limit or a sell stop Buy Limit at Sell Stop at Places a buy limit or a sell stop at the listed price The Order window opens with the Pending Order type selected Placing a Market Order from the Chart Window Right click in the chart window of the instrument you want select Trading From the drop down menu click New Order Click Volume drop down menu to select the number of lots you want to trade If desired enter text in the Comment text box Click either the Sell by Market or Buy by Market button D o oS Shy a Click OK to close the window Placing a Pending Order from the Chart Window Right click in the chart window of the instrument you want select Trading From the drop down menu click Buy Limit at Sell Stop at order Click Volume drop down menu to select the number of lots you want to trade 1 2 3 4 If desired click the Expiry checkbox and select a date 5 If desired enter a price in the Stop Loss or Take Profit text boxes 6 Click Place l Click OK to close the window AN For more information see Placing Market Orders in the Order Window or Placing Pending Orders in the Order Window in Section 2 Opening and Managing Your Trades Managing Technical Indicators in the Chart Man
193. settings for the selected chart window on two tabs the Colours tab and the Common tab If you make a mistake while entering settings you can click Reset to restore all of your settings to the original ones When you are done customising the settings click OK Changing the Colour of the Chart Window On the Colours tab you can specify the colours for the chart window background foreground and grid You can also select colours for the bars candles line graph and other features Properties of EURUSD H4 EEE Colors Common Color scheme eee v Background E Black v EURUSD H4 1 37781 1 37970 1 37582 1 37876 Foreground White Grid LightSlateGray Bar Up Lime v Bar Down a Lime v Bull candle Black v Bear candle White v Line graph Lime v Volumes L LimeGreen v Ask line Red v 20 Oct 16 00 22 Oct 00 00 25 Oct 04 00 26 Oct 12 00 Stop levels L Red xi 161 You can use the Colour Scheme drop down menu to select a set of pre defined colour properties You can choose from three types of commonly used colour schemes Color scheme v E Yellow On Black a Geen On Black Black On White To select a colour click on the drop down icon for the setting you want to change and select a colour from the Colour Selection menu Background Black v Foreground None Gid W EEn cau AAP PRR RER RES BarDown eRe eee Bul cande BPR RO
194. st how the expert advisor would work with your initial deposit and in the base currency you want The Positions drop down menu allows you to select if the expert advisor opens both long buy and short sell positions or only long or short positions You can run an expert advisor through multiple tests that mimic different market conditions This is called optimisation On the Testing tab you can choose one of five models for optimisation using the Optimised Parameter drop down menu e Balance reports the smallest balance value in the deposit currency e Profit Factor determines the gross profit and gross loss of one trade e Expected Payoff looks at the average profit loss factor of one trade You can use this to determine whether the trade was profitable or unprofitable e Maximal Drawdown calculates the largest loss of one trade e Drawdown Percent determines the maximal drawdown of your initial deposit 120 MetaTrader will run the expert advisor through every possible combination of the parameter If you want MetaTrader to test the expert advisor using random selective combinations you can check the Genetic Algorithm checkbox MACD Sample Testing Inputs Optimization Variable IT TakeProfit 50 IT Lots 0 1 l TrailingStop 30 MACDOpenLevel 3 M MACDCloseLevel 2 MATrendPeriod 26 On the Inputs tab you can select variables that affect how the expert advisor works The inputs that you see in this tab depend on the exper
195. t Confirmation expert wav v To begin entering information click Enable You can double click in the Event column to turn on or off a sound A means an alarm will sound iX means the alarm was turned off In the Action column you can double click to display a drop down menu of possible sounds Simply click on the new wav file to select the sound If you have other sound files on your computer you can double click in the Action column and select Choose Other from the drop down menu This opens the Open window and you can navigate to the folder where your sound files are stored When you find one click on it and select Open If you want to use sounds you should choose a different sound file for each event You can view what each event does in the list below Connect signals that MetaTrader has successfully connected to the server Disconnect indicates that the connection to the server has been lost Email Notify signals that a new email has been received in the MetaTrader mailbox You can view it on the Mailbox tab of the Terminal window Timeout indicates that the time range for performing a specific trade operation has ended For instance you might hear this sound if you place an order in an extremely volatile market and your order was not placed OK signals that the trade operation you just executed was successfully performed News indicates that MetaTrader has received a new news story When news feeds are available yo
196. t Template 2 From the drop down menu click Load Template 97 3 In the Open window select the tpl file you want and click Open Saving a Template in the Chart 1 In the chart right click and select Template 2 From the drop down menu click Save Template 3 If you are saving a new template enter the file name you want If you want your changes to overwrite an existing template click that template file 4 When done click Save AN The templates in the drop down menu or the Templates folder on your computer may vary from the graphic that you see here i l You can also use these commands by clicking in the Charts toolbar This displays the same drop down menu that you see when you right click in the chart window Closing Charts and Recovering Them As you trade you may find it necessary to close chart windows If you need to look at a chart that was closed you can reopen them using the Open Deleted menu option in the File menu Ed 2088454440 M74 Powered by BT Demo Account EUR T Fie View Inset Charts Tools Window Hep l G Ey New Chait ag oh New Order B Expert Ay y ES Open Offline is cei Open Deleted GBPUSD H4 5i Provihes t LISDCHE H4 Close Curler USEF YHA HE saets Criss Remove H Para Setup 8 Logri a bh Print Preview h Fura CirleP Ext Alwar 1 Prod ea You can reopen closed chart windows as long as the settings in the Charts tab in the Opti
197. t advisor you selected you can use the checkboxes to select the lot size trailing stop levels or other information and double click in the Value Start Step or Stop column to change the values You can also click Load to add inputs to the expert advisor or Save to save the variables as a set MACD Sample Testing Inputs Optimization Limitation l Balance minimum Profit maximum Minimal margin level Maximal drawdown Consecutive loss Consecutive loss trades Consecutive win Consecutive win trades On the Optimisation tab you can select limiting parameters for optimisation As MetaTrader runs the expert advisor through subsequent tests it stops the test when one of the parameters is met The parameters that you see in this tab depend on the expert advisor you selected you can use the checkboxes to select parameters and double click in the Value column to change its value AN You need to check the Optimisation checkbox on the Settings tab of the Strategy Tester for these settings to apply to the optimisation 121 AUDUSD contract specification Spread Digits 5 Stops level 30 Pendings are good till cancel Yes Contract size 100000 Profit calculation mode Forex Swap type Swap long Swap short Margin calculation mode Forex Margin initial 100000 00 Margin maintenance You can determine how well an expert advisor would do with a particular instrument by s
198. t the options you want on the tabs that appear 3 When done click OK Indicators should not be confused with custom indicators See Section 5 Using MetaTrader s Autotrading Tools for more information on custom indicators When an indicator is attached to the chart you can right click in the chart window and select Indicators List This opens the Indicators on window You can use this to view the indicators already attached to the chart When you select an indicator you can click Edit to open the settings window for that indicator or click Delete to remove it from the chart 90 ER Indicators on EURUSD H1 Bollinger Bands a Indicator window 1 GF MACD If you use a particular indicator regularly you can save it to your Favourites tab by right clicking on it and selecting Add to Favourites You can also set a hot key shortcut so you can activate an indicator by pressing a key or two on your keyboard See Setting Keyboard Shortcuts for Autotrading Tools in the Navigator Window in Section 5 Using MetaTrader s Autotrading Tools for more information 91 Managing Expert Advisors With MetaTrader you can use automated trading strategies called expert advisors to perform prompt technical analysis of price data and manage trading activities based on current market conditions When an expert advisor is attached to the chart you can right click in the chart window to modify test and delete it MA
199. tervals by the minute The amount of time shown in the chart depends on the time frame you selected For example if you selected the five minute time frame on a line chart you can view the closing price of an instrument for the five minute period You can scroll back and forth in the chart history by clicking in the chart window and dragging your cursor to the left or right You can also change the scale of the price moves in the chart by clicking the Price section and dragging up and down or clicking the Time Frame Interval section and dragging left or right 56 AN You can change colours fonts and other settings in the chart For more information see Customising the Appearance of the Chart Window in Section 7 Customising the Appearance and Settings in MetaTrader Displaying the Chart Toolbar When you first open MetaTrader you ll notice the Chart toolbar appears at the top of the window You can use these tools to change and manage the way the chart displays pricing information AN If you don t see the Chart toolbar you can display it by selecting View clicking Toolbars and selecting Charts Lw nl QaQl plk g Oe MetaTrader groups the tools on the toolbar by type The first three buttons on the toolbar specify the chart type If you click one it remains active until you click another chart type button e ll Bar Chart displays the price moves of the selected instrument as a sequence of bars Each bar displays the high low
200. the Colour of the Chart WiInNdOW cccccccceeceeeeceeeeeeese esse eeseeeseeeeeeeeaeees 161 Customising Viewing Settings on the Chart Window cccceecceeeeeseeeeeeeeeeeeees 163 Specifying MetaTrader User Settings cccccccccccseecseeceeeeeceeceseteeeeeeseeeeeeseeneesees 165 Viewing MetaTrader Server Settings ccccccccscccsceceecceeccecceeeceeeeseeesgeeeeeseesseeeeaees 165 Specifying Chart and History Data Properties cccccceecceeceeeteeeeeeseeeeeeeeeseenees 166 Customising Object Properties on the Chatrt ccccccccccceccsecceeeeeeteeeeeesseeeeeeseeseenees 167 SPECHIVING Order SSUIN GS arenan nE r tuba eteddanepansd ad vassacedeaudedsasensseundiacen eae 168 Customising Autotrading Settings cccccccccceccceeeceeeseeeeeeeteeeseeseeeseeeseeeseeteeseeees 169 Entering Email and Server Settings ccccccccssccceecseeceeeceueceeeceseeegeceuessueeseesaeesaees 170 Entenng INC DOMING SCUINGS arrer onean a E R chau 171 Customising Sounds for MetaTrader cccccccceccsceseeceeeceeeeeeceeceueteeceeeseeeeeeeeeneeeees 172 Accessing the History Centre ccccccccceccescceeceeeceeceeeceecueeseesaeecsesaeeceesaesseesaeenensas 173 EXPONO OQUOLES eieren A ee eee oe eee 176 Managing Global Variables cccccccccseccseceeeeeeeeeeeeeeeeeeeeeaeesaeeeseeeseeeseeeseesaeesaeeeaess 177 Using the Advanced Security System ccccccsccssecseeceeeceeeceueceeeese
201. to the Optimisation Results tab If you right click in the Optimisation Graph tab you can view a drop down menu with other menu options You can use Copy to copy the entire graph You can also save the graph as a gif file by clicking Save as Picture and entering the name of the file 127 Attaching an Expert Advisor to a Chart Once you have the expert advisor as you want you display it in the chart window by clicking and dragging it from the Navigator window This opens a window so you can specify settings for the expert advisor A If you are using an EA and do not have a Virtual Private Server subscription your EAs will stop running when you log out of MetaTrader 2088454440 MT4 Powered by BT Demo Account EURUSD H4 Udb Ehe fs c Gi El al ig News Order D ED Expert Advisors ai Gel ELRLISOH LAA 1300S 17a LR Bad Ask 0 98 0 98 1 1 548 138 1 38 O UDEY 81513 61 519 ay 1 03 103 MACD Sample O74 O74 0 97 O97 Fi FOG i Salty Lm 1 30 L4 148 C Aiow DUL ingots H Eratda sects C Digable alat onca h F Allow impeet of extemal experts Navigator Live Trading T MT4 Powered by BT C Allow live trading n B Aioni a F Indicators SE Expert Advisors 925 MACD Sample Revi Ayer age pr Custom Indicators Scripts eo lr Oe _ ee er ini Eee a aliniialial 7 ee Poet 0 FO Lleol EGR Eo lee Me clc ft leo J euruso H4 at E
202. to use it If Connect is not already open when you first login to MetaTrader you can open it by displaying the Expert Advisors list in the Navigator window and dragging it to a chart MetaTrader replaces the chart and all existing autotrading tools running in that chart with Connect so you may need to open Connect in a new chart so you do not lose your current chart and its settings Like the chart windows you can maximise the Connect window by clicking At the top of the window you ll see several buttons e News displays market headlines and news stories Several feeds are offered but you can add additional feeds You can also filter stories by time frame or keyword When you select keyword you can also set an alarm for when a news item with that keyword appears e Calendar displays a daily economic calendar Here you can view upcoming economic announcements and their possible impact on a region If you click Timezone a message appears explaining that the time zone that you see is based on your computer s local time If you want to change which time zone appears in Connect you ll have to change your computer s settings e Twitter You can add Twitter feeds from sources that you follow e Dashboard allows you to access MT4i where you can run P amp L reports and publish your trading information You can filter by instruments time frames and time of trade You can also view market sentiment to see what other traders are tr
203. ton displays the price moves of the selected instrument as a sequence of bars When selected the Candlestick Chart radio button displays the price moves of the selected instrument as a sequence of blocks or candles Each candle displays the high low open and close of the instrument and represents the trading activity for the time frame selected in the chart When selected the Line Chart radio button displays the price moves of the selected instrument as a continuous line The line connects the close prices for the time frame selected in the chart The Show OHLC checkbox displays or hides price information that appears in the upper left corner of the chart window You can view the open high low and close of the latest bar candle or line on the screen The Show Ask Line checkbox displays or hides a horizontal line on the chart that tracks the ask price of the last quote In MetaTrader the price moves that you see on the chart track the bid prices of the selected instrument but when you open a long position or close a short position the ask price is always used This line shows traders what the ask price is The Show Period Separators checkbox displays or hides vertical lines in the chart to mark periods of time depending on the time frame For example if the Periodicity drop down menu in the chart window is set between M1 and H1 MetaTrader will draw vertical lines to separate the days If Periodicity is set to H4 the period separators re
204. tory hee Zooms out on the chart Zooms in on the chart Delete Deletes the selected drawing and technical objects from the chart Backspace Deletes the last drawing or technical object created from the chart Opens or closes the Fast Navigation window in the chart Closes any windows Opens or closes the New Order window r F11 F12 SHIFT F12 SHIFT F5 ALT 1 ALT 2 ALT 3 Changes the chart type to line chart ALT A Copies all test optimisation results to the Clipboard Opens the Windows list If you have more than one chart window open you can switch to a particular chart by selecting the chart you want and clicking Activate ALT F4 Closes MetaTrader ace CIRL Z Undeletes the last deleted drawing or analytical object CTRL A same size CTRL B drawn in a specific chart window CTRL Insert Copies the select drawing or analytical object to the chart ALT W 178 Keystroke m Shows or hides the open close high or low prices in the upper right CTRL H corner of the chart window Opens the Indicators List window You need to have at least one CTRL I indicator open in a specific chart window CTRL L CTRL W CTRL F4 Closes the currently displayed chart window CTRL Y Displays or hides the period separators in the chart window CTRL F5 Switches to the next chart profile CTRL F6 Moves to the next chart window when more than one chart is open CTRL F9 Opens the Terminal window interactive markets is a t
205. u can view it in the News tab of the Terminal window Expert Advisor signals that an expert advisor has performed a trade operation Expert Confirmation indicates that a manual confirmation is open and needs your confirmation When the Ask Manual Confirmation is selected in the Expert Advisors tab MetaTrader displays a notification asking you to confirm the trade when your expert advisor or script is about to perform a trade 172 Alert signals that market conditions have hit the alert you specified with your expert advisor Requote indicates that the price of the instrument you placed the order for changed in the middle of the trade operation Trailing Stop signals that one of your trailing stop orders has been triggered Accessing the History Centre MetaTrader stores historical data for all symbols and time frames in its server If you need to research the price moves of an instrument over time or want to test how an expert advisor strategy would perform on a particular event you can access this historical data by clicking the Tools menu in the menu bar and selecting History Centre History Center AUDCAD M30 Symbols Database 1169 records B E ForexRegula 8 aupcap 1 Minute M1 5 Minutes M5 15 Minutes M15 1 Hour H1 4 Hours H4 Daily D1 Weekly yy Z Monthly MN E AUDCHF E AUDJPY E aupnzp E aupusp E CADJPY E cHFIPY E EURAUD E EURCAD E EURCHF C FozRo P 930 Minut
206. ustom Indicators Scripts and Libraries You can start learning the language using Sergey Errors Findin Files Online Library Help For Help press lt F1 gt Ln 1 Col 1 The Search tab allows you to search the dictionary for a specific programming topic When you enter words in the field and click j MetaEditor lists the search results in the tab To view a result double click on the search result you want Like the Dictionary tab the topic you want opens in the Help tab of the Toolbox window 109 The Code Window The Code window is where you can view the text file that contains the source code of your expert advisor custom indicator script or other MetaTrader autotrading tools Metakditor rotate_text mq4 a File Edit View Tools Window Help BEAU Ss Bless stdlib mq4 rotate _text mq yy Compile Terminal Copyright 2004 MetaQuotes rotate text mg4 software Corp http www metaquotes net property copyright Copyright 2004 MetaQuotes hetp www metaquotes net property link include lt stdlib maqh gt string line name rotating line string object namel rotating text woid initi Print point Point bars Bars Software Corp void deinit i ObjectDelete line name ObjectDelete object namel ObjectsRedraw script program start function tS ane int start lt x Back gt MQL4 Reference
207. ve made several chan HML Family Get the High Median and Low values of each timeframe use them all or one at atime pick speci 2010 08 27 LEHayes FX Multimeter IY demo All in one trading tool Multi TF Indicator amp Expert advisor 2010 08 25 eagleye 77 AutoFib TradeZones Auto updating fib retracer showing zones for range trading breakouts 2010 08 25 eagleye777 g 8 Errors Findin Files Online Library The Online Library tab displays a list of trader created autotrading files You can use the toolbar along the top of this window to switch your search between expert advisors custom indicators scripts and other files You can use the scroll bar to move through the list You can also click ra wm Refresh to see if any new files have been added When you find the item you want select it and click Download You can also right click in the item row and select Download from the drop down menu This opens the source code file in the workspace Bak Q Home Zf Previous G2 sync SO Next QW MOL4 com MQL4 Reference ith f gt Basics MetaQuotes Language 4 MQL4 is a new built in language for programming of trading strategies This a Standard constants language allows to create your own Expert Advisors that make trading management automated and are a Predefined variables perfectly suitable for implementing of one s own trade strategies Besides one can use MQL4 for creation of Program Run one s own Custom Indicator
208. w a number of different ways our examples access the Order window by double clicking in the Market Watch quote board 34 Placing Pending Orders in the Order Window You can also place pending orders these enter your order when the market reaches a specific price Symbol AUDUSD Australian Dollar vs US Dollar 0 89155 volume 4 00 v y n J WA el i hy AR 1 Lah Comment jie Stop Loss 0 00000 Take Profit 0 00000 j 0 89137 0 89131 Type Pending Order nedies Pending Order 0 83119 Type Buy Limit AUDUSD 4 00 Expiry 8 31 2010 14 09 0 89092 Open price you set must differ From market price by at least 30 pips 0 89083 0 89074 The Order window displays some of the same fields as it does when you enter a market order When you select Pending Order from the Type menu a new section Pending Order appears You can select what kind of pending order you want the price and the expiration date of the trade If you are using a pending order to enter the market you can enter a specific price in the At Price text box You can specify how long you want your pending order to be available by using the Expiry checkbox After you click the checkbox you can select a specific expiration date and time Selecting Pending Order also opens the Stop Loss and Take Profit text boxes If desired you can set the prices you want for these orders If you place a stop loss or take
209. ween them by clicking the instrument tab at the top of the window 110 The Options Window You can use the Options window to specify font and style settings in the source code of the autotrading tool The Options window organises these over four tabs Options General Colors Font Network Tab size 3 chars Insert spaces Auto indent Auto parameter into Auto list names List names after 3 characters On the General tab you can specify how text is formatted in the tab when more than one autotrading tool file appears in the Code window Options General Colors Font Network Elements Foreground Text White Selection Margin Keywords Comments E 49 106 197 Numbers Operators peli MetaQuotes Functions Indicators Pre detined Y ariables On the Colours tab you can enter settings to specify text and highlight colour in the autotrading tool file In the Elements section select the code element you want and use the Foreground and Background drop down menus to select colours from a chart If you want to change the colours back to the way they were when you first installed MetaEditor you can click Reset All Background 111 Options General Colors Font Network l l Font Size Script Wester MS Mincha Consolas Courier Meta uotes Courier New Fixedsys Lucida Console Lucida Sans Typewriter L Bold MS Mincha OCR Std
210. window Order 93268626 buy 4 00 EURUSD at 1 27322 sl 0 00000 tp 0 00000 Symbol 1 26666 volume 1 26659 Stop Loss Take Profit Comment Type Modify Order h if li e i i Wi y i Modify Order 1 26652 F i f ETE Level 30 points Level 30 w points a 7 si covas D coras Wh 1 26624 Stop Loss 0 00000 a Take Profit 0 00000 an 1 26616 Yo Stop Loss or Take Profit you set must differ From market price by at least 30 pips You can see if a position has a stop loss or take profit order associated with it by looking at the Stop Loss S L or Take Profit T P columns in the Trade tab of the Terminal window In the Order window the Stop Loss and Take Profit text boxes will display zeroes if no orders were placed when the original order for the positions was placed When you open the Order window from the Trade tab it displays the Modify Order menu option in the Type drop down menu and appears already set with details about the position s original order You can specify information about your stop loss or take profit orders in the Modify Order section You can click the Level text box and enter in a new number When you enter a number of points you can view what the price would be in the Copy As buttons If this price seems right click Copy As to have the price appear in the Stop Loss or Take Profit text boxes If you enter an inappropriate price for either the Stop Loss or Take Profit t
211. window see Displaying the Mini Terminal in Section 1 Opening MetaTrader for the First Time You can use a number of features in the Mini Terminal window to place trades 12 00 shows the number of positions open for the selected instrument You can close all open positions for the selected instrument at once by clicking the number x opens the Tasks and Settings menu You can use options in this menu to specify settings undock the chart or Mini Terminal window from MetaTrader and view the number of automatic tasks that are active in the window 3 displays the New Order window You can use this to place more complex orders as you trade You can also save your order settings as a template for future orders The Status Indicator section displays the options for placing your trade You can set the size of the trade as well as specify settings for stops or limits associated with the market order T S 10 T P 0 Lots 1 00 S L 0 lt gt lt gt gt A Ww Lots sets the size of your trade You can enter a number or use to change the size When setting an associated stop or limit you can choose any combination of these three fields S L Stop loss or a stop T S Trailing stop T P Take profit or a limit In these fields you can enter in a number in pips or if you need help determining the best value click CTRL and click the field to access the Calculator tool 25 T S calculation a Calculate trai
212. y traders use technical indicators to forecast where the market may be going In MetaTrader you can select up to 30 different technical indicators to appear in the chart There are several ways to add an indicator to a chart e Click next to Indicators in the Navigator window to display the list of indicators Then click and drag the indicator to the chart window e Right click on the indicator you want in the Navigator window and select Attach to a Chart 87 x Indicators A Accelerator Oscillato FI Alligat Ee Attach to a chart 1 Add to favorites Set hotkey Bears Power F Bollinger Bands Bulls Power Commodity Channel GA nanavbav e Click the Insert menu and select Indicators This displays a drop down menu where the indicators are organised in folders by type Trend Volumes Oscillator etc You can select the folder and click on the indicator in it File View Insert Charts T a Symbol F GBEPUSD EURUSD F EURGBP USDCHF USDIPY AUDUSD USDCAD EURCHF F EURIPY EURCAD EURAUD GBPCHF GBPIPY CHFIPY AUDCAD Symbols ns Tools Window Help Indicators Lines Channels Gann l Fibonacci Shapes Arrows 63 240 03 200 0 95727 0 9576 Tick Chart 1H Cycle Line Accelerator Oscillator p Accumulation Distribution Alligator p gato n Average Directional Movement Index Average True Range Awesome Osc
213. your computer to exchange information with other applications Options Server Charts Objects Trade Expert Advisors Email Publisher Events Enable Expert Advisors except for Custom Indicators and Scripts Disable experts when the account has been changed Disable experts when the profile has been changed Allow live trading Allow DLL imports Confirm DLL function calls Allow external experts imports You ll need to make sure that Enable DDE Server is checked on the Server tab in the Options window See Customising Autotrading Settings in this section for more information History Data cannot be exported through the DDE Only current quotes can be exported 176 Managing Global Variables As you trade you may have more than one expert advisor making and placing trades at one time In order for these to work at times the expert advisors need to exchange information through global variables You can add and manage global variables by clicking Tools in the menu bar and selecting Global Variables in the drop down menu This opens the Global Variables window Gh Em w GE L ll A dh Now Order a GR Expert Advisors Market Watch Lai lt ELRLGDM4 Lasrel Lara lava 1a p Symi Eid Ak A 7 DHF 0 59 DF T GEPLED LS LS EURIG Love 1 37 a UEDA DRE hG 7 AOD O74 07 7 OU 0 35 0 95 en ari z QO TOS 14Sa a UGDT AR PAB TOT 4 y aa 2010 10 27 24 75 44 4 USDSGD Lana L2 T L
214. ys on Top displays the Popup Prices window on top of other applications Full Screen expands the window so it fits your entire computer monitor When selected a checkmark appears next to the menu option in the drop down menu You can deactivate the option by unchecking the menu option 23 LURUSD contract specification Spread Digts Slope havel Pendings ae good til cancel Cortract see L00900 Profk cakulajon mode Forax Margin cakulaton mode Forex Margin hecoe Soot Before you trade you may want to see the spread margin size and other details about the instrument that you are interested in trading You can view contract information by right clicking in the Market Watch quote board and selecting Symbols When the Symbols window appears select the instrument you want and click Properties This opens the Contract Specification window for the instrument you selected You can view real time prices and the current market direction of a specific instrument when you add the Mini Terminal to a chart window EURUSD H1 EURUSD 12 00 O Lots 1 00 Eee T S 0 sft jo B TP 0 o i You can also compare prices in the Market Watch window of the Trade Terminal 24 Placing Orders with Mini Terminal When the Mini Terminal is added to a chart you can use it to place one click buy and sell orders EURUSD 200 O Lots 1 00 T S 10 T P 10 A A Ww Ww A A Ww Ww For an overview of the Mini Terminal

Download Pdf Manuals

image

Related Search

Related Contents

Instrucciones de montaje 2S racores para tubos  ADaM 2013 User Guide - Drake Lane Associates  平成26年3月15日号  Instalation Instructions  Canadian French FumiCel-FumiStrip manual  HI 96734 Fotometro per l`analisi di cloro libero e  Sony MZ-R91 User's Manual  Zotac ZBOX SD-ID10  Panas。ni閤  Actiontec DSL Modem 4-Port  

Copyright © All rights reserved.
Failed to retrieve file