DOGE Trend-Following Strategy – Balanced Risk & Trend (15m)This strategy is designed to capture trends in DOGE/USDT, using a combination of moving averages and momentum indicators to filter high-quality trades. It is optimized for balanced risk management with a focus on reducing drawdowns through conservative position sizing.
How the Strategy Works
Exponential Moving Averages (EMAs):
A fast EMA (default: 50) tracks short-term price momentum.
A slow EMA (default: 200) represents the broader trend.
Trades are executed when these EMAs cross, signaling shifts in market direction.
ADX (Average Directional Index):
ADX (default length: 14) confirms trend strength.
The strategy only enters trades when ADX is above 25, indicating a strong trend. This helps avoid low-confidence trades during sideways markets.
RSI (Relative Strength Index):
RSI (default: 14) helps avoid trades during overbought or oversold conditions.
Long trades are exited when RSI crosses above 70, while short trades are closed when RSI drops below 30.
Multi-Timeframe Filter:
To further validate trends, 4-hour EMAs are integrated into the strategy, keeping entries in sync with larger market movements.
Performance Highlights
Net Profit: +$2,438.85 USDT (0.24% return over testing period)
Profit Factor: 1.136 – indicating more profit than loss overall.
Closed Trades: 35
Winning Trades: 62.86%
Max Drawdown: 0.58% – representing the largest equity decrease during the test period.
Trade Duration: On average, trades last about 40 bars (10 hours on a 15-minute chart).
Trade Setup
Long Entry:
A long position is taken when:
The 50 EMA crosses above the 200 EMA,
The ADX is above 25, and
RSI is above 30 (indicating healthy momentum).
The trade is exited when RSI hits 70 or price reaches a dynamic profit or stop-loss level.
Short Entry:
A short position is entered when:
The 50 EMA crosses below the 200 EMA,
The ADX confirms trend strength above 25, and
RSI is below 70 (avoiding oversold conditions).
The short position closes if RSI drops to 30 or stop-loss/take-profit criteria are met.
Strategy Parameters
Fast EMA Length: Default set to 50.
Slow EMA Length: Default set to 200.
ADX Length: Default set to 14 with a threshold of 25 for filtering trends.
RSI: Length is 14 with overbought/oversold thresholds at 70 and 30.
Dynamic Take Profit & Stop Loss: Configurable, allowing for risk customization.
Backtesting Conditions
Account Size: $100,000
Position Size: 2% of equity per trade – within the recommended 1-5% risk management framework.
Slippage and Commission: Set to realistic values to improve accuracy.
The backtest ran on DOGE/USDT over a multi-month period, showing reliable performance on the 15-minute timeframe. While past performance is not a guarantee of future success, the results suggest this approach may offer a robust framework for trend-following traders.
Strategy Notes
This updated version prioritizes sustainability by ensuring trades risk no more than 2% of equity. The combination of multiple indicators helps avoid whipsaws and improves long-term profitability. Always test strategies with your own data and market conditions before live trading.
Doge
Big Whale Purchases and SalesBig Whale Purchases and Sales - plots big whale transactions on your chart!
People that hold more than 1% of a crypto currencies circulating supply are considered whales and have a huge influence on price, not just because they can move the market with their huge transactions, but also because other traders often track their wallets and follow their example. Taking a look at whale holdings, one can see why whale worship is so common in crypto: While Bitcoin has a relatively low whale concentration, many of the Top 100 Cryptocurrencies have whales control 60% or more of their circulating supply.
Integrating IntoTheBlock data, this script plots the transactions of these whales and, in strategy mode, copy trades them.
Features:
Strategy Mode: Switches the script between an indicator and a strategy.
Standard Deviations: The number of Standard Deviations that a transaction needs to surpass to be considered worth plotting. Setting this to 0 will show all whale transactions, higher settings will only show the biggest transactions.
Blockchain: The Chain on which Whale activity is tracked.
QQE Student's T-Distribution Bollinger Bands ScreenerThis script scans 20 custom symbols and displays the QQE Students T-Distribution Bollinger Bandwidth as a percentage, the quarter segment percentage, a score that tells you what segment of the band the price is in, and what direction the market is going in. This is useful because it can tell you how volatile a market is and how much reward is in the market. It also tells you what direction the market is going in so you can pick a symbol that has the best looking reward. I really hope that this script complements the group of indicators I have made so far. Here is a list of the other two indicators related to this script.
Please enjoy!
PineGIF - Display Gifs & Images In Tradingview [LuxAlgo]Pinescript is not designed to create or display images, let alone gifs, but it's very fun to try, and that's what this script does. This script allows the user to display three different gifs. In this post, we explain how we managed to display images/gif's using pinescript tables.
1. Image Pre-Processing
Due to pinescript limitations, we can't possibly display images with an excessively high resolution. As such we targeted pixel art as a primary image source. We used a pixel art gif of the magnificent Octocat (the mascot for the source-code hosting service GitHub) for our first try.
We first extract each frame from the gif and resize them to a 50x50 resolution which returns frames made of 2500 pixels. This process was done using python.
Getting Individual Pixels RGBA Values
Python can easily return a matrix containing each pixel's rgba value. For convenience, we converted the rgba values to hex.
We then create a simple code allowing us to return a pinescript array containing the 2500 pixel hex colors. We do this process for each frame.
2. Defining Table Cell Color
In the code, each frame is its own array. We create a new table with dimensions equal to len(frame1)^2 (we assume height = width).
The color of a cell is defined by the color of the image pixel at the same exact location. When a new bar is created, we do this exact process using a different frame which ultimately allows a new frame to be displayed.
3. Playing The GIFs
By default, the script will play the gif of the Tradingview cloud logo raining. In order to play the gif, simply use the replay mode. The replay speed allows the user to determine the frame rate (0.1 for the raining cloud and Nyan cat works best, 0.5 for Octocat).
We included the frames of the Octocat and Nyan cat gifs in the script.
4. Some Other Cool Images
Displaying static images is possible and involves the same process described above.
An original idea of the lizard, implemented by the wizard.