TTP QFL OptimiserThis tool is designed to help finding the best take profit and stop loss levels when trading with QFL bases (Quick Fingers Luc).
You can use it to see the average drawdown among all historic bases broken for an asset and then find the drawdowns that are more frequent using the percentile parameters provided.
For example, by knowing that 98% of the bases got broken with a drawdown of up to 5% can become extremely useful for deciding where to place your take profit or stop loss levels.
It supports QFL 1H, 2H and 4H but make sure to set the chart timeframe to a lower timeframe than QFL to obtain valid results.
Two percentiles are provided to be able to evaluate potential TP and SL at the same time.
Steps:
- Load an asset in the 15min TF
- Select the QFL version: 1H more deals / lower quality vs 4H less deals/ better quality
- Find a percentile that triggers enough deals (example: 70) and then another percentile that doesn't get hit too much (example: 98)
- Confirm the values p1 and p2 provided in the table and the white and grey lines for the results of which drawdown percentages correspond to such selection of percentiles
Once having p1 and p2 use your backtesting and forward testing tools to confirm and adjust accordingly.
Qfl
QFL Screener [ ZCrypto ]The QFL Screener is a robust tool inspired by Quickfingersluc's trading strategy.
Known as the Base Strategy or Mean Reversals, QFL focuses on identifying moments of panic selling and buying , presenting opportunities to enter trades at deeply discounted prices.
The QFL Screener is designed to enhance your trading efficiency by simultaneously scanning 40 symbols.
You have the flexibility to enable or disable specific symbols from the screening process, allowing you to tailor the screener to your preferred markets and instruments.
The Screener has a built-in alerts system . As soon as the QFL conditions align for any of the scanned symbols, you'll receive instant notifications, empowering you to take prompt action and seize potential trading opportunities.
In addition, I've incorporated a visual element to complement the alerts. Once the conditions are true, a green arrow shape will appear directly on the chart, providing a clear and intuitive signal of the QFL opportunity.
To provide a clear overview, our screener presents a comprehensive table that highlights when the QFL condition becomes true for each symbol. This table acts as a visual guide, enabling you to monitor the status of multiple symbols at a glance, streamlining your trading decision-making process.
With the QFL Screener, you gain an edge in identifying profitable trade setups based on Quickfingersluc's renowned approach. Experience the convenience of simultaneous screening, real-time alerts, and an intuitive table display, all in one user-friendly tool.
QFL Drop %This script helps Quick Fingers Luc strategy traders
The script works as follows
When a new low is formed lower than the previous one, the script calculates the percentage difference between them and stores it in an array
and calculates the average of the stored percentages, the maximum percentage, the minimum percentage
and displays them on the chart, this helps the trader to determine where the drop could go after the bottom is broken.
ZCrypto 3commas - All in oneIntroducing the "3commas All Built-in Indicators in One Script" for TradingView!
Tired of wondering which 3commas-built-in indicators to use and how to combine them? This script is here to make your life easier by answering this question for you.
Instead of spending hours paper trading on 3commas and hoping for the best combined indicator signals, save time and find more accurate results on TradingView.
This indicator combines any of the 3commas-built-in indicators into one signal, allowing you to verify which indicators work best together.
You can combine two or more indicators, up to a maximum of 17, and backtest your combined signal with the Zendog integration - it's simple and easy!
The script includes the following indicators:
• TV Technical Rating x 3
• RSI x 3
• ULT x 1
• BB x 3
• MACD x 2
• MFI x 1
• CCI x 1
• PSAR x 1
• BTC, DXY Filter x 1
• QFL
• Zendog integration
The indicator fires two types of signals: entry signals and exit signals.
To fire entry signals, the script uses the following conditions:
• TV Technical Rating: If the rating is "Buy" or "Strong Buy”, then the signal is fired.
• RSI: If the RSI value is below the RSI threshold, then the signal is fired.
• ULT: If the Ultimate Oscillator value is below the ULT threshold, then the signal is fired.
• BB: If the candle is closed below the channel (lower band), then the signal is fired.
• MACD: If the value of the MACD line is < 0 and the MACD line crosses the Signal line from bottom to top, then the signal is fired.
• MFI: If the candle is closed and its value crosses the MFI threshold from bottom to top, then the signal is fired.
• CCI: If the CCI Value crosses the CCI threshold, then the signal is fired.
• PSAR: If the current price is above the Parabolic SAR, then the signal is fired.
• QFL: If the QFL base (support level) is cracked and the price is <= the crack % of drop, then the signal is fired.
• BTC, DXY Filter: If the current price is higher than the SMA length of Bitcoin (BTC) and the US Dollar Index (DXY) is below it, then the signal is fired.
To fire exit signals, the script uses the following conditions:
• TV Technical Rating: If the rating is "Sell" or "Strong Sell”, then the signal is fired.
• RSI: If the RSI value is above the RSI threshold, then the signal is fired.
• QFL SELL: If the QFL peak (resistance level) is cracked and the price is >= the crack % of pump, then the signal is fired.
to use it with Zendog Backtester here is how you could set it up
Say goodbye to the guessing game and save time with the "3commas All Built-in Indicators in One Script" on TradingView.
Average True Range PercentWhen writing the Quickfingers Luc base scanner (Marvin) script, I wanted a measure of volatility that would be comparable between charts. The traditional Average True Range (ATR) indicator calculates a discrete number providing the average true range of that chart for a specified number of periods. The ATR is not comparable across different price charts.
Average True Range Percent (ATRP) measures the true range for the period, converts it to a percentage using the average of the period's range ((high + low) / 2) and then smooths the percentage. The ATRP provides a measure of volatility that is comparable between charts showing their relative volatility.
Enjoy.
Quickfingers Luc base scanner - version 2This is my second implementation of a Pine Script Quickfingers Luc (QFL) base scanner that I have published on Trading View. QFL base scanners seek to provide buy signals according to the QFL trading strategy. To profitably trade using this script you should be familiar with the QFL trading strategy, scaling in and out of positions, and money risk management.
Background
All the QFL base identification Pine Scripts that I have inspected to date use a simple candlestick pattern of two lower lows followed by two higher lows to identify a base. Some scripts may combine this with a volume indicator as well. In practice, I found the results of this approach to be somewhat unreliable. The candlestick pattern may identify some significant bases, may identify minor bases (that should not be traded), but at the same time miss other significant bases entirely!
My first QFL base scanner sought to use Pine Script’s built in ta.lowest and ta.highest functions to identify bases and peaks. This approach depended on the time period selected to find the lowest lows and highest highs. This approach can be problematic because significant bases may be formed outside the nominated time period, leading to the identification of minor bases within the time period. I have left the first version of my QFL base scanning script in the Trading View indicators because it uses a different approach to this script that other people may still find useful.
My second version of the QFL base scanner does not use the Pine Script ta.lowest and ta.highest functions, and therefore does not rely on nominating a time period to look back through data.
User inputs
This script steps through the price data to find the following patterns that are used to confirm bases and peaks.
Base – bounce of x% above previous base confirms that base
Peak – fall of y% below previous peak confirms that peak
Buy signal – fall of z% below the base signals a buy signal.
x%, y% and z% are user configurable through the script settings. Small percentages will provide more, but riskier, buy signals; larger percentages will provide fewer, but safer, buy signals.
The script identifies QFL bases and buy signals and marks them on the price chart. These are able to be turned on and off in the script settings. The settings also allow the user to turn on plots for peaks, lowest lows and highest highs. These are not useful for applying the QFL trading strategy, but are calculations used in finding bases and can be useful for the user to understand what the script is doing in the background.
Troubleshooting
If looking at the past script results, you may think that the script is perfectly timing entry points at the bottom of market dips. This is NOT the case. The script is actually showing buy signals when the price falls z% below the PREVIOUS base. The current base is only retrospectively marked some periods later once the reversal is confirmed – a solid line marks a confirmed base in real time; a dotted line retrospectively repaints the line to the actual base. New bases are not tradeable using this script, but a percentage fall from the previous base is – this is the QFL trading strategy.
Pine Script may flag that this script has a repainting issue. Pine Script defines repainting as, “script behavior causing historical vs realtime calculations or plots to behave differently.” In the case of this script, bases are confirmed once the price has bounced x% off the low. The script then repaints a dotted line from the base that has been identified in real time (with a solid line) back to the point in the price data where the base actually occurs. The dotted line only aids in visual identification of the base, and does not impact on the real time identification of bases. A similar repainting issue occurs for identifying peaks. I have identified the lines in the script that cause this repainting. These lines can be commented out without affecting the buy signals generated by the script, but you will also lose the visual pinpointing of historical bases and peaks.
The user may find price charts where they think that the script has not correctly identified a base or peak. Usually, careful measurement will reveal that the price chart has not confirmed a base or peak by moving x% or y% from the previous base or peak respectively.
And before you ask, yes, Trading View alerts work with this script.
Enjoy.
3Commas dollar cost averaging (DCA) QFL IndicatorAs investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex indicator based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The indicator script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry alerts. During price action development an asset value can go lower and in this way the script will perform safety entries alerts at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action alert.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements. These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The indicator supports traditional and cryptocurrency spot, futures , options and marginal trading exchanges. It works accurately with BTC , USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The indicator can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
The difference between core script and this interpretation is that this strategy is specially designed for 3Commas bots
How to use?
1. Apply indicator to a trading pair your are interested in using 1H timeframe chart
2. Configure the indicator: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView custom alert using the indicator settings to trigger on a condition you are interested in
4. The indicator will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
Dollar cost averaging (DCA) QFL IndicatorAs investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex indicator based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The indicator script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry alerts. During price action development an asset value can go lower and in this way the script will perform safety entries alerts at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action alert.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements. These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The indicator supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The indicator can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
Advantages of this indicator:
The indicator has custom alert settings for each strategy action
The indicator can be used with 3Commas, Cryptohopper, Alertatron or Zignaly bots
The indicator is sustainable to market slumps and can be used for long-term trading
The indicator provides a large number of entries which is good for diversification
Can be applied to any market and quote currency
Easy to configure user interface settings
How to use?
1. Apply indicator to a trading pair your are interested in using 1H timeframe chart
2. Configure the indicator: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView custom alert using the indicator settings to trigger on a condition you are interested in
4. The indicator will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
3C Sim SignalThis indicator offers the same deal start conditions available on Backtest script but now as an external signal so you can not only backtest but also set up alerts.
You can use the backtest script to backtest this indicator as an external signal and then once happy with the backtest results send directly tradingview alerts to your own bots on any exchange.
It supports most of the deal start conditions currently available for DCA bots on binance.com for example:
- TV technical ratings: buy, sell, strong buy, strong sell.
- RSI
- MFI
- CCI
- Ultimate Oscilator
- QFL
- min volume filter
Once added to the chart it will plot one when the deal start condition is true and zero when is not.
The conditions can be used in long or short strategy mode.
The biggest advantage compared to using it separately from the DSC already available in the backtest script is that because this is a separated study it will perform faster than the backtest and it resolves repainting issues. This two aspects make these indicator better suited for real time trading while still being able to connect to the backtest as an external indicator therefore still backtestable.
Now you can backtest symbols on any exchange and once your strategy is ready you then can send alerts directly to your bots.
QFL base scannerThis script is a simple implementation of a QFL (Quickfingers Luc) base scanner.
This QFL base scanner uses a different approach to some other QFL base scanners that are on TradingView. Other TradingView scripts look for a candlestick pattern of two lower lows followed by two higher lows combined with an increase in volume. This can generate some unexpected results where some minor dips can meet the pattern and are marked as a base, but some major dips do not and are ignored.
This QFL base scanner instead looks for the lowest low in a given period and marks it as a base. The longer the period of the lowest low, the more significant the bases will be. Buys are marked when the price has bounced x% above the base and then fallen y% below the base. This approach seems to give more predictable (and tradable) results.
If looking at the past script results, you may think that the script is perfectly timing entry points at the bottom of market dips. This is NOT the case. The script is actually showing buy signals when the price falls y% below the PREVIOUS base. The current base is only retrospectively marked some periods later once the reversal is confirmed. New bases are not tradeable using this script, but a percentage fall from the previous base is.
Enjoy.
Quickfingers Lucs Base Breaking Indicator v2.5 - 3Commas EditionIntroduction
The indicator attempts to implement a popular price action strategy by Luc Thomas (a.k.a. Quickfingers Luc) typically referred to as a QFL base-breaking strategy specifically for the 3Commas platform. The Input settings have been redesigned to match the same inputs as the 3Commas My Bot Settings page. Only the "Deal Start Condition" section will echo the required QFL-related settings found in the original Quickfingers Luc's Base Breaking Indicator v2.5 to successfully implement the strategy.
The strategy revolves around price action movements that reveal “bases”, which are price levels of support that have a significant, rapid price surges called “bounces”. Once a base is revealed, the base price level is used as reference to implement multiple entries below the base using a layering technique of dollar-cost averaging to place multiple limit orders at various price levels below the base price. As price action breaks below the base price, the limit orders will be filled, and the take profit, breakeven and stop loss prices will be recalculated.
How is it original and useful?
This indicator is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data. The study version implements the "Start Deal" and "Close Deal" alerts for you to integrate with 3Comma's "Trading View Custom Signal" start condition. Both script versions will provide the same configuration abilities. The following list is a brief description of its usefulness:
The ability to define the QFL base confirmation settings, including volume analysis.
The ability to define your preferred layering strategy of either dollar-cost averaging (DCA) or grid-like layers along with precise layer placement.
The ability to define your trading parameters like take profit and stop loss offsets, exchange commission rates, trading start time, and position size multiplication for each layer.
The ability to define flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of base prices for trading.
The ability to set the visibility & color theme of the detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
How does it compare to other scripts in the Public Library?
The indicator offers a very detailed, comprehensive settings to implement the QFL base-breaking strategy ion 3Commas. The strategy version leverages the full features of the TradingView backtester to provide informative, detailed performance measurements surrounding this unique trading strategy. The study version will implement the latest alert framework called "Any Alert() Function" where you can create a single alert to handle multiple events, which include:
Deal Start
Deal Close
What does it do and how does it do it?
The strategy can be applied to any chart at any time frame, but the minimum should be no lower than 10 minutes. When applied to the chart for the first time, the default settings will work to render base price levels in orange and 8 DCA layers in thin blue lines. As you scroll through the chart's history you should see price action crossing the DCA layers, denoted with blue triangles, and a green take-profit line will render with green triangle denoting the crossing. Lastly, when a deal session begins upon the crossing of the first layer, the indicator will continue to identify base price levels, but the color of the price lines will be gray. When the trade session concludes upon the crossing of the take profit line, the indicator will switch the most recent base price line from gray to orange to make it active and eligible for trading.
As price action develops, the indicator will use the "Base Confirmation Settings" to look back by counting the number of bars to the left and right of a pivot low point, measure the price drops and bounces, and volume amounts to validate that they are within the specified values. If so, the indicator will draw an orange triangle beneath the candle bar to denote it as the pivot low point and begin rendering the orange line as the base price. The DCA layers will be calculated and offset relative to the base price using thin blue lines.
Optionally, the breakeven price line will be drawn to help visualize the true breakeven price which takes into consideration the exchange fees being applied. Base line, take profit, stop loss and DCA layer crossings will be denoted with colorful shapes to help visually recognize the events on the chart.
The volume is validated only at the pivot low candle. It will measure the volume against the moving average to determine base confirmation. A volume factor of 1 will mean that the volume must be at least the same value as the moving average value. A volume factor of 2 means it must be twice the moving average value.
Lastly, a table of statistics is positioned to the upper-right corner of the chart that summarize all the events that have taken place since the indicator began simulating deal sessions from the chart's history.
Strategy Results
The default settings are designed to define a "weak" QFL base to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.4881% of the equity for the Base Order Size, 4.7097% of equity for the first Safety Order Size. The Maximum Safety Trade Count is 7 with a Safety Order Volume Scale of 1.35, and a take profit of 5% with no stop loss. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the QFL trading strategy and obtain better desirable results. You do so by using the statistics table and observe the Mean Price Drop and Bounce values to learn what the indicator is detecting when it measures from the pivot low points. Using this information, you can adjust the Base Confirmation Settings accordingly, along with any volume specifications you require, to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
Quickfingers Luc's Base Breaking Indicator v2.5Introduction
The indicator attempts to implement a popular price action strategy by Luc Thomas (a.k.a. Quickfingers Luc) typically referred to as a QFL base-breaking strategy. The strategy revolves around price action movements that reveal “bases”, which are price levels of support that have a significant, rapid price surges called “bounces”. Once a base is revealed, the base price level is used as reference to implement multiple entries below the base using a layering technique of dollar-cost averaging to place multiple limit orders at various price levels below the base price. As price action breaks below the base price, the limit orders will be filled, and the take profit, breakeven and stop loss prices will be recalculated.
How is it original and useful?
This indicator is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data. The study version implements numerous custom alerts for you to build TradingView notifications around specific price action events and stay informed with market activity in real-time. Both script versions will provide the same configuration abilities where you can define:
Base confirmation settings, including volume analysis.
Your preferred layering strategy of either Dollar-cost averaging (DCA) or grid-like layers along with precise layer placement.
Your trading parameters like take profit and stop loss offsets, exchange commission rates, trading start time, and position size multiplication for each layer.
Flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of base prices for trading.
The visibility of detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
How does it compare to other scripts in the Public Library?
The indicator offers a very detailed, comprehensive settings to address all types of markets found on TradingView where you can implement the QFL base-breaking strategy. The strategy version can be considered the first of its kind on TradingView to leverage the backtester to provide informative, detailed performance measurements surrounding this unique trading strategy. The study version will contain numerous custom alerts to aid in your notification preferences and stay informed on the indicator's activities:
Base Created
Base Cracked
Base Respected
Any Layer Cracked
Layer 1 Cracked
Layer 2 Cracked
Layer 3 Cracked
Layer 4 Cracked
Layer 5 Cracked
Layer 6 Cracked
Layer 7 Cracked
Layer 8 Cracked
Layer 9 Cracked
Layer 1 Respected
Layer 2 Respected
Layer 3 Respected
Layer 4 Respected
Layer 5 Respected
Layer 6 Respected
Layer 7 Respected
Layer 8 Respected
Take Profit Crossed
Stop Loss Crossed
What does it do and how does it do it?
It is recommended that you start with a chart that is on an hourly timeframe with the "Scale Price Chart Only" chart setting enabled. When applied to the chart for the first time, the default settings will work to render base price levels in orange and 8 DCA layers in blue using a Fibonacci-like sequence for the deviation offset relative to the base price. As you scroll through the chart's history you should see price action crossing the DCA layers, denoted with blue triangles, and a green take-profit line will render with green triangle denoting the crossing. Lastly, when a trade session begins upon the crossing of the first layer, the indicator will continue to identify base price levels, but the color of the price lines will be gray. When the trade session concludes upon the crossing of the take profit line, the indicator will switch the most recent base price line from gray to orange to make it active and eligible for trading.
As price action develops, the indicator will use the "Base Confirmation Settings" to look back by counting the number of bars to the left and right of a pivot low point, measure the price drops and bounces, and volume amounts to validate that they are within the specified values. If so, the indicator will draw an orange triangle beneath the candle bar to denote it as the pivot low point and begin rendering the orange line as the base price. The DCA layers will be calculated and offset relative to the base price using thin blue lines.
Optionally, the breakeven price line will be drawn to help visualize the true breakeven price which takes into consideration the exchange fees being applied. Base line, take profit, stop loss and DCA layer crossings will be denoted with colorful shapes to help visually recognize the events on the chart.
The volume is validated only at the pivot low candle. It will measure the volume against the moving average to determine base confirmation. A volume factor of 1 will mean that the volume must be at least the same value as the moving average value. A volume factor of 2 means it must be twice the moving average value.
Lastly, the very last bar will render a table of statistics that summarize all the events that have taken place since the indicator began simulating trading sessions from the chart's history.
Strategy Results
The default settings are designed to define a "weak" QFL base to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.4887% of the equity with a Position Size Multiplier of 1.35, using 8 total DCA layers, and a take profit of 5% with no stop loss. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the QFL trading strategy and obtain better desirable results. You do so by using the statistics table and observe the Mean Price Drop and Bounce values to learn what the indicator is detecting when it measures from the pivot low points. Using this information, you can adjust the Base Confirmation Settings accordingly, along with any volume specifications you require, to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
QaSH DCA AlgorithmQaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.
How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. More entry conditions will be added as time goes on, although complex entry conditions are not necessary for the strategy to work. All the meat of the DCA strategy is in the layer placement, order volume , and TP %.
How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) Settings optimization. You can take advantage of the replay feature and see how trades would have played out, and how much PnL you would have made (strategy version is coming soon)
3) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
4) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
5) I can offer a lifetime subscription to the indicator upon request.
What kind of market is it best used on?
QaSH DCA Algorithm is best used on cryptocurrencies and stocks, and it is best used on assets that are volatile. That means large swings up and down. Also I recommend running this on many uncorrelated assets at the same time.
What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices.
What should I do if price goes below my last layer?
The best solution is to keep a cash reserve on the side at all times. If price looks like it has reached a low point below your lowest layer, then manually buy more to average down further. This action will help it along and get you in the green sooner.
Disclaimer: In order to get a large position in an asset, you need to have most of your layers fill. That means you have to be comfortable with buying more as the price goes down, patiently waiting for the bounce that occurs afterward. This is the working principle of Dollar Cost Averaging, and it's a proven method for most markets.
QFL bull bypassThis bypass indicator triggers plots 1 when the price is above the QFL base.
This can be used as a "bypass" by a consumer indicator that can skip trades when the bypass is triggering.
You can use it for long and short strategies, to prevent using buy or sell signals in areas were the price is either overextended.
QFL works better in 1, 2 or 4 hours timeframes.
QFL single TF with alertsBacktesting compatible QFL pine script w/alerts
This version of QFL was made based on this one:
From author:
www.tradingview.com
I made the following additions according to my requirements:
- I need to use pine script 4
- I needed to avoid repainting issues so I'm not calling directly security, I'm using the wrapper function.
- There might be still repainting issues when you use "max base age" which uses the function "barssince" so be careful, you can disable it by setting its value to zero.
- Alerts so I can use it for automated trading and bots
- In order to make this signal compatible with the backtest script there's an option provided in the settings. If you enable this option this indicator will plot 1 whenever there's a BUY signal. This will allow the backtest to pick the "QFL Buy" from external indicator so it can perform the backtest.
I recommend some of these settings to start playing with the chart in 15 min / QFL in 1, 2 or 4 hours.
The higher the TF the more conservative.
QFL with 3.5% is pretty popular but you can try higher QFL percentage settings for a more conservative approach.
QFL 13 BasesThis version of QFL is based on a script from ralphhorkup:
Author:
www.tradingview.com
I made a few adjustments:
1) no issues with repainting caused by calling security function.
2) migrated to pine script 4
Everything else is the same.
I'll be adding alerts soon.
% volatility - JDA small script to quickly scan through coins based on % volatility, eg. for AB-trading.
Both lookback length of the number of bars and the minimum volatility threshold can be changed.
JD.