TradingView
Trendoscope
31 de Jul de 2023 13:12

PercentX Trend Follower [Trendoscope] 

Bitcoin / TetherUSBinance

Descrição

"Trendoscope" was born from our trading journey, where we first delved into the world of trend-following methods. Over time, we discovered the captivating allure of pattern analysis and the exciting challenges it presented, drawing us into exploring new horizons. However, our dedication to trend-following methodologies remains steadfast and continues to be an integral part of our core philosophy.

Here we are, introducing another effective trend-following methodology, employing straightforward yet powerful techniques.

🎲 Concepts

Introducing the innovative PercentX Oscillator, a representation of Bollinger PercentB and Keltner Percent K. This powerful tool offers users the flexibility to customize their PercentK oscillator, including options for the type of moving average and length.

The Oscillator Range is derived dynamically, utilizing two lengths - inner and outer. The inner length initiates the calculation of the oscillator's highest and lowest range, while the outer length is used for further calculations, involving either a moving average or the opposite side of the highest/lowest range, to obtain the oscillator ranges.

Next, the Oscillator Boundaries are derived by applying another round of high/low or moving average calculations on the oscillator range values.

Breakouts occur when the close price crosses above the upper boundary or below the lower boundary, signaling potential trading opportunities.

🎲 How to trade a breakout?

To reduce false signals, we employ a simple yet effective approach. Instead of executing market trades, we use stop orders on both sides at a certain distance from the current close price.

In case of an upper side breakout, a long stop order is placed at 1XATR above the close, and a short stop order is placed at 2XATR below the close. Conversely, for a lower side breakout, a short stop order is placed at 1XATR below the close, and a long stop order is placed at 2XATR above the ATR. As a trend following method, our first inclination is to trade on the side of breakout and not to find the reversals. Hence, higher multiplier is used for the direction opposite to the breakout.

The script provides users with the option to specify ATR multipliers for both sides.

Once a trade is initiated, the opposite side of the trade is converted into a stop-loss order. In the event of a breakout, the script will either place new long and short stop orders (if no existing trade is present) or update the stop-loss orders if a trade is currently running.

As a trend-following strategy, this script does not rely on specific targets or target levels. The objective is to run the trade as long as possible to generate profits. The trade is only stopped when the stop-loss is triggered, which is updated with every breakout to secure potential gains and minimize risks.

🎲 Default trade parameters
Script uses 10% equity per trade and up to 4 pyramid orders. Hence, the maximum invested amount at a time is 40% of the equity. Due to this, the comparison between buy and hold does not show a clear picture for the trade.

Feel free to explore and optimize the parameters further for your favorite symbols.

🎲 Visual representation
The blue line represents the PercentX Oscillator, orange and lime colored lines represent oscillator ranges. And red/green lines represent oscillator boundaries. Oscillator spikes upon breakout are highlighted with color fills.
Comentários
KioseffTrading
beast
Trendoscope
@KioseffTrading, Always the first one to notice and appreciate. Thanks man :)
Toannx3
How can we check it repaint or not?
Trendoscope
@Toannx3, This video tutorial explains how to check repainting.
Jetki
Thank you for the work that you do. It's an incredible accomplishment that you've achieved
Trendoscope
@Jetki, thanks very much for kind words and your support. We enjoy sharing what we learn and explore. Glad that is useful for others.
aybotnet
@Trendoscope, my dear friend, I am watching your work with interest, thank you for all of them. Is it possible for you as a market maker to adapt for entry with an order, rather than using a market order with a breakout move (in terms of costs) when applying this strategy? so if the signal is formed and price drops 0.01% Long and vice versa short!! If it doesn't fall, it's a pass signal!! Thus, we provide an advantageous, less costly and static input to the signals without slippage. If you think it's a good idea, I'm asking you for the community.
Trendoscope
@aybotnet, Thats how the signals are generated at present as well. If you look at the code where strategy.entry calls are made, they have stop price in the parameters. That means, the trades are placed as stop orders at a distance of high + atr*multiplier or low - atr*multiplier.
aybotnet
@Trendoscope, I understand that my thinking already exists in strategy. Thank you for your answer.
tecvisor
"import HeWhoMustNotBeNamed/ta/1 as eta"
I LOVE IT :) :) !

Great job ! Thank you for sharing !
Mais