OPEN-SOURCE SCRIPT

Trend Following Breakout

Updated
Easy Trend Following Strategy using Highs and Lows breakout of the last X candles to enter and exit trades.

You can easily change the ENTRY and EXIT value in order to find the best settings.

This strategy seems to be working well for BTC and ETH on the 4H and 1D.

I didn't play with it too much as I am testing script to trade on the 15 minutes chart with margin. This script can't do this successfully but I hope it can be helpful for what you want to achieve.
Release Notes
Added alert messages. You can now get customized Alerts when you should go Long or Short and when to exit your position.

Here's what you have to do:

Create an alert
Select the script as condition
Select Email to SMS option
write: {{strategy.order.alert_message}} inside the message section
Go in your setting to add your email in the EMAIL to SMS section

Once setup, you will receive an email every time you need to be long and short.

Find Trend Surfers on Google to get free automated signals.
Release Notes
Removed Calc_on_order_fills = true

This code was creating a warning of inaccurate results by Tradingview.

The results are the same without it. The strategy does work.
Release Notes
A simple update to use 4H instead of 15min. To display better results.

The strategy works great on 3H also. Do some testing, I am sure you will get some good results
breakoutbreakoutsignalbreakouttradingTrend Analysistrendfollowing

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


To get all my scripts, analysis, trading tools, tutorials and free crypto trading signals, visit my website at TrendSurfersSignals.com
Also on:

Disclaimer