• Troca de idioma e taxa de câmbio
  • Preferências
    Cor de subida/descida
    Hora de Início-Fim da Variação
Web3 Exchange
Anúncio
Actividade
Relatório Quinzenal
Instituição e VIP
Gate Learn
Delisted
Gate Wealth
Novo na lista
Gate Charity
Finanças
Concorrência de trading
Deposit&Withdrawal
ETF
Ao Vivo
Gate Card
rename
Anúncios Guide to MACD Quantitative Strategy
Guide to MACD Quantitative Strategy
2020-09-23 08:03:46 UTC 411196 Lido
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 a MACD strategy? (Perpetual contract MACD as an example)

Navigation bar - "Copy Trading" - "Strategy bot" - "Create a strategy" - "Contract-CTA"- "Create strategy". Then select the trading market and enter the total investment amount. Click on "Create" after setting up the parameters.

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".


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

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.


Gate.io reserves the final right to interpret the product.

Partilhar publicações
Artigos relacionados
Grande anúncio: a negociação por cópias da Gate.io lançou os fundos de teste... Gate.io Copy Trading New Copiers' Promotion#6: Compensation for Your Liquidation! Win Non-threshold... Gate.io Lead Trader's Special Competition#4: Earn Upgraded Rights for Copying Loss and Liquidation!... Gate.io Quick-fire Questions on Grid Trading Gate.io Copy Trading: Trade With Lead Traders Who Survive the Black Swan Crisis; Win & Share 20,000U... [Lead Trader] How Can Lead Traders Level Up?
idioma e região
taxa de câmbio
Ir para Gate.TR?
Gate.TR está online agora.
Pode clicar e ir para Gate.TR ou ficar no Gate.io.