forex software

Create and Test Forex Strategies

forex software

eas-guide:export-expert-advisor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
eas-guide:export-expert-advisor [2018/03/22 14:42] Miroslav Popoveas-guide:export-expert-advisor [2020/12/09 14:03] – [MetaTrader 4] Ilan Vardy
Line 3: Line 3:
 ===== How to export an Expert Advisor ===== ===== How to export an Expert Advisor =====
  
-When you open a strategy in the **Editor** you can export it as an Expert Advisor. To do so click on the **Export** button in the toolbar.+When you open a strategy in the **Editor** you can export it as an Expert Advisor. To do this, click on the **Export** button in the toolbar.
  
 {{ :eas-guide:export-expert-advisor.png?nolink |Export Expert Advisor}} {{ :eas-guide:export-expert-advisor.png?nolink |Export Expert Advisor}}
Line 25: Line 25:
   - Paste the Expert Advisor file   - Paste the Expert Advisor file
   - Go back to MetaTrater   - Go back to MetaTrater
-  - Go to **Navigator** (if it's not open open if from **View > Navigator**) +  - Go to **Navigator** (if it's not openopen if from **View > Navigator**) 
-  - In the **Navigator** box right-click. click **Refresh** from the menu. Your expert should appear in the **Navigator** under **Expert Advisors**.+  - In the **Navigator** box right-click. Click **Refresh** from the menu. Your expert should appear in the **Navigator** under **Expert Advisors**.
   - Open the chart you want to place your Expert Advisor on   - Open the chart you want to place your Expert Advisor on
-  - To attach the Expert Advisor to the chart drag-and-drop it from the **Navigator** box to the chart.+  - To attach the Expert Advisor to the chart drag-and-drop it from the **Navigator** box to the chart, or simply double-click on the Expert Advisor
  
 <WRAP center round tip 60%> <WRAP center round tip 60%>
 **Using different Magic Numbers** **Using different Magic Numbers**
  
-When you are trading several Experts on the same symbol they will need to differentiate between each others' positions. MetaTrader allows us to do that by using a unique Magic Number for each Expert. EA studio will export Expert Advisors with a random Magic Number built-in in the Expert so it will differentiate its positions from other Experts when trading. However it is up to you to make sure each Expert that you trade on the same symbol has a different Magic Number. If this happens you can change the Magic Number from the Expert's code or from the **Inputs** options of the Expert.+When you are trading several Experts on the same symbol they will need to differentiate between each others' positions. MetaTrader allows us to do that by using a unique Magic Number for each Expert. EA studio will export Expert Advisors with a random Magic Number built-in in the Expert so it will differentiate its positions from other Experts when trading. However it is up to you to make sure each Expert that you trade on the same symbol has a different Magic Number. Should you have duplicate Magic Numbers, you can change the Magic Number in the Expert's code or from the **Inputs** options of the Expert.
 </WRAP> </WRAP>
  
Line 40: Line 40:
  
   - Go to **File > Open Data Folder**   - Go to **File > Open Data Folder**
-  - From the folder list open the **MQL4** folder+  - From the folder list open the **MQL5** folder
   - Open the **Experts** folder   - Open the **Experts** folder
   - Paste the Expert Advisor file   - Paste the Expert Advisor file
   - Go back to MetaTrater   - Go back to MetaTrater
-  - Go to **Navigator** (if it's not open open if from **View > Navigator**)+  - Go to **Navigator** (if it's not openopen if from **View > Navigator**)
   - In the **Navigator** box right-click. click **Refresh** from the menu. Your expert should appear in the **Navigator** under **Expert Advisors**.   - In the **Navigator** box right-click. click **Refresh** from the menu. Your expert should appear in the **Navigator** under **Expert Advisors**.
   - In the **Navigator** right-click on the Expert Advisor name. From the menu choose **Modify**   - In the **Navigator** right-click on the Expert Advisor name. From the menu choose **Modify**