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.
Quickfingersluc
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.
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.