Adaptive VWAP [QuantAlgo]Introducing the Adaptive VWAP by QuantAlgo 📈🧬
Enhance your trading and investing strategies with the Adaptive VWAP , a versatile tool designed to provide dynamic insights into market trends and price behavior. This indicator offers a flexible approach to VWAP calculations by allowing users to adapt it based on lookback periods or fixed timeframes, making it suitable for a wide range of market conditions.
🌟 Key Features:
🛠 Customizable VWAP Settings: Choose between an adaptive VWAP that adjusts based on a rolling lookback period, or switch to a fixed timeframe (e.g., daily, weekly, monthly) for a more structured approach. Adjust the VWAP to suit your trading or investing style.
💫 Dynamic Bands and ATR Filter: Configurable deviation bands with multipliers allow you to visualize price movement around VWAP, while an ATR-based noise filter helps reduce false signals during periods of market fluctuation.
🎨 Trend Visualization: Color-coded trend identification helps you easily spot uptrends and downtrends based on VWAP positioning. The indicator fills the areas between the bands for clearer visual representation of price volatility and trend strength.
🔔 Custom Alerts: Set up alerts for when price crosses above or below the VWAP, signaling potential uptrend or downtrend opportunities. Stay informed without needing to monitor the charts constantly.
✍️ How to Use:
✅ Add the Indicator: Add the Adaptive VWAP to your favourites and apply to your chart. Choose between adaptive or timeframe-based VWAP calculation, adjust the lookback period, and configure the deviation bands to your preferred settings.
👀 Monitor Bands and Trends: Watch for price interaction with the VWAP and its deviation bands. The color-coded signals and band fills help identify potential trend shifts or price extremes.
🔔 Set Alerts: Configure alerts for uptrend and downtrend signals based on price crossing the VWAP, so you’re always informed of significant market movements.
⚙️ How It Works:
The Adaptive VWAP adjusts its calculation based on the user’s chosen configuration, allowing for a flexible approach to market analysis. The adaptive setting uses a rolling lookback period to continuously adjust the VWAP, while the fixed timeframe option anchors VWAP to key timeframes like daily, weekly, or monthly periods. This flexibility enables traders and investors to use the tool in various market environments.
Deviation bands, calculated with customizable multipliers, provide a clear visual of how far the price has moved from the VWAP, helping you gauge potential overbought or oversold conditions. To reduce false signals, an ATR-based filter can be applied, ensuring that only significant price movements trigger trend confirmations.
The tool also includes a fast exponential smoothing function for the VWAP, helping smooth out price fluctuations without sacrificing responsiveness. Trend confirmation is reinforced by the number of bars that price stays above or below the VWAP, ensuring a more consistent trend identification process.
Disclaimer:
The Adaptive VWAP is designed to enhance your market analysis but should not be relied upon as the sole basis for trading or investing decisions. Always combine it with other analytical tools and practices. No statements or signals from this indicator constitute financial advice. Past performance is not indicative of future results.
Universal
Volatility-Adjusted DEMA Supertrend [QuantAlgo]Introducing the Volatility-Adjusted DEMA Supertrend by QuantAlgo 📈💫
Take your trading and investing strategies to the next level with the Volatility-Adjusted DEMA Supertrend , a dynamic tool designed to adapt to market volatility and provide clear, actionable trend signals. This innovative indicator is ideal for both traders and investors looking for a more responsive approach to market trends, helping you capture potential shifts with greater precision.
🌟 Key Features:
🛠 Customizable Trend Settings: Adjust the period for trend calculation and fine-tune the sensitivity to price movements. This flexibility allows you to tailor the Supertrend to your unique trading or investing strategy, whether you're focusing on shorter or longer timeframes.
📊 Volatility-Responsive Multiplier: The Supertrend dynamically adjusts its sensitivity based on real-time market volatility. This could help filter out noise in calmer markets and provide more accurate signals during periods of heightened volatility.
✨ Trend-Based Color-Coding: Visualize bullish and bearish trends with ease. The indicator paints candles and plots trend lines with distinct colors based on the current market direction, offering quick, clear insights into potential opportunities.
🔔 Custom Alerts: Set up alerts for key trend shifts to ensure you're notified of significant market changes. These alerts would allow you to act swiftly, potentially capturing opportunities without needing to constantly monitor the charts.
📈 How to Use:
✅ Add the Indicator: Add the Volatility-Adjusted DEMA Supertrend to your chart. Customize the trend period, volatility settings, and price source to match your trading or investing style. This ensures the indicator aligns with your market strategy.
👀 Monitor Trend Shifts: Watch the color-coded trend lines and candles as they dynamically shift based on real-time market conditions. These visual cues help you spot potential trend reversals and confirm your entries and exits with greater confidence.
🔔 Set Alerts: Configure alerts for key trend shifts, allowing you to stay informed of potential market reversals or continuation patterns, even when you're not actively watching the market.
⚙️ How It Works:
The Volatility-Adjusted DEMA Supertrend is designed to adapt to changes in market conditions, making it highly responsive to price volatility. The indicator calculates a trend line based on price and volatility, dynamically adjusting it to reflect recent market behavior. When the market experiences higher volatility, the trend line becomes more flexible, potentially allowing for greater sensitivity to rapid price movements. Conversely, during periods of low volatility, the indicator tightens its range, helping to reduce noise and avoid false signals.
The indicator includes a volatility-responsive multiplier, which further enhances its adaptability to market conditions. This means the trend direction would always be based on the latest market data, potentially helping you stay ahead of shifts or continuation trends. The Supertrend's visual color-coding simplifies the process of identifying bullish or bearish trends, while customizable alerts ensure you can stay on top of significant changes in market direction.
This tool is versatile and could be applied across various markets and timeframes, making it a valuable addition for both traders and investors. Whether you’re trading in fast-moving markets or focusing on longer-term investments, the Volatility-Adjusted DEMA Supertrend could help you remain aligned with the current market environment.
Disclaimer:
This indicator is designed to enhance your analysis by providing trend information, but it should not be used as the sole basis for making trading or investing decisions. Always combine it with other forms of analysis and risk management practices. No statements or claims aim to be financial advice, and no signals from us or our indicators should be interpreted as such. Past performance is not indicative of future results.
Backtest any Indicator v5Happy Trade,
here you get the opportunity to backtest any of your indicators like a strategy without converting them into a strategy. You can choose to go long or go short and detailed time filters. Further more you can set the take profit and stop loss, initial capital, quantity per trade and set the exchange fees. You get an overall result table and even a detailed, scroll-able table with all trades. In the Image 1 you see the provided info tables about all Trades and the Result Summary. Further more every trade is marked by a background color, Labels and Levels. An opening Label with the trade direction and trade number. A closing Label again with the trade number, the trades profit in % and the total amount of $ after all past trades. A green line for the take profit level and a red line for the stop loss.
Image 1
Example
For this description we choose the Stochastic RSI indicator from TradingView as it is. In Image 2 is shown the performance of it with decent settings.
Timeframe=45, BTCUSD, 2023-08-01 - 2023-10-20
Stoch RSI: k=30, d=40, RSI-length=140, stoch-length=140
Backtest any Indicator: input signal=Stoch RSI, goLong, take profit=9.1%, stop loss=2.5%, start capital=1000$, qty=5%, fee=0.1%, no Session Filter
Image 2
Usage
1) You need to know the name of the boolean (or integer) variable of your indicator which hold the buy condition. Lets say that this boolean variable is called BUY. If this BUY variable is not plotted on the chart you simply add the following code line at the end of your pine script.
For boolean (true/false) BUY variables use this:
plot(BUY ? 1:0,'Your buy condition hold in that variable BUY',display = display.data_window)
And in case your script's BUY variable is an integer or float then use instate the following code line:
plot(BUY ,'Your buy condition hold in that variable BUY',display = display.data_window)
2) Probably the name of this BUY variable in your indicator is not BUY. Simply replace in the code line above the BUY with the name of your script's trade condition variable.
3) Save your changed Indicator script.
4) Then add this 'Backtest any Indicator' script to the chart ...
5) and go to the settings of it. Choose under "Settings -> Buy Signal" your Indicator. So in the example above choose .
The form is usually: ' : BUY'. Then you see something like Image 2
6) Decide which trade direction the BUY signal should trigger. A go Long or a go Short by set the hook or not.
Now you have a backtest of your Indicator without converting it into a strategy. You may change the setting of your Indicator to the best results and setup the following strategy settings like Time- and Session Filter, Stop Loss, Take Profit etc. More of it below in the section Settings Menu.
Appereance
In the Image 2 you see on the right side the List of Trades . To scroll down you go into the settings again and decrease the scroll value. So you can see all trades that have happened before. In case there is an open trade you will find it at the last position of the list.
Every Long trade is green back grounded while Short trades are red.
Every trade begins with a label that show goLong or goShort and its number. And ends with another label again with its number, Profit in % and the resulting total amount of cash.
If activated you further see the Take Profit as a green line and the Stop Loss as a orange line. In the settings you can set their percentage above or below the entry price.
You also see the Result Summary below. Here you find the usual stats of a strategy of all closed trades. The profit after total amount of fees , amount of trades, Profit Factor and the total amount of fees .
Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a question mark on their right side. Move over it with the cursor to read specific explanation.
Input Signal of your Indicator: Under Buy you set the trade signal of your Indicator. And under Target you set the value when a trade should happen. In the Example with the Stochastic RSI above we used 20. Below you can set the trade direction, let it be go short when hooked or go long when unhooked.
Trade Settings & List of Trades: Take Profit set the target price of any trade. Stop Loss set the price to step out when a trade goes the wrong direction. Check mark the List of Trades to see any single trade with their stats. In case that there are more trades as fits in the list you can scroll down the list by decrease the value Scroll .
Time Filter: You can set a Start Time or deactivate it by leave it unhooked. The same with End Time .
Session Filter: here you can choose to activate it on weekly base. Which days of the week should be trading and those without. And also on daily base from which time on and until trade are possible. Outside of all times and sessions there will be no new trades if activated.
Invest Settings: here you can choose the amount of cash to start with. The Quantity percentage define for every trade how much of the cash should be invested and the Fee percentage which have to be payed every trade. Open position and closing position.
Other Announcements
This Backtest script don't use the strategy functions of TradingView. It is programmed as an indicator. All trades get executed at candle closing. This script use the functionality "Indicator-on-Indicator" from TradingView.
Conclusion
So now it is your turn, take your promising indicators and connect it to that Backtest script. With it you get a fast impression of how successful your indicator will trade. You don't have to relay on coders who maybe add cheating code lines. Further more you can check with the Time Filter under which market condition you indicator perform the best or not so well. Also with the Session Filter you can sort out repeating good market conditions for your indicator. Even you can check with the GoShort XOR GoLong check mark the trade signals of you indicator in opposite trade direction with one click. And compare your indicators under the same conditions and get the results just after 2 clicks. Thanks to the in-build fee setting you get an impression how much a 0.1% fee cost you in total.
Cheers
Chebyshevs BandsThis script calculates upper and lower bands using Chebyshev's inequality formula.
The main pros.: the band doesn't depend on particular distribution. It fits to any type of random variables. Also it allows to calculate bands for instruments with extremely high volatility.
Cons.: formula provides a rough estimation in some special cases like lognormal distribution.
Universal Oscillator by John EhlersOriginal idea from Lazybear's script.
I changed value
degree to radian in TradingView
And
I added values ( hline : 1 and -1 )
It is important value from John Ehlers's article.
If I have mistake you comment me.
BFXLS Volume Substitute Overlay for BitMEX[NB]Volume substitute for those who prefer to use the XBT ticker. Renko on a small time scale is a good option, but lacks wicks.
Can be used as a non-overlay indicator by detaching. Differences are more visible on large time scales, or on Renko.
Possible future changes:
Make the columns more volatile
Change column color based on previous column's value
Original credits:
pigloo for the original script, and Ivturner for his edit.
Universal Time Frame v1.1Now it should work better but is only for intraday charts. There are some other glitches though; I'll try to fix them as soon as possible.