OPEN-SOURCE SCRIPT

MACD Strategy

This script sends buy and sell signals as alerts to 3Commas (online software with trading bots in cryptocurreny)

It's based on 2 indicators:
- MACD
- 12 EMA and 26 EMA
When the 12 EMA and 26 EMA crossover, the MACD line crosses above 0. The goal here is to look for buy signals when the MACD and Signal are below 0, the histogram is positive, and there was or will be a 12 EMA and 26 EMA crossover.

I struggle with the following:
- There are multiple ways to use this as a crossover signal. I want to calculate the win rate of every posibility.
- What should be my take profit and my stoploss?

I think a 2:1 R/R,and a 60% win rate would make a great strategy! I could use some advice.
Oscillators

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer