MACD strategy - Free Crypto Trading Bot

MACD crypto trading bot for the Bitcoin Perpetual (BTC-PERP).

To make our community more profitable we decided to start a series in which we will review open-source TradingView strategies. The aim of the review is to select a strategy (or a number of strategies) from TradingView and run a reality check on it, optimise them and convert into alerts, so you can set it up as a bot on Wunderbit Trading platform.

Video overview

What we will provide

  • Open-strategy source

  • Strategy adjustment for particular exchange, pair and timeframe

  • Backtest

This week we decided to go with the new MACD strategy for the Bitcoin Perpetual (BTC-Perp). This strategy is based on the trend-following momentum indicator. Similarly to our RSI-VWAP version 2 we included the Money Flow index as an additional point for entry. This strategy shows a good stable profit curve and has a significant number of observations in the backtest to confirm the results.

IMPORTANT

  • Input Partial take profits in your Wunderbit Bot settings

  • This is a trend strategy and works better in the trending market

  • We added the trend identifier using the EMA and SMA interaction

  • We added inputs for the period selection, so you could see how the strategy is performing on a monthly basis.

  • ATR for Stop Loss

  • MFI was added for the additional entries.

  • Partial Take-profits

Settings

Applicable to FTX: BTC-PERP 30 min

Input

Value

Period

39

Fast Length

7

Slow Length

23

Source

close

Signal Smoothing

10

Length

15

Lower

12

Upper

80

Long Take Profit 1%

1

Long Take Profit 1 Qty

20

Trailing Stop

1.3

SL Multiplier

2

ATR Period

40

Strategy script code

You can copy this code and paste it into your TradingView

Follow this guide to automate your TradingView STRATEGY alerts. (no need for study script).

Last updated

Was this helpful?