MACD + EMA
""" MACD indicator with 100 period exponential moving average (EMA) Timeframe: 1h Repo: https://github.com/gabrielweich/jesse-strategies When the MACD line crosses the signal line AND the closing price of the last candle is above the 100 period EMA a long order is placed. The script has been seet up to use the built in optimization, but the optimization was never completed due to lack of processing power. Change the default values in the hyperparameters function to manually tune parameters.
Filter Metrics
Select the info for the backtest metrics that you want to see:
Equity Curve
2019-01-01 => 2019-12-31BTC-USD1h
- PNL:
- 7059.78 (70.60%)
- Win rate:
- 23.01%
- Sharpe ratio:
- 1.28
- Smart Sharpe:
- 1.25
- Sortino ratio:
- 2.25
- Smart Sortino:
- 2.19
- Calmar ratio:
- 2.46
- Omega ratio:
- 1.27
- Serenity index:
- 0.40
- Average win/loss:
- 0.00
- Average win:
- 983.83
- Average loss:
- 212.87
- Total losing streak:
- 13
- Largest losing trade:
- -1279.61
- Largest winning trade:
- 6701.53
- Total winning streak:
- 3
- Current streak:
- 1
- Expectancy:
- 62.48 (0.62%)
- Expected net profit:
- 62.48
- Average holding period:
- 146070.80
- Gross profit:
- 25579.48
- Gross loss:
- -18519.70
- Max drawdown:
- -28.78
- Total trades:
- 113
- Total winning trades:
- 26
- Total losing trades:
- 87
- Starting balance:
- 10000.00
- Finishing balance:
- 17059.78
- Longs count:
- 113
- Longs percentage:
- 100.00
- Shorts percentage:
- 0.00
- Shorts count:
- 0
- Fee:
- 1675.87
- Total open trades:
- 0
- Open PL:
- 0.00