/Inventory.Retracement.Bar.APP

A simple way to analyze the Inventory Retracement Bar strategy via a dashboard

Primary LanguagePython

PT-BR

Se você quiser ler em português basta clicar aqui

Initial Idea

The repository aims to create a model that collects data from Binance, the largest international exchange, using the python-binance library. Afterward, the data is processed to obtain the results of the Inventory Retracement Bar strategy, developed by Rob Hoffman. The strategy showed promise, as the author claims it has brought victories in various trading competitions. However, it was observed that the strategy's default settings yielded unsatisfactory results in the cryptocurrency market.

Objective

Create a model where the signal occurs when the wick of the candle is equal to or greater than 45% of the body of the candle.

Signal

Entry Signal

By default, a 20-period Simple Moving Average is used to indicate the trend. Although the author suggests seeking trades where the moving average has a 45-degree slope, this idea was discarded due to the subjectivity of the angle when zooming in on the chart.

62-degree

45-degree

Trading

The entry occurs when the candle breaks the maximum value of the candle that generated the signal. Although this reduces the total number of entries, it's not an issue due to the high number of signals in the setup.

Start

The target value depends on the chosen payoff, which is the amplitude of the signal candle, and the stop value should be at the signal candle's minimum or the lowest value of the last N candles. This example uses a Payoff of 2 and the stop at the minimum of the signal candle.

End

How to Use

To enhance result visualization, a Dashboard has been created using Dash, from the same team behind Plotly. The Dashboard comprises 2 pages: homepage and backtest, each with a specific objective. Both pages aim to provide users with a simple and easy way to customize and visualize results with different parameter values for the strategy.

Visit the homepage or backtest for detailed information on using each page of the Dashboard.