Skip to main content

MACD+MFI Crypto Trading Bot

We are happy to present a free strategy for a Bitcoin crypto trading bot on TradingView.

Written by Anna Smith

To help our community become more profitable, we’ve launched a new series where we review open-source TradingView strategies. The goal is to select a strategy (or several), run a reality check, optimize them, and convert them into alerts so that you can set them up as bots on the WunderTrading platform.

Video overview

What we will provide

  • Open-source strategy

  • Strategy adjustment for a specific exchange, pair, and timeframe

  • Backtest

This week, we’ve decided to go with the new MACD-based strategy for the Bitcoin Perpetual (BTC-PERP). This strategy uses a trend-following momentum indicator. Similar to our RSI-VWAP version 2, we’ve included the Money Flow Index as an additional entry condition. The strategy demonstrates a stable profit curve and has a significant number of observations in the backtest to validate the results.

IMPORTANT!

  • Input partial take profits in your WunderTrading bot settings

  • This is a trend strategy and works best in trending markets

  • A trend identifier was added using the interaction between the EMA and SMA

  • Inputs for period selection were added, allowing you to evaluate the strategy’s performance on a monthly basis

  • ATR-based for Stop Loss was implemented

  • MFI was added for additional entries

  • Partial take-profits are supported

Settings

Applicable to Binance: BTC-PERP 1h

Input

Value

Period

20

Fast Length

6

Slow Length

20

Source

Close

Signal Smoothing

15

Length

14

Lower

10

Upper

80

Long Take Profit 1 (%)

1

Long Take Profit 1 (Qty)

50

Trailing Stop

2.5

SL Multiplier

3

ATR Period

15

Strategy Script Code

You can copy this code and paste it into your TradingView.

Attachment icon
Did this answer your question?