HansPeterHeini

HPH's FractalTrades

HansPeterHeini Mis à jour   
This indicator is based on some dark fractal magic.

Not really, it's inspired by Vladimir Poltoratskiy and basically just waits for the price to go higher or lower than a previous fractal. If that's the case and all the additional settings allow the trade to take place, it is entered with the stop loss at the last opposite fractal of were it was entered (so if we enter a trade because the price went higher than the last up fractal, the sl is at the last down fractal).

The trades are visualised with a stop loss and 3 take profits levels (at a 1:1, 2,1:1 and 4:1 risk/reward ratio). The stop loss will trail once a certain take profit level is reached. Enjoy!

The settings:
  • LiveVersion: If ticked it will use close for stop losses and take profits. If unticked high and low will be used. Neither is accurate when backtesting as there is no intrabar data...
  • CancelEarly: Swings trade in the opposite direction when an opposite signal is received. If unticked the trade will continue until a tp or sl is hit.
  • ShowStats: Show a table in the top right displaying how many times the stop losses or take profits got hit.

  • FractalPeriods: Number of bars that are required for a fractal. E.g. if it's 2, 2 bars need to be lower on the left and right of a candle for it to print an up fractal.
  • MinFractalDiv: If this is bigger than 0, it will not allow new fractals to print unless they are at least a percentage based amount bigger than the last one. So this can be used to filter out fractals that are in the same range. Bigger value = more aggressive filtering!
  • TicksOnFractal: Tick based offset to add onto the fractals to enter trades. E.g. if it's 5 and the price goes above an up fractal, it needs to go up 5 more ticks to enter a trade.

  • UseFilter, FilterMultMin and FilterMultMax: If ticked, trades are limited to the once in the specified range (distance of the stop loss). E.g. if FilterMultMax is 0.05, the stop loss can not be bigger than 5% of the assets price for the trade to take place.
Notes de version:
As I don't think this indicator is useful I'm removing it to save everyone's time. Good luck on your search for the one strategy that will make you rich!
Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?