分类
全方位外汇教学指南

购买适用于MetaTrader 4 / MetaTrader 5的外汇EA

This is an EA based on average crossover.

yaojen/EA-ma-cross-ea

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

This branch is not ahead of the upstream eugenesia:master.

No new commits yet. Enjoy your day!

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Simple moving average (MA) crossover Expert Advisor (EA) for Metatrader 4, in MQL4.

This EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA opens a trade when the short period MA crosses the long period MA. Stop loss and target profit are set according to user-configurable parameters.

This is a simple EA that produces good results on certain currency pairs, during certain time periods.

Install Metatrader 4 on Windows or on Mac using PlayOnMac. This EA only works on MetaTrader 4, NOT MetaTrader 5.

Clone this repository in C:\Program Files\Metatrader 4\Expert Advisors\MQL4\Expert Advisors\Experts in Windows, or the equivalent on Mac.

Open MetaEditor (the part 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA of Metatrader that allows you to create and edit Expert Advisors). In the Navigator panel in the left sidebar, open MQL4\Experts\ma_cross_ea\MA_Cross.mq4 . Click 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA on "Compile" in the toolbar to compile it.

Open MetaTrader (the trading terminal). In the Navigator panel in the left sidebar, browse to Expert Advisors > ma_cross_ea > MA_Cross. Drag the MA_Cross icon to the currency 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA you want to do auto-trading with, e.g. "EUR/USD".

A configuration dialog will open where you can configure the EA's parameters such as:

  • ShortMaPeriod: Period for the faster MA. This MA will cause the EA to buy or sell when it crosses the slower MA.
  • LongMaPeriod: Period for the slower MA.
  • StopLoss: Stop loss 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA price from trade entry price, in pips.
  • TakeProfit: Take profit price from trade entry price, in pips.
  • Lots: Number of lots per trade.

Backtesting can be done using MetaTrader's "Strategy Tester" function, 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA accessed through main menu View > Strategy Tester .

The testing results for a similar EA, on the EUR/USD currency pair, can be seen here: https://youtu.be/DHFfsjFaIgU

I am not responsible for any losses you sustain while using this Expert Advisor. Trade with caution!

About

Simple moving average crossover Expert Advisor for Metatrader 4, in MQL4.

MQL4 Source Codes of Expert Advisors for MetaTrader 4

Various applications to automate analysis and trading are available in the 'Expert Advisors' section. It features various applications based on different trading algorithms and provides different degrees of automation. You can find simple EAs and complex trading robots that can fully automate analysis and trading processes.

These applications can be downloaded and run in 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA MetaTrader 4. It is recommended to test and optimize Expert Advisors in the Strategy tester. The Expert Advisors from the library can be accessed 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA from the MetaTrader 4 platform and the MetaEditor development environment.

Best 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA MetaTrader 4 Brokers

MetaTrader 4 is a sophisticated platform for currency traders developed over a decade ago by MetaQuotes Software Corporation. Higher versions of MetaTrader exist, but the fourth edition continues to set the standard thanks to an unprecedented amount of automating abilities.

Unlike TD Ameritrade’s thinkorswim or Power E-Trade, MetaTrader is provided by a number of different forex brokerages 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA for customer use, often alongside their own proprietary trading platforms. International customers 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA will have no problem finding a brokerage that supports MetaTrader, but 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA like most things forex, U.S. traders have to work harder to find one.

What is MetaTrader 4?

MetaTrader’s first iteration ran back in 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 2002 when Russian software firm MegaQuotes Software upgraded its FX Charts program into a high-tech and efficient forex trading platform. MetaTrader 4 was the final product and its much-anticipated release happened in 2005. Not only could experienced traders plot complex currency moves, they could also write entire 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA programming scripts and arrange automated trading systems.

MetaTrader platform navigation is remarkably simple. All the features are available to you with just a 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA few clicks (or taps if you’re using your mobile device). The program opens with four different currency pair charts, all completely customizable. Choose whether you want candlestick charts or line graphs, add a few of the 30 available technical indicators and track the four currency pairs you’re 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA most interested in.

What really separates MetaTrader from other forex trading platforms is its Expert Advisors (EAs). These advisors aren’t investment experts or customer service reps, but programs written by traders to carry out specific trades automatically. MetaTrader uses a proprietary programming language called MQL4, similar to 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA the C-languages used in computer coding. Using MQL4, forex traders can build automated trading systems that act with minimal human intervention. With MetaTrader, 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA you can literally trade currencies in your sleep.

Not familiar with programming languages? MetaTrader Market has thousands of robots and indicators available to download, although not all of them are free. Search through trade categories like Hedging, Arbitrage, Scalping, Trend Following, and even Martingale to find an 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA EA robot that suits your strategies. Download, test and implement automated robots 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA without ever closing the MetaTrader platform.

Using MetaTrader 4 with a Brokerage

MetaTrader has two different versions, one for clients and one for brokers. The broker platform is used as a server to facilitate trading and prevent malicious cyber attacks. The brokers are licensed to supply customers with 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA the client version, which is linked to brokerage accounts. Choosing the right brokerage is a critical aspect of any type of forex trading, 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA especially if you want to use platforms like MetaTrader.

Some forex brokers 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA base their entire trading operation around MetaTrader and use it as account management software, trading platform and gateway for real-time pricing and news feeds. MetaTrader is the same platform across brokerages, but that doesn’t mean all supporting brokers have the same trading rules. You’ll still need to make sure the broker has the currency pairs you want to trade as well as a reasonable schedule of fees and commissions.

Best Brokers Featuring MetaTrader 4

MetaTrader 4 isn’t of any use without a forex 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA broker that supports it. Thankfully, Benzinga has compiled a list of five respectable brokerage houses using MetaTrader 4 as a platform. All five companies on this list are registered with the National Futures Association (NFA), which regulates futures and forex trading in the United States. Transparency is important in the forex markets and NFA-registered brokers can give you 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA peace of mind.

Moving Average (MA) Crossover EA - expert for MetaTrader 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA 4

Allow the use of cookies to log in to the MQL5.购买适用于MetaTrader 4 / MetaTrader 5的外汇EA com website.

Please enable the necessary setting in your browser, otherwise you will not be able to log in.

This is an EA 购买适用于MetaTrader 4 / MetaTrader 5的外汇EA based on average crossover.

Plotting Shaded triangle

This is a simple code to draw triangle on chart connecting open and close of different candles.