This is a trend following strategy. It does not trade often because it has to wait for a trend to confirm up or down. This has the benefit of not getting faked into a trade or out of a trade. If you want to see more trades, simply use the date picker and increase the time range used for the backtest. Also, please test this strategy on multiple assets before considering using it with real money! A trend following strategy is strong when it can work on many assets without any changes needed.
This strategy goes Long only.
When does it buy? This strategy has 2 buying logics:
(B1) When the trend turns up (color changes from any color to green)
(B2) When the trend continues trending up and the strategy wants to get back into a trade. This is called the "buy-back logic". A "buy-back" is indicated with a green icon on top of the candle.
When does it sell? This strategy has 3 selling logics:
(S1) When the trend turns down (custom trend analysis logic)
(S2) When the trend turns down (when color changes to grey or red)
(S3) When it is in a buy-back trade, it closes when the price re-enters the green range (because buy-backs are riskier so the strategy has to exit earlier to avoid losses)
Date picker This strategy has a date picker so you can choose the range you want to backtest. This way you can backtest different time ranges you like. Or you can use the "Deep Backtesting" feature from TradingView. In that case, set the Start Date to year 1980 (or earlier) and the End Date to year 3000 (or later) to not limit the date at all and let Deep Backtesting do it instead.
When to use this strategy? Best for trending assets (e.g. crypto). Not suited on timeframes lower than 1D. Not suited for high frequency or scalping.
Strategy properties This strategy is set to use 100% of the capital you have set in the strategy properties. In real trading you will of course define a budget for each strategy you use and it's not going to be 100% of your portfolio (you choose).
Don't look at absolute numbers when you check strategy numbers because that depends on your initial capital. Look at the relative values (% and ratios) to determine if the strategy is for you or not.
發行說明
Just changed the name of the strategy so we can better distinguish the two versions of his strategy. This is the "fast" moving one.
發行說明
Added parentheses to the name, to have the same exact name everywhere.
發行說明
Upgraded the script to PineScript v5. Trading logic is unchanged.
發行說明
Improved how the buy-back signal is shown. Same trading logic as before.
發行說明
Updated the chart to show latest performance numbers.