OPEN-SOURCE SCRIPT

Footprint strategy

Atualizado
This strategy uses imbalance volume data obtained by footprint calculation technology.

There are two signals to enter a trade:
  • trend - the current buy volume on the bar is greater than the current sell volume and there is at least one imbalance line.
  • reversal - the current bar is falling, but the general market trend is positive (growing) and the imbalance buy volume exceeds the imbalance sell volume.

When any of the conditions is triggered, two orders are placed: Take Profit and Stop loss (according to the percentage value from the inputs).

A little advice on use:
  • The strategy performs best on a 15 minute timeframe.
  • It is necessary to choose acceptable values of Take Profit and Stop loss depending on the order of symbol prices.


Inputs related to the strategy:
  1. Stop loss - percentage size of stop loss to exit the trade.
  2. Enable stop loss - stop loss activation.
  3. Take Profit - percentage size of Take Profit.
  4. Calculation timeframe - this is the timeframe from which the volume will be collected for distribution to buy and sell (if you do not have access to the seconds chart, set here 1 minute, the accuracy will be less, but it will work).
  5. Trend timeframe - this is the timeframe from which the trend will be calculated.
  6. Enable trend - activation of trend calculation.


Inputs related to the calculation of footprints (collection of the volume of purchases and sales):
  1. Count show bars - Number of bars from rt bar to history to calculate.
  2. Display all available bars - Strategy calculation on all available bars (based on the available amount of data with reduced resolution (set in Calculation timeframe)).
  3. Ticks Per Row - Sets the price step, calculated by multiplying the entered value by syminfo.mintick.
  4. Auto - The automatic "Ticks Per Row" calculation is based on the first available bar and applied to subsequent bars.
  5. Max row - sets the acceptable number of rows within a bar.
  6. Imbalance Percent - A percentage coefficient to determine the Imbalance of price levels.
  7. Stacked levels - And minimum number of consecutive Imbalance levels required to draw extended lines.


If you have suggestions for improving the strategy and adding new conditions for entering and exiting the trade, please write).
Notas de Lançamento
minor fix
Volume

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal