Fractal Corridors BacktestFractal Corridors is a strategy developed a used by Vladimir Poltoratskiy. You can learn about this in his books from the series Trading Code Is Open which I recommend reading.
The strategy allegedly works best in a high-liquidity environment with little to no impactful events. The author likes to trade EURUSD, Copper, and USDCAD, I think, was another pair.
Logic is based on his 3-bar fractals and their fractures as they come. Basically, if the fractal level gets broken by a certain number of ticks (usually 6 - 14% Average Daily Range), a corridor is built and stop-market entry will be filled.
There are other rules you will find in the book. Most importantly - avoid trading during events and extremely choppy symbols which seem to follow no logic.
Lastly, the script includes 5 different definitions of Fractal Corridor. I think Mode 5 is the correct one but I was unable to confirm that exactly as it gets a little tricky. I am willing to disclose this part of the code to other Pinecoders, but it will not be available for everyone, because that could discourage people from getting the book.
Thanks to @mincho1010 for help with testing different versions as I worked on the script.
Have a good day!
Poltoratskiy
HPH's FractalTradesThis 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.
Average Daily Range TableThis is the last script to complete Vladimir Poltoratskiy's setup found in his books.
Poltoratskiy argues that you should not take any fractal corridors higher than 50% of the Average Daily Range. To be honest, even 40% is a lot, because then, your target will be 160% ADR away from your entry and one "fracture" just can't be enough to predict moves this big.
I chose a table to visually represent the indicator because it doesn't change its value during the day. It takes far less room on the chart.
There are also two simple moving averages. You may use the as an indicator if the relative volatility as of late is extremely low and in that case, perhaps, expect an increase in the coming days. They are applied to the Average Daily Range, not one day range!
STP Fractal CorridorsFractal Corridors is a lagging channel connecting Fractal highs and lows each with added/substracted pre-set value.
It is inspired and designed for Vladimir Poltoratskiy's trading style with his ST patterns (book: Forex Strategy: ST Patterns Trading Manual).
This uses fractals with one candle lower/higher on each side as in the book.
You may choose to disable fractals and view the channel only.
Good luck trading!
Fractal CorridorsFractal Corridors is a lagging channel connecting Fractal highs and lows each with added/substracted pre-set value.
It is inspired and designed for Vladimir Poltoratskiy's trading style with his ST patterns (book: Forex Strategy: ST Patterns Trading Manual).
However, to keep the charts clearer, I used William's Fractals that require two previous and following candles to be higher/lower opposed to just one as described in the book.
You may choose to disable fractals and view the channel only.