Expert Advisors

Linear Weighted MA-Cross

Developer: FXCM

The Linear Weighted MA-Cross EA buys and sells depending on the relationship of two Linear Weighted Moving Averages: one “fast” and one “slow.” The Linear Weighted Moving Average is used because of the emphasis it places on recent price data compared with the Simple Moving Average.

BUYING LOGIC

When the “fast” Linear Weighted Moving Average crosses above the “slow” a buy trade is opened.

Note: The trade is closed by a stop or a limit, whose price is defined by the user. All trades open at the close of the current candle. The EA only opens one trade at a time, regardless of the number of crossovers that occur.

SELLING LOGIC

When the “fast” Linear Weighted Moving Average crosses below the “slow” a sell trade is opened.

Note: The trade is closed by a stop or a limit, whose price is defined by the user. All trades open at the close of the current candle. The EA only opens one trade at a time, regardless of the number of crossovers that occur.

INPUTS

The following user defined inputs are available:

  1. Money Management Inputs
    • MagicNumber: A unique identifier that allows the EA to account for and manage its trades
    • LotSize: The number of lots traded
    • MaxDeviation: The maximum slippage allowed (in pips)
    • StopLoss: The stop price, as defined by a number of pips away from the open price
    • TakeProfit: The take profit price, as defined by a number of pips away from the open price
  2. Indicator Inputs
    • LinearWeightedMAfast: the number of periods that define the frequency at which the fast moving average is calculated
    • LinearWeightedMAslow: the number of periods that define the frequency at which the slow moving average is calculated
Risk Disclaimer

The application displayed on this page does not take in to consideration your individual personal circumstances and trading objectives. Therefore it should not be considered as a personal recommendation or investment advice. Past performance is not indicative of future results. There is no guarantee that the systems, trading techniques, trading methods, and/or indicators will result in profits or not result in losses.

Requirements

This Expert Advisor (EA) is only compatible with FXCM MetaTrader 4 software. It does not operate on MetaTrader 4 software provided by any other brokerage. Additionally, an FXCM account is required (including free FXCM demo accounts).