• Notificaçōes Mercados e preços
      Ver mais
    • Troca de idioma e taxa de câmbio
    • Preferências
      Cor de subida/descida
      From- To time of the change range

    Gate.io Central de Ajuda

    Apoio ao cliente do /Pedido de suporte do

    Enter keywords to find answers
    Gate.io > Central de Ajuda > copy trading School > Quantitative trading help documentation
    More article in the group
    Guide to MACD Quantitative Strategy
    Gate.io
    Atualizado às: 84 days 19 hours ago
    lv

    What is MACD?

    MACD stands for Moving Average Convergence Divergence and was created by Gerald Appel in the 1960s. It is a technical analysis tool for revealing changes in the strength, direction, momentum and duration of a trend in a stock's price to predict and identify buy and sell points. MACD consists of curves and a pattern. The curves are DIF and DEM. The pattern refers to a histogram.

    1. DIF

    DIF is the 12-day exponential moving average (EMA) subtracted by the 26-day EMA of the closing price.

    img

    2. The signal line (DEM/MACD)

    DEM is the 9-day exponential moving average of DIF.

    img

    3. Histogram/Bar graph

    "Bar graph" (MACD bar / OSC) is formed by the difference between DIF and DEM.

    img

    Where to set up an MACD strategy? (Perpetual contract MACD as an example)

    Navigation bar - "Copy Trading" - "Create A New Strategy" - "Strategies Templates" - (MACD)"Create Strategy". Then select the trading market and enter the total investment amount. Click on "Create" after setting up the parameters. img

    Backtest: You can perform backtesting before creating MACD strategies. The backtesting process is as follows:

    Click the "Backtest" button as shown on the screenshot above. Fill in the expected parameters and click "Backtest", the will automatically backtrack the data (within one month by default), and generate a piece of backtest data for reference in "Backtest Records".

    img

    MACD Quantitative Strategy(A brief introduction)

    MACD Quantitative Strategy uses the standard MACD algorithm to collect information from the market. When DIF is greater than DEM (golden cross), the strategy will be to go long. When DIF is less than DEM (death cross), the strategy will be to go short.

    img

    Parameters setup

    img

    Leverage ratio: The leverage ratio users choose will be used in calculating the order quantity.

    Total Investment: The total amount of asset an investor puts in as margin.

    Position TP: When the profit/loss ratio of the last mark price to the average opening price is equal to or greater than the position take-profit ratio, liquidation will be triggered at market price, which will not affect the ution of the strategy.

    Position SL: When the profit/loss ratio of the last mark price to the average opening price is equal to or less than the position take-profit, liquidation will be triggered at market price, which will not affect the ution of the strategy.

    Auto Stop-Loss Ratio: When the total investment loss reaches auto stop-loss ratio, the strategy will close the position and exit.

    Fast EMA, Slow EMA, MACD Signal and Period: Standard parameters of MACD.

    Order Quantity: The number of contracts the strategy makes when a signal is triggered.

    Default Order Quantity: Default Contract Handling Fee: 0.00075

    For inverse contracts: Default order quantity = (margin * last price) / (2* 0.00075 + (1/leverage) * (1/order amount)

    For linear contracts: Default order quantity = margin/ ((2*0.00075 + 1/leverage) * last price * (1/order amount) The actual order quantity is the smaller one of the calculated default value and the value set by the investor.


    Operation Example

    After creating a strategy, you can find the running strategy in the "My Strategies'' section. When there is a golden cross or a death cross formed in MACD indicator, the details of relevant order and strategy will be shown in the "Active Strategies" section.

    If you want to stop profit or loss in time, you can click "Close" to close the current position or click "Stop" to close the current position and end the current strategy.

    Não encontra a resposta que procura?Envie um pedido de suporte
    Voltar ao topo

    Gate.io > Central de Ajuda > Search result

    search for “ ” returned: entries

    Não encontra a resposta que procura?Envie um pedido de suporte

    gate.io APP

    Aplicação gate.io 2.0

    Aplicação gate.io 2.0
    Transferir
    idioma e região
    taxa de câmbio

    Selecionar idioma e região

    • 简体中文
    • English
    • Tiếng Việt
    • 繁體中文
    • Español
    • Русский язык
    • Français
    • Deutsch
    • Português (Portugal)
    • ภาษาไทย
    • Indonesia
    • Türkçe
    • 日本語
    • عربي
    • Українська
    • Português (Brasil)
    • Nederlands