Crypto TrendThis indicator is based off of the Trend Follower system put together by jiehonglim:
This is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method. I’m primarily modifying this system for Crypto trading (mostly leveraged Crypto Futures). Suggestions/requests welcome.
New Features:
Added position inputs that will generate position labels
For leverage trading, position inputs will calculate your percentage-based stop loss given your entry, leverage and liquidation price
Added optional horizontal line plots for entry, stop loss, 50% take profit and 100% profit levels.
Added non-plotted Didi calculations for alert condition triggers
Added long and short alerts
These alerts will trigger for any of the 3 following conditions:
Baseline cross with volume confirmation
Didi two line cross with volume confirmation
Didi continuation with volume confirmation
1. Baseline
The main baseline filter is an indicator called Modular Filter created by Alex Grover
- www.tradingview.com
- Alex Grover - Modular Filter
-------
That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
Entry signal indicated with arrows.
2. Volume / Volatility , I will called it Trend Strength
The next indicator is commonly known as ASH, Absolute Strength Histogram.
This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
- Alex Grover Absolute Strength
-------
My modification and other info here
- Absolute Strength Histogram v2
-------
I simplified the display of the trend strength by plotting squares at the bottom of the chart.
- Lighted Squares shows strength
- Dimmed Squares shows weakness
3. Second Confirmation / Exits / Trailing Stop
Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
- QQE Trailing Line for Trailing Stop
-------
Three usages of this amazing indicator, serving as :
- Second trend confirmation
- Exit signal when price crosses the trailing line
- Trailing stop when you scaled out the second trade
This indicator is plotted with crosses.
4. Position Calculator
For non-leveraged trades, set leverage to 1 and liquidation to 0
Fill out the rest of the position field to get labels that will tell you:
Your stop loss given your acceptable percentage of loss for your risk. So, for example if your actual investment is $200 and you’re trading on 20X leverage, you’d like to know what price would have to drop to for you to lose 15% of your $200 risk. This is what the position calculator is doing for you.
Your 50% take profit point
Your 100% take profit point
Check the “Show Position Lines” to plot horizontal lines for entry, stop loss, 50% TP and 100%TP
Alerts
You just get a Long Alert or Short Alert option. This was for two reasons, the first and most important was to reduce the number of alerts needed for this system to get maximum coverage. The second was just to keep things simple. Get an alert for your desired direction for any interesting signal and then check the chart manually to determine if a viable entry has presented itself. The three alert conditions are:
Main trend indicator, baseline cross with volume confirmation
Didi two line cross entry with volume confirmation
Didi continuation signal with volume confirmation
Additional plots and information
Bar Color
- Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
- When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
-------
ATR Filter
- White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
- The default allowance is 1 ATR.
-------
The previous and current ATR value
- Label on the right side of the chart showing the previous and current value of ATR
Nononsensefx
NNFX Baseline ToolNNFX All-in-One Baseline display / test tool.
This is usefull (hopefully) for the NNFX way of trading only. It's not intended to be used as a standalone tool.
Basically, this script displays and tests many types of Moving Averages as baselines.
It displays baseline signals, based on the NNFX ATR-related rule for baseline entries.
It can be used as a backtest tool, or plugged into the whole nnfx algo.
If signal display option is enabled, signals are displayed on chart : green for long, red for short, orange for crossovers beyond the ATR channel :
Many baselines available : SMA , EMA , WMA , VWMA , ALMA , AMA, SMMA , DEMA , FRAMA , HULL, KAMA , KIJUN, JURIK, LAGUERRE, MCGINLEY , TMA1, TMA2, VIDYA , MODULAR FILTER, VAMA , ZLEMA , T3, LSMA, etc.
Additional options :
- multiplying the ATR channel (and subsequent rule) by a factor (default = 1)
- plot the ATR channel (def = yes)
- fill it (def = yes)
- display signals (def = yes)
- option for add color to the baseline, for long/short territory (2 different options : baseline is colored, background is colored)
- darkmode / lightmode color option. (def = dark)
We also display panels, with general information and some test results. Tests are done within the test period.
I tried to test all the different MAs included in the script but some bugs might still be present, so use it at ur own risk.
If you'd like a new MA option added, please let me know in comments.
I included a "bad" signal detection, it can help for tweaking the settings. Signals are defined as "bad" when they are immediately followed by another signal.
When there is 2 or more bad signals next to another, you spotted a chopiness zone (a chopiness zone is defined as a zone where BL get eaten alive).
Example :
to do :
- plug it with the c1/c2 backtest tool (it's the whole point)
- add alerts,
- add more ma types
- stop to use the operator, it's not convenient at all
- add wr% calculation as a standalone feature (with TP / SL)
- add a way to measure chopiness in the test (dont know how yet)
- detect & display chopiness zones
I asked other users when I used their ideas (for some particular types of MAs). They all agreed.
Enhanced Time Segmented Volume (Multi MA)**THIS VERSION ALLOWS THE USER TO SELECT WHICH MOVING AVERAGE THEY WOULD LIKE TO UTILIZE FOR THE SIGNAL LINE**
Chart shows two different options of many. Top option is the default settings and bottom option is a different moving average with no other changes.
Time Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume. Essentialy it is designed to measure the amount of money flowing in and out of an instrument.
Time Segmented Volume was originally ported to TradingView by user @liw0 and later corrected by user @vitelot. I never quite understood how to read Time Segmented Volume until I ran across a version by user @storma where they indicated when price would be long or short, but that code also utilized the incorrect calculation from user @liw0.
In an effort to make Time Segmented Volume more accessible and easier to read, I have re-coded it here. The calculations are based on the code from @vitelot and I have added direction indicators below the chart.
If the histogram (TSV) is greater than zero and greater than the moving average, price should be moving long and there will be a green box below the chart.
If TSV falls below the moving average while still being greater than zero, the trend may be exhausting and has been coded to read Price Action Long - FAILURE with a black x below the chart.
If the histogram (TSV) is less than zero and less than the moving average, price should be moving short and there will be a red box below the chart.
If TSV rises above the moving average while still being less than zero, the trend may be exhausting and has been coded to read Price Action Short - FAILURE with a black x below the chart.
At times, the moving average may be above zero while TSV is below zero or vice versa. In these situations the chart will indicate long or short based on whether or not TSV is greater or less than zero. It is possible a new trend may be forming as the moving average obviously lags, but also possible price is consolidating with little volume and causing TSV to oscillate close to zero.
More information regarding Time Segmented Volume can be found here: www.worden.com
Original code ported by @liw0
Corrected by @vitelot
Updated/Enhancements by @eylwithsteph with inspiration from @storma
Multiple MA Options Credits to @Fractured and @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.
Enhanced Time Segmented VolumeTime Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume. Essentialy it is designed to measure the amount of money flowing in and out of an instrument.
Time Segmented Volume was originally ported to TradingView by user @liw0 and later corrected by user @vitelot. I never quite understood how to read Time Segmented Volume until I ran across a version by user @storma where they indicated when price would be long or short, but that code also utilized the incorrect calculation from user @liw0.
In an effort to make Time Segmented Volume more accessible and easier to read, I have re-coded it here. The calculations are based on the code from @vitelot and I have added direction indicators below the chart.
If the histogram (TSV) is greater than zero and greater than the moving average, price should be moving long and there will be a green box below the chart.
If TSV falls below the moving average while still being greater than zero, the trend may be exhausting and has been coded to read Price Action Long - FAILURE with a black x below the chart.
If the histogram (TSV) is less than zero and less than the moving average, price should be moving short and there will be a red box below the chart.
If TSV rises above the moving average while still being less than zero, the trend may be exhausting and has been coded to read Price Action Short - FAILURE with a black x below the chart.
At times, the moving average may be above zero while TSV is below zero or vice versa. In these situations the chart will indicate long or short based on whether or not TSV is greater or less than zero. It is possible a new trend may be forming as the moving average obviously lags, but also possible price is consolidating with little volume and causing TSV to oscillate close to zero.
More information regarding Time Segmented Volume can be found here: www.worden.com
Original code ported by @liw0
Corrected by @vitelot
Updated/Enhancements by @eylwithsteph with inspiration from @storma
As always, trade at your own risk.
[mya] ATR FilteredATR Filtered for NNFX trading.
A classic Average True Range (ATR) indicator with a simple feature to filter out the spikes.
The ATR value is the tool to determine your TP and SL on daily time-frame, specifically in the NNFX way of trading.
VP mentions in his podcast that when the ATR spikes up you have 2 options: 1. wait 14 candles for the ATR to normalize, 2. use the ATR value prior to the spike.
ATR spikes are easy to spot (thus easy to exclude) for an itraday flash crash.
On the other hand when volatility increases over several candles (as in the Covid-19 shock) it can be difficult to determine which ATR value to base your TP/SL on.
In definition of standard deviation, 95.4% of the value will fall within the 2 sigma bands. Therefore the rest 4.6% can be filtered out as an extreme value (a spike).
The ATR in this indicator will plot the standard ATR value in normal condition, then when the ATR spike happens it will stay at the highest value at the point, when the ATR exceeded its 2 sigma band.
The filtering will reset when the ATR comes back down below the extended highest value.
*Disclaimer: Use at your own risk. I am not a programmer, just another guy trying to beat this game. Let's go get it.
Underworld Hunter + Base ZoneUnderworld Hunter + Base Zone is designed to keep traders out of ranging markets by establishing a "dead zone" between the bands where price may be choppy or trends may be short lived. The original Underworld Hunter from @greenmask9 adapted Bollinger Bands by changing the basis from SMA to the EMA of the EMA of the EMA. This version now allows the user to select which moving average they would like to utilize for the calculation.
If price is outside of the upper bands, price may be bullish. If price is outside the lower bands, price may be bearish.
If price is within the green or red areas of the bands, a trend may be forming.
The system also plots when RSI has become over extended above the thresholds selected (70/20 is the default).
MA Period is the length/period the moving average is calculated with
MA Mode is the type of moving average that will be utilized in the basis calculation
The "Standard MA Calculation" Option changes the basis to calculate the moving average selected in MA Mode only once, instead of 3 times
Deviation 1 and Deviation 2 determine how far the dead zone bands will be from the basis
RSI Period is the length/period the RSI function is calculated with
RSI Extended - High Cutoff is the level RSI must reach to be marked as over extended. Most traders refer to this zone as "Overbought"
RSI Extended - Low Cutoff is the level RSI must reach to be marked as over extended. Most traders refer to this zone as "Oversold"
As many NNFx traders know, overbought and oversold essentially do not exist, though the zones can still be utilized
The remaining options are utilized for specific moving average calculations and are set to what is typically considered as "standard" for their values.
There are many options available for this code. The code has not been optimized but merely compiled. Settings should be adjusted for the instrument(s) you are trading.
Adapted from user @greenmask9
Multiple MA Options Credits to @Fractured and @lejmer
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim
As always, trade at your own risk.
Trend Follower - Light Mode | jhFollow up script for my Trend Follower script.
I'm used to dark mode, so I coded a few key plots in white, so those are changed into black on the script.
Notably:
- > 1 ATR in black dots along the baseline
- Current and previous ATR text labels to the right of the price
- A text label spacing input that allows you to adjust the spacing for text label from price.
This is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method.
1. Baseline
The main baseline filter is an indicator called Modular Filter created by Alex Grover
- www.tradingview.com
- Alex Grover - Modular Filter
-------
That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
Entry signal indicated with arrows.
2. Volume/Volatility, I will called it Trend Strength
The next indicator is commonly known as ASH, Absolute Strength Histogram.
This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
- Alex Grover Absolute Strength
-------
My modification and other info here
- Absolute Strength Histogram v2
-------
I simplified the display of the trend strength by plotting squares at the bottom of the chart.
- Lighted Squares shows strength
- Dimmed Squares shows weakness
3. Second Confirmation / Exits / Trailing Stop
Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
- QQE Trailing Line for Trailing Stop
-------
Three usages of this amazing indicator, serving as :
- Second trend confirmation
- Exit signal when price crosses the trailing line
- Trailing stop when you scaled out the second trade
This indicator is plotted with crosses.
Additional plots and information
Bar Color
- Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
- When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
-------
ATR Filter
- White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
- The default allowance is 1 ATR.
-------
The previous and current ATR value
- Label on the right side of the chart showing the previous and current value of ATR
Trend Follower | jhThis is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method.
1. Baseline
The main baseline filter is an indicator called Modular Filter created by Alex Grover
- www.tradingview.com
- Alex Grover - Modular Filter
-------
That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
Entry signal indicated with arrows.
2. Volume/Volatility, I will called it Trend Strength
The next indicator is commonly known as ASH, Absolute Strength Histogram.
This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
- Alex Grover Absolute Strength
-------
My modification and other info here
- Absolute Strength Histogram v2
-------
I simplified the display of the trend strength by plotting squares at the bottom of the chart.
- Lighted Squares shows strength
- Dimmed Squares shows weakness
3. Second Confirmation / Exits / Trailing Stop
Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
- QQE Trailing Line for Trailing Stop
-------
Three usages of this amazing indicator, serving as :
- Second trend confirmation
- Exit signal when price crosses the trailing line
- Trailing stop when you scaled out the second trade
This indicator is plotted with crosses.
Additional plots and information
Bar Color
- Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
- When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
-------
ATR Filter
- White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
- The default allowance is 1 ATR.
-------
The previous and current ATR value
- Label on the right side of the chart showing the previous and current value of ATR
Adding my Didi and ASH indicators up on this screenshot
Didi Index Improved with QQE
Centerline SupertrendA centerline/non-chart indicator version of Everget's Supertrend script for use in NNFX-style indicator setups, with the emphasis on this indicator NOT adding visual clutter to the main charting area with a baseline indicator already present.
This is literally the EXACT same script as Everget's Supertrend, but not drawn on the chart and with the fill/stop and fill/state level removed.
Adjust to your timeframe/asset and backtest/forward-test accordingly.
Source script by Everget (Supertrend):
Baseline-C [ID: AC-P]The "AC-P" version of jiehonglim's NNFX Baseline script is my personal customized version of the NNFX Baseline concept as part of the NNFX Algorithm stack/structure for 1D Trend Trading for Forex. Everget's JMA implementation is used for the baseline smoothing method, with optional ATR bands at 1.0x and 1.5x from the baseline.
NNFX = No Nonsense Forex
Baseline = Component of the NNFX Algorithm that consists of a single moving average
Baseline ---> Meant to be used in conjunction with ATR/C1/C2/Vol Indicator/Exit Indicator as per NNFX Algorithm setup/structure. C1 is 1st Confirmation Indicator, C2 is 2nd Confirmation Indicator.
JMA (Jurik Moving Average) is used for the baseline and slow baseline.
A slow baseline option is included, but disabled by default.
The faint orange/purple lines are 1.0x/1.5x ATR from the Baseline, and are what I use as potential TP/SL targets or to evaluate when to stay out of a trade (chop/missed entry/exit/other/ATR breach), depending on the trade setup (in conjunction with C1/C2/Vol Indicator/Exit Indicator)
This script is heavily based upon jiehonglim's NNFX Baseline script for signaling, barcoloring, and ATR.
SSL Channel option included but disabled by default (Erwinbeckers SSL component)
POC (Point of Control) from Volume Profile is included/enabled by default for both the current timeframe and 12HR timeframe
03.freeman's InfoPanel Divergence Indicator was used a reference to replace the current/previous ATR information infopanel/info draw from jiehonglim's script. I'm not sure whether I like the previous way ATR info was displayed vs how I have it currently, but it's something that is completely optional:
Specifically: I am tuning this baseline/indicator for 1D trading as part of the NNFX system, for Forex.
DO NOT USE THIS INDICATOR WITHOUT PROPER TUNING/ADJUSTMENT for your timeframe and asset class.
Note about lack of alerts:
Alerts for baseline crosses (and other crosses) have been purposefully omitted for this version upon initial publication. While getting alerts for baseline crosses under certain conditions/filtered conditions that eliminate low-importance signals and crossover whipsaw would be great, it's something I'm still looking into.
SPECIFICALLY: There are entry, exit, take profit, and continuation signal components in relation to the Baseline to the rest of the NNFX Algorithm stack (ATR/C1/C2/Vol Indicator/Exit Indicator), including but limited to the "1 candle rule" and the "7 candle rule" as per NNFX.
Implementing alerts that are significant that also factor in these rules while reducing alert spam/false signals would be ideal, but it's also the HTF/Daily chart - visually, entry/exit/continuation signal alignment is easy to spot when trading 1D - alerts may be redundant/a pursuit in diminishing returns (for now).
//-------------------------------------------------------------------
// Acknowledgements/Reference:
// jiehonglim, NNFX Baseline Script - Moving Averages
//
// Fractured, Many Moving Averages
//
// everget, Jurik Moving Average/JMA
//
// 03.freeman, InfoPanel Divergence Indicator
//
// Ggqmna Volume stops
//
// Libertus RSI Divs
//
// ChrisMoody, CM_Price-Action-Bars-Price Patterns That Work
//
// Erwinbeckers SSL Channel
//
QQE Trailing Line for Trailing Stop | jhUsing parts of QQE (Qualitative Quantitative Estimation) again, this time I'm applying the trailing line of QQE on price directly.
Outcome, it's behaving like a baseline filter and it can be use as an exit or a trailing stop indicator.
As comparing to Kijun-sen line in yellow, the QQE trailing line follows the price closer, therefore exiting you sooner when the trend direction changes.
There's 2 QQE option, they behave differently during the trend change.
Credits to Glaz and Shizaru for their QQE code.
Didi Index Improved with QQE | jhI was perplexed by the lack of continuation signals in trends, so I spent some time looking for a suitable indicator just for that purpose and fast indicators that can provide continuation signals tend to be too noisy as well.
I'm always intrigued by QQE (Qualitative Quantitative Estimation), so I QQE-ed almost everything I encountered.
After a while, I settled on Didi Index and enhanced it by adding an additional signal line calculated from QQE trailing line. The QQE trailing line provides additional cross overs for the short/fast Didi line, specially created for the NNFX continuation signals in the same direction.
The QQE trailing line acts as zero cross, providing an additional filter for ranging periods.
There's a few ways of identifying the cross overs:
Didi cross overs signals are highlighted with shapes at the top.
Didi long signal when fast and slow Didi crosses above zero
Didi short signal when fast and slow Didi crosses below zero
Continuation signals are highlighted with shapes at the bottom.
Continuation long signal when Didi fast line cross over QQE trailing line
Continuation short signal when Didi fast line cross under QQE trailing line
Example of continuation trades
Example of filtering bad signals from your baseline, confirmation or continuation signals.
Credits to Glaz and Shizaru for their QQE code.
Absolute Strength Histogram v2 | jhv2 changes the way the histogram is plotted.
Histogram shows the strength and can be used to identify trending or ranging periods.
Absolute Strength Histogram | jhOriginal ASH code from alexgrover
Some changes:
- Change the price to SMA with Period of 1 with reference to the original MT4 code
- Added a few more MAs
No Nonsense NNFX VP Strategy for Back Testing Baseline | jhStrategy for the NNFX Baseline Script - Moving Averages
Does not enter when price is > 1 ATR away.
Adapted the "Many Moving Averages" script to VP's NNFX No Nonsense Forex method.
Includes:
- ATR bands and labels
- Price is > 1 ATR away from baseline indication
Available MAs
"ALMA", "EMA", "DEMA", "TEMA", "WMA", "VWMA", "SMA", "SMMA", "HMA", "Kijun", "McGinley"
NNFX Baseline Script - Moving AveragesCredits to @Fractured
Adapted the "Many Moving Averages" script to VP's NNFX No Nonsense Forex method.
Includes:
- ATR bands and labels
- Price is > 1 ATR away from baseline indication
Without ATR Bands and bar colors
Available MAs
"ALMA", "EMA", "DEMA", "TEMA", "WMA", "VWMA", "SMA", "SMMA", "HMA", "Kijun", "McGinley"
SSL [dasanc]The SSL is a fair entry condition and good exit indicator. It works best when combined with a trend indicator and multiple confirmations.
In essence, the SSL is a moving average crossover, which immediately down-grades it to a 2nd or 3rd level of confluence in my opinion.
It was recently featured in an episode of VP's "No Nonsense FX", which drove me to recreate the original MT4 indicator in PineScript.
I have two ideas on how to improve it -
Use a much faster moving average calculation method (check out my Ehlers scripts)
Use a longer period MA on lower timeframes
If you enjoy/use this script, drop me a follow and please note me in your code!
I'm *almost* always available for collabs and questions
No Nonsense NNFX VP Strategy for Back Testing 3 x Indicators| jhAfter testing your individual indicators, it's time to build up your algo with additional indicators and further backtest the strategy.
Using SSL twice here, faster SSL for 1st confirmation, slower SSL for 2nd confirmation and TDFI for volume validation.
No Nonsense NNFX VP Strategy for Back Testing Indicators| jhAfter putting the whole system together, sat down to benchmark the various confirmation indicators, shrink it down to backtest individual confirmation indicators.
Results for 24 periods way better than 10, then again it's only one pair. :)
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//For testing your individual indicators before the full system
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry from 1 x confirmation
// - Exit conditions
//// - Exit on confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Confirmtion = SSL 10
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre www.tradingview.com
// SSL Channel ErwinBeckers www.tradingview.com
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Change log
//First release. Testing of indicators
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
No Nonsense NNFX VP Strategy for Back Testing | jhMy first script, be kind :)
Most of the rules are implemented:
- Money management
- ATR, Baseline, Confirmation, Volume, Exit
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//Made to be as modular as possible, so we can swap the indicators in and out.
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry within 1 candles of baseline + 1 x confirmation + volume
//// - Entry only if baseline is < 1 x ATR
// - Exit conditions
//// - Exit on exit indicator or when baseline or confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
// - Second entry L2 or S2 with standard SL and exit upon the exit conditions
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Baseline = HMA 20
// - Confirmtion = SSL 10
// - Volume = TDFI 4
// - Exit = RVI 4
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre
// TDFI causecelebre
// SSL Channel ErwinBeckers
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////