Divergence-Support/ResistenceAnother script based on zigzag, divergence, and to yield support and resistence levels.
This idea started with below two concepts:
▶ Support and resistence are simply levels where price has rejected to go further down or up. Usually, we can derive this based on pivots. But, if we start looking at every pivot, there will be many of them and may be confusing to understand which one to consider.
▶ Lot of people asked about one of my previous script on divergence detector on how to use it. I believe divergence should be considered as area of support and resistence because, they only amount to temporary weakness in momentum and nothing more. As per my understanding
Trend > Hidden Divergence > Divergence > Oscillator Levels of Overbought and Oversold
⬜ Process
▶ Now combining the above two concepts - what we are trying to do here is draw support resistence lines only on pivots which has observed either divergence or hidden divergence. Continuation and indecision pivots are ignored.
▶ Input requires only few parameters.
Zigzag lengths and oscillator to be used. Oscillator periods are automatically calculated based on zigzag length. Hence no other information required. You can also chose custom oscillator via external source.
▶ Display include horizontal lines of support/resistence which are drawn from the candle from where divergence or hidden divergence is detected.
▶ Support resistence lines are colored based on divergence. Green shades for bullish divergence and bullish hidden divergence whereas red shades for bearish divervence and bearish hidden divergence. Please note, red and green lines does not mean they only provide resistence or support. Any lines which are below the price should be treated as support and any line which are above the price should be treated as resistence.
▶ Divergence symbols are also printed on the bar from where divergence/hidden divergence is detected.
↗ - Bullish Hidden Divergence
↘ - Bearish Hidden Divergence
⤴ - Bullish Divergence
⤵ - Bearish Divergence
▶ Script also demonstrates usage of libraries effectively. I have used following libraries in this code.
import HeWhoMustNotBeNamed/ zigzag /2 as zg
import HeWhoMustNotBeNamed/enhanced_ta/8 as eta
import HeWhoMustNotBeNamed/ supertrend /4 as st
Can be good combination to use it with harmonic patterns.
Cari dalam skrip untuk "supertrend"
True BarcolorHeikin Ashi can be useful for understanding trend based on price action but it doesn't take volume in context. Here I have tried to use volume for understanding true bar color and ultimately true trend analysis. It can also help you in not getting trapped in sudden shakeouts. Also, you can use it for averaging of your existing position.
Conditions used:
Relative closing price
Relative volume against previous bar and overall moving average of volume
Volume analysis
Trend analysis
CHAMELEON TRAILA filter combining the built in supertrend function and two SMA's in order to act as a filter for trade ideas put forward by CHAMELEON which can be placed in a separate panel.
This is not accurate enough to use on its own as a signal, but helps filter out more complex ideas. To be most effective it is recommended to set the LENGTH correctly.
Includes ALERT CONDITION's for when the TRAIL is UP, DOWN or MIXED.
Multi-ZigZag Multi-Oscillator Trend DetectorThis table is intended to give you snapshot of how price and oscillators are moving along with zigzag pivots.
This is done in the same lines of Zigzag-Trend-Divergence-Detector
But, here are the differences
Table shows multiple oscillator movements at a same time instead of one selected oscillator
Divergence is not calculated and also supertrend based trend. Trend can be calculated based on zigzag movements. However, lets keep this for future enhancements.
This system also uses multiple zigzags instead of just one.
⬜ Process
▶ Derive multiple zigzags - Code is taken from Multi-ZigZag
▶ Along with zigzags - also calculate different oscillators and attach it to zigzag pivot.
▶ Calculate directions of zigzag pivots and corresponding oscillators.
▶ Plot everything in the table on last bar.
⬜ Table components
Table contains following data:
Directional legends are:
⇈ - Higher High (Green)
⇊ - Lower Low (Red)
⭡- Lower High (Orange)
⭣ - Higher Low (Lime)
⬜ Input Parameters
▶ Source : Default is close. If Unchecked - uses high/low data for calculating pivots. Can also use external input such as OBV
▶ Stats : Gives option to select the depth of output (History) and also lets you chose text size and table position.
▶ Oscillators : Oscillator length is derived by multiplying multiplier to zigzag length. For example, for zigzag 5, with 4 as multiplier, all oscillators are calculated with length 20. But, same for zigzag 8 will be 32 and so on.
▶ Available oscillators :
CCI - Commodity Channel Index
CMO - Chande Momentum Oscillator
COG - Center Of Gravity
MFI - Money Flow Index (Shows only if volume is present)
MOM - Momentum oscillator
ROC - Rate Of Change
RSI - Relative Strength Index
TSI - Total Strength Index
WPR - William Percent R
BB - Bollinger Percent B
KC - Keltner Channel Percent K
DC - Donchian Channel Percent D
ADC - Adoptive Donchian Channel Percent D ( Adoptive-Donchian-Channel )
⬜ Challenges
There are 12 oscillators and each zigzag has different length. Which means, there are 48 combinations of the ocillators.
First challenge was generating these values without creating lots of static initialization. Also, note, if the functions are not called on each bar, then they will not yield correct result. This is achieved through initializer function which runs on every bar and stores the oscillator values in an array which emulates multi dimensional array oscillator X zigzag length.
Next challenge was getting these values within function when we need it. While doing so I realized that values stored in array also have historical series and calling array.get will actully get you the entire series and not just the value. This is an important takeaway for me and this can be used for further complex implementations.
Thanks to @LonesomeTheBlue and @LucF for some timely suggestions and interesting technical discussions :)
Holy Pro ScalperWhat is Holy Pro Scalper
This is an advanced Indicator comprising of 21 Fuzzy and Quantitative logics running at once, which takes care of a lot of things for a trader, such as:
1> The current Dominant Trend
2> A Good Entry Point
3> A Way to Recover
4> A point to Stop
5> A Method to Book and Trail Profits
The Logics Includes Likes of :
> DonchainChannels, Supertrend, Bollinger Bands, ATR, Volume, RSI, Stoch etc....
The main Aim of this Indicator is to help traders trade with Rules, and make money if they follow it correctly.
Because One of the most important learnings which I have learnt in my professional trading career is creating a solid trading rule, which takes care of you even if the market is against you!
Another Problem the indicator tries to Solve Is What Securities to Trade for Tomorrow, Traders can plan before day trading and make the strategy towards the instrument in an effective way by just following a few rules, which are Easy to learn!
So Getting into how to Use this Indicator, (U can read the text and see the Video, shared below )
The indicator Comprises of 3 Basic UI Parts
1> Trading Signal
2> Recovery Signal
3> Dominant Trend
Trading Signal
This is represented by a triangle (both buy and sell) in (blue and Orange Colors)
There are two types of trading signals
a> Normal Trading Signal
b> Requiring Confirmation Trading Signal (“c” on top/ below of the Candle where signal Came)
The way to trade them is, one can straight away trade a normal Trading Signal, on the High of the Candle,
A “Requiring Confirmation Trading Signal” must be traded on the high of the Closing candle above the respective Signal candle, that is a trader must wait for the confirmation candle closing above the high of the Requiring Confirmation Trading Signal Candle.
Recovery Signal
A Recovery signal is a sign of recovery the system presents to a trader, when he/she have taken position/ trade as per the trading signal,
A recovery Signal helps to identify the time when its good to look for a recovery at breakeven cost or profit, if the recovery is broken,
There are two types of Recovery in the System,
1> Green Recovery
Which should be considered as a recovery when a Short Trade is active, it shows the intent of the market to change direction, so a trader while in short trade if he sees a green recovery anytime after his order is filled, he may plan to recover, if the recovery candle is broken, so he can wait to recover at breakeven cost or plan for a stop or book profit if market permits
2> Red Recovery
Which should be considered as a recovery when a Long Trade is active, it shows the intent of the market to change direction, so a trader while in long trade if he sees a red recovery anytime after his order is filled, he may plan to recover, if the recovery candle is broken, so he can wait to recover at breakeven cost or plan for a stop or book profit if market permits
Stopping Point and Dominant Trend
So Dominant Trend of the market is represented by a trend Following Line and Area
So if Area on Trend Following Line is Red, market’s dominant trend is Bear
And if Area on Trend Following Line is Green, market’s dominant trend is Bull
If a trader is in Trade the dominant trend line is considered as a stopping point, if market closes below it, in Long position, one can straight away take a Stop and May reverse trade according to thought process
Provision For Alerts
All Trading Signals
Bull Trading Signals
Bear Trading Signals
Green Recovery Signals
Red Recovery Signals
Video Examples
What Instruments and Time Frames It Works
Works on Every Liquid Instrument and Standard Timeframe (1m to 1month)
How Can u Get Access
Only do Private Message to me, use Comment Box for Constructive Comments
What If you Want To learn the Trading Setups of Profitability
Only do Private Message to me, use Comment Box for Constructive Comments
Keltner Center Of Gravity Channel ( KeltCOG )I have the ambition to create a ‘landscape’ which enables the user to see the ‘mood’ of the market about the price of an instrument, simply by looking where the candles go. Prices are a simple phenomenon , they go up or down or stay the same. This is represented quite well for the short term by a candle. I recommend to study candle patterns. Prices not only fluctuate but also trend up, down or go sideways. The user should analyze this by determining the COG (Center Of Gravity) and the ‘normal’ current range by using the historical data in a lookback period.
As a COG the center line of a Donchian Channel is often used. I.m.o. a COG should be a zone, in this channel I use the gray zone of my Donchian Fibonacci Channel, The ‘normal’ range is a multiple of Average True Range, as used in a Keltner Channel. Combining the two can give a cumbersome result, as one can see in my Keltner Fibonacci Channel. In this KeltCOG channel I solved this by not using all Fibonacci levels and by making the Keltner lines strictly parallel to the nearest COG line. To do this, I use the fact that the COG lines have horizontal stretches, there I make the Keltner lines horizontal too. Only where the COG lines change value, the Keltner lines are recalculated. This way the channel gets a very regular shape with three clear zones.
Interpretation of a chart by using the KeltCOG channel.
Overbought: If the candles go higher then the blue zone, the market is hyper enthusiast, creating an overbought situation. This is often followed by a reversion to the COG.
Uptrend: If the candles form in the blue zone, the market is enthusiast and willing to pay more.
Hopeful: If the candles form in or near the upper uncolored zone, the market is hopeful and is thinking about paying more. Sometimes prices go a little up.
Content: If the candles form in the gray zone, which represents COG, the market is happy with the current prices, so these move sideways
Disappointed: If the candles form in or near the lower uncolored zone, the market is disappointed and contemplates paying less, sometimes prices go a little down.
Downtrend: If the candles form in red zone, the market doesn’t like the instrument at all, rejects the current price and is only prepared to pay less.
Oversold: If the candles form below the red zone, the market overdoes its disgust, creating an oversold situation, often followed by a reversion to the COG.
CCI 5 LEVELS BY MOADThe Commodity Channel Index ( CCI ) is a momentum oscillator used in technical analysis primarily to identify overbought and oversold levels by measuring an instrument's variations away from its statistical mean. Besides overbought/oversold levels, CCI is often used to find reversals as well as divergences. Originally, the indicator was designed to be used for identifying trends in commodities , however it is now used in a wide range of financial instruments.
There are several steps involved in calculating the CCI . The following example is for a typical 14 Period CCI:
CCI = (Typical Price - 14 Period SMA of TP) / (.015 x Mean Deviation)
Typical Price (TP) = (High + Low + Close)/3
Constant = .015
The Constant is set at .015 for scaling purposes. By including the constant, the majority of CCI values will fall within the 100 to -100 range.
Mean Deviation:
1) Subtract the most recent 14 Period Simple Moving from each typical price (TP) for the Period.
2) Sum these numbers strictly using absolute values.
3) Divide the value generated in step 2 by the total number of Periods (14 in this case).
Overbought and Oversold conditions can be used in their more traditional sense to identify future reversals. Remember true overbought/oversold thresholds values can and often do vary between instruments.
During a Bullish Trend, price crossing above the overbought threshold may indicate strong confidence in the move and price will continue to rise.
During a Bearish Trend, price crossing below the oversold threshold may indicate strong confidence in the move and price will continue to fall.
The first option is a modified CCI indicator that uses the "Arnaud Legoux Moving Average" instead of the SMA , and the source uses the VWAP instead of the HLC3. Added to this version an option to calculate CCI with different types of moving averages:
Green dots mean they are overbought
Orange dots mean they are oversold
Added a "SuperTrend Background" based on the modified CCI indicator:
Bull event = CCI crossing over the 0 line
Bear event = CCI crossing below the 0 line
Added a signal as EMA (modified CCI , signal length)
The second option is a standard CCI indicator that shows a coloured histogram of important levels, giving a good visual of the CCI levels. Added to this version is an extra coloured level +/-200 and an option to use Traditional CCI calculations according to user @JustUncleL
LEVELS:
Aqua: Greater than 200.
Lavender: Greater than 100 and less than 200.
Dark Lavender: Greater than 0 and less than 100.
Dark Coral: Less than 0 and greater than -100.
Coral: Less than -100 and greater than -200.
Light Red: Less than -200.
Zigzag Candles MAWe have the candles here: Zigzag-Candles
Lets create moving average!!
Just simple moving average at the moment. Since, items are in array. Not so easy to use standard functions of pine. Hence, will take that for future enhancements.
ATR and Supertrend next!!
Zigzag CandlesCan't deny that I am obsessed with zigzags. Been doing some crazy experiments with it and have many more in pipeline. I believe zigzag can be used to derive better trend following methods. Here is an attempt to visualize zigzag as candlesticks. Next steps probably to derive moving average, atr (although there was an attempt of AZR made earlier) and probably supertrend too ;)
Input parameters include ZigzagLength (to calculate zigzag) and CandleSize (number of zigzag pivots in each candle)
CandleSize can be 3 or more. Every time we collect pivots which are equal to CandleSize, we derive one candle. And when we derive a candle, we remove all old pivots except the last one. Becauase, the last pivot acts as open to the next bar and is required.
Body of the candle tells the start and end zigzag pivot in the range. And Wicks signify highest and lowest pivots in the range. High and Low wicks are placed at the pivot where high and lows are formed. Hence, you can see them at different positions each time.
Thanks to @RicardoSantos for suggesting boxes for candles - while I was trying to achieve this with plotbar
Super_Macd_Alerts_EMA_publicQuickly find market caps, risk management and predict the timing of contrarian tensions.
By automatically receiving trend changes, we support trend follow, push and return strategies simply and quickly.
Make the most of this all-in-one system and take your trading style one step further.
・ Main functions
MACD slope change signal (UP / DN)
MACD hidden divergence signal (HL / HS)
Histogram divergence signal (vertical background: blue / pink)
You need to use signals without going against the trend.
·idea
Recommended for use with Elliott Wave, SUPER TREND
・ Chart example
WTI Crude Oil Futures | HS Signal Before Crash
GOLD CFD 1D
2021/7/1
UP signal before returning to the UP trend
2021/8/5
HS signal before the crash
BTCUSD 4H
2021/08/10
Signals to use: UP / HL on uptrend, Histogram divergence (pink)
DCA_PREMIUMOur new indicator tracks trends to create buy and sell alerts, see below how it works.
HOW IT WORKS:
It uses RMA which is the same moving average used by RSI and HMA, they intersect give us an entry signal, be it a buy or sell, as the entry signal the script will color the bars according to the signal.
When a GREEN candle appears, it indicates a large purchase volume and when a PURPLE candle appears, it indicates a large sales volume.
The indicator will alert for entries only according to the trend of the traded asset
FOR EXAMPLE:
I am trading USDJPY in an uptrend, the indicator will only alert me for buy entries, if it applies to downtrend.
DASHBOARD:
Our dashboard indicates the volatility of the traded asset, the short-term trend and the trade signal.
HOW TO USE:
Choose the asset you want to trade and, in the settings, change the time period you want for your trading style, for example: Swing Trade, Day Trade or Position.
See regions with large trading volumes indicating price manipulation or just supports and resistances too strong to break.
Trend ExplorerAre we in a bull or a bear market?
From the technical analysis point of view, the answer is "It depends". It depends from the parameters of your indicator, the timeframe of the pair you are looking and the volatility of that specific market you are looking to.
After I experimented with various trending indicators I decided to develop a framework that potentially could "embed" already existing logic from well known indicators (e.g. Supertrend OTT etc.).
The most important part is that I managed to abstract that logic away and experiment even further to produce some more robust, market and timeframe resolution agnostic results. While at the same time I was able to switch between market and timeframe resolution specific configuration to take some decision.
Finally, I decided to share this code with you folks! Developed this indicator "Trend Explorer" in an effort to make the aforementioned abstraction of all those trending indicators.
The goal is to enable the user to explore and combine different approaches in order to create a more robust and market general/specific, timeframe resolution invariant/fluctuating and volatility auto/manual adjusted indicator according to his needs.
The logic behind the abstraction is fairly simple. The trending indicator consists of two boundary lines the "bull trend low boundary" (green) and the "bear trend high boundary" (red). The indicator also has a control line (orange). Every time the control line crosses a boundary there is a trend reversal! The boundary lines are defined by the thresholds. To be more precise, boundaries are pulled upwards by thresholds (blue) during a bull market and downwards during a bear market. I challenge the user to experiment with the different ways of calculating the thresholds and the control. I am open to suggestions that might improve and extend the possibilities of this indicator. Any feedback, comments, general thoughts or bug reports are welcome.
Why did I chose those defaults?
For threshold calculation I chose MINMAX which calculates the local minimum and maximum using a sliding window. As far as I know it is not used in any existing trending indicator, but it seems reasonable for a trader to search for local min and max to make a decision. The width of the sliding window a.k.a the "period to remember" the local min and max is 30 days by default, just because I believe that for regular people it is a reasonable period of time to forget too.
Also, compared to the SUBADD method MINMAX does not seem to lag behind, especially when using averages in the SUBADD mode. Moreover, I consider MINMAX to be more general than the margins used by the SUBADD since margins should be configured based on the underlying market volatility.
For a source of min and max I chose the low and high values just because they are timeframe resolution invariant, meaning that they have the same (not exactly due to number precision and rounding, but very close) results for a single pair whether you use "4 hour" or "1 day" time interval! Another popular choice might be (close, close) since many traders wait for the daily candle to close in order to discard outliers. However, this approach is not resolution invariant and it depends from the time interval the user has selected.
Do you have any interesting trending indicator you would like to see how it performs in this framework logic? Let me know!
Do you have in mind any variation of Control or Thresholds calculation you would like to test? Please describe it in the comments below so I can add it in my implementation for you!
Did you find any other bug or you experienced any strange behavior? PM me with a description of the bug, the trading pair the timeframe resolution the exact time (candle) and all the necessary configurations for this indicator so I can reproduce it on my machine!
Please enjoy with caution,
Jason
Portfolio Backtester Engine█ OVERVIEW
Portfolio Backtester Engine (PBTE). This tool will allow you to backtest strategies across multiple securities at once. Allowing you to easier understand if your strategy is robust. If you are familiar with the PineCoders backtesting engine , then you will find this indicator pleasant to work with as it is an adaptation based on that work. Much of the functionality has been kept the same, or enhanced, with some minor adjustments I made on the account of creating a more subjectively intuitive tool.
█ HISTORY
The original purpose of the backtesting engine (`BTE`) was to bridge the gap between strategies and studies . Previously, strategies did not contain the ability to send alerts, but were necessary for backtesting. Studies on the other hand were necessary for sending alerts, but could not provide backtesting results . Often, traders would have to manage two separate Pine scripts to take advantage of each feature, this was less than ideal.
The `BTE` published by PineCoders offered a solution to this issue by generating backtesting results under the context of a study(). This allowed traders to backtest their strategy and simultaneously generate alerts for automated trading, thus eliminating the need for a separate strategy() script (though, even converting the engine to a strategy was made simple by the PineCoders!).
Fast forward a couple years and PineScript evolved beyond these issues and alerts were introduced into strategies. The BTE was not quite as necessary anymore, but is still extremely useful as it contains extra features and data not found under the strategy() context. Below is an excerpt of features contained by the BTE:
"""
More than `40` built-in strategies,
Customizable components,
Coupling with your own external indicator,
Simple conversion from Study to Strategy modes,
Post-Exit analysis to search for alternate trade outcomes,
Use of the Data Window to show detailed bar by bar trade information and global statistics, including some not provided by TV backtesting,
Plotting of reminders and generation of alerts on in-trade events.
"""
Before I go any further, I want to be clear that the BTE is STILL a good tool and it is STILL very useful. The Portfolio Backtesting Engine I am introducing is only a tangental advancement and not to be confused as a replacement, this tool would not have been possible without the `BTE`.
█ THE PROBLEM
Most strategies built in Pine are limited by one thing. Data. Backtesting should be a rigorous process and researchers should examine the performance of their strategy across all market regimes; that includes, bullish and bearish markets, ranging markets, low volatility and high volatility. Depending on your TV subscription The Pine Engine is limited to 5k-20k historical bars available for backtesting, which can often leave the strategy results wanting. As a general rule of thumb, strategies should be tested across a quantity of historical bars which will allow for at least 100 trades. In many cases, the lack of historical bars available for backtesting and frequency of the strategy signals produces less than 100 trades, rendering your strategy results inconclusive.
█ THE SOLUTION
In order to be confident that we have a robust strategy we must test it across all market regimes and we must have over 100 trades. To do this effectively, researchers can use the Portfolio Backtesting Engine (PBTE).
By testing a strategy across a carefully selected portfolio of securities, researchers can now gather 5k-20k historical bars per security! Currently, the PTBE allows up to 5 securities, which amounts to 25k-100k historical bars.
█ HOW TO USE
1 — Add the indicator to your chart.
• Confirm inputs. These will be the most important initial values which you can change later by clicking the gear icon ⚙ and opening up the settings of the indicator.
2 — Select a portfolio.
• You will want to spend some time carefully selecting a portfolio of securities.
• Each security should be uncorrelated.
• The entire portfolio should contain a mix of different market regimes.
You should understand that strategies generally take advantage of one particular type of market regime. (trending, ranging, low/high volatility)
For example, the default RSI strategy is typically advantageous during ranging markets, whereas a typical moving average crossover strategy is advantageous in trending markets.
If you were to use the standard RSI strategy during a trending market, you might be selling when you should be buying.
Similarily, if you use an SMA crossover during a ranging market, you will find that the MA's may produce many false signals.
Even if you build a strategy that is designed to be used only in a trending market, it is still best to select a portfolio of all market regimes
as you will be able to test how your strategy will perform when the market does something unexpected.
3 — Test a built-in strategy or add your own.
• Navigate to gear icon ⚙ (settings) of strategy.
• Choose your options.
• Select a Main Entry Strat and Alternate Entry Strat .
• If you want to add your own strategy, you will need to modify the source code and follow the built-in example.
• You will only need to generate (buy 1 / sell -1/ neutral 0) signals.
• Select a Filter , by default these are all off.
• Select an Entry Stop - This will be your stop loss placed at the trade entry.
• Select Pyamiding - This will allow you to stack positions. By default this is off.
• Select Hard Exits - You can also think of these as Take Profits.
• Let the strategy run and take note of the display tables results.
• Portfolio - Shows each security.
• The strategy runs on each asset in your portfolio.
• The initial capital is equally distributed across each security.
So if you have 5 securities and a starting capital of 100,000$ then each security will run the strategy starting with 20,000$
The total row will aggregate the results on a bar by bar basis showing the total results of your initial capital.
• Net Profit (NP) - Shows profitability.
• Number of Trades (#T) - Shows # of trades taken during backtesting period.
• Typically will want to see this number greater than 100 on the "Total" row.
• Average Trade Length (ATL) - Shows average # of days in a trade.
• Maximum Drawdown (MD ) - Max peak-to-valley equity drawdown during backtesting period.
• This number defines the minimum amount of capital required to trade the system.
• Typically, this shouldn’t be lower than 34% and we will want to allow for at least 50% beyond this number.
• Maximum Loss (ML) - Shows largest loss experienced on a per-trade basis.
• Normally, don’t want to exceed more than 1-2 % of equity.
• Maximum Drawdown Duration (MDD) - The longest duration of a drawdown in equity prior to a new equity peak.
• This number is important to help us psychologically understand how long we can expect to wait for a new peak in account equity.
• Maximum Consecutive Losses (MCL) - The max consecutive losses endured throughout the backtesting period.
• Another important metric for trader psychology, this will help you understand how many losses you should be prepared to handle.
• Profit to Maximum Drawdown (P:MD) - A ratio for the average profit to the maximum drawdown.
• The higher the ratio is, the better. Large profits and small losses contribute to a good PMD.
• This metric allows us to examine the profit with respect to risk.
• Profit Loss Ratio (P:L) - Average profit over the average loss.
• Typically this number should be higher in trend following systems.
• Mean reversion systems show lower values, but compensate with a better win %.
• Percent Winners (% W) - The percentage of winning trades.
• Trend systems will usually have lower win percentages, since statistically the market is only trending roughly 30% of the time.
• Mean reversion systems typically should have a high % W.
• Time Percentage (Time %) - The amount of time that the system has an open position.
• The more time you are in the market, the more you are exposed to market risk, not to mention you could be using that money for something else right?
• Return on Investment (ROI) - Your Net Profit over your initial investment, represented as a percentage.
• You want this number to be positive and high.
• Open Profit (OP) - If the strategy has any open positions, the floating value will be represented here.
• Trading Days (TD) - An important metric showing how many days the strategy was active.
• This is good to know and will be valuable in understanding how long you will need to run this strategy in order to achieve results.
█ FEATURES
These are additional features that extend the original `BTE` features.
- Portfolio backtesting.
- Color coded performance results.
- Circuit Breakers that will stop trading.
- Position reversals on exit. (Simulating the function of always in the market. Similar to strategy.entry functionality)
- Whipsaw Filter
- Moving Average Filter
- Minimum Change Filter
- % Gain Equity Exit
- Popular strategies, (MACD, MA cross, supertrend)
Below are features that were excluded from the original `BTE`
- 2 stage in-trade stops with kick-in rules (This was a subjective decision to remove. I found it to be complex and thwarted my use of the `BTE` for some time.)
- Simple conversion from Study to Strategy modes. (Not possible with multiple securities)
- Coupling with your own external indicator (Not really practical to use with multiple securities, but could be used if signals were generated based on some indicator which was not based on the current chart)
- Use of the Data Window to show detailed bar by bar trade information and global statistics.
- Post Exit Analysis.
- Plotting of reminders and generation of alerts on in-trade events.
- Alerts (These may be added in the future by request when I find the time.)
█ THANKS
The whole PineCoders team for all their shared knowledge and original publication of the BTE and Richard Weismann for his ideas on building robust strategies.
═════════════════════════════════════════════════════════════════════════
Hopper Trigger - Free Cryptohopper WidgetWelcome to our Tradingview cryptohopper trigger widget.
We designed this script to give Cryptohopper users the possibility to set up an alarm when btc is trending down. Cause of the BTCs behavior as the supertrend coin for the market it is better to turn your hopper off or be extremly careful when BTC is trending down. We implemented to types of alarms, because atm its not possible to automate using them to deactivate your hopper. On Alarm setup could be used to send signals every minute to trigger a push notification on your App or to trigger your Alexa. The other type of alarm only sends one single signal for normal purposes.
We recommend using this indicator in the 30 minute or 1 hour timeframe and to deactivate your hopper and deleting all positions when a alarm is signaling. The risk of a larger drop is very high in this marketphase. Never take an drop again using this approach. Little drawdown in bearish or ranging times but high reward in bullish times.
Smartgrow-Trading is a community project with the aim of developing the best and most successful trading strategies and sharing them with the community.
The basic idea of this script is to calculate how far an coin is away from its ATH , to gave warning signals for deactivating coins after they reached there ATH . So it could also be used for other coins and pairs.
If there are questions, write them into the comments or contact us directly over the direct message or social media. Happy Trading!
All Time High Warning - Free Cryptohopper WidgetWelcome to our Tradingview coin prediction filter.
We designed this script to give Cryptohopper users the possibility to set up an alarm when btc is close to All Time High. Cause of the BTCs behavior as the supertrend coin for the market it is better to turn your hopper off or be extremly careful when BTC is close to ATH.
We recommend deactivating the hopper and deleting all positions. The risk of a larger drop is very high in this marketphase.
Smartgrow-Trading is a community project with the aim of developing the best and most successful trading strategies and sharing them with the community.
The basic idea of this script is to calculate how far an coin is away from its ATH, to gave warning signals for deactivating coins after they reached there ATH. So it could also be used for other coins and pairs.
If there are questions, write them into the comments or contact us directly over the direct message or social media. Happy Trading!
RedK_Larry William's TrendI'm not the author of this indicator or the concept behind it
i found this code - written for another platform - while researching "Larry William's Trend" - while i also couldn't find that specific keyword in the TV public library. So thought to bring this in.
Also unfortunately there was no coder details to give credit to with the code i found. it seems this may somehow be related to the famous SuperTrend - but i have no idea how they are connected. i simply ported this to Pine in my own way.
will be happy if this is useful to some traders who use these types of trend indicators. if you do find it useful, pls leave a comment here - or feel free to take this code and modify it in any further way for your specific need.
we continue to learn and explore new tools everyday. good luck!
4H Crypto RoycerThis indicator includes simple moving averages (21,50,200) and exponential moving averages (10,144) and has the ability to show this data on the chart with the approval of the user.
The indicator, which controls the intersections with the formulas it contains, can display the Golden Cross and Death Cross warnings to the user on the chart.
It draws a band on the chart with the support area calculations and in these band calculations; blends simple moving and exponential moving averages and smooths them by 1.5%.
It is used as a signal trigger in band overruns by replacing the lower and upper bands by calculation.
While one of our signal triggers is this band, our other variable is 50 simple moving averages.
Inspired by Kıvanç Özbilgiç's Supertrend indicator, the formula was updated using MA50 and 15% Stop-Loss instead of using atr multiplier.
Our chart has been tested in crypto currencies on 4 hour candles, so "4H" has been added to the beginning of the name.
We recommend using the indicator, buy / sell signals and the support band on the 4-hour charts.
Bollinger Oscillator Extreme + ADXSHORT DESCRIPTION
This study is an improved, flexible, fully-customizable version of the one proposed by Steve Karnish of Cedar Creek Trading, who aimed to create an oscillator based on Bollinger Bands , with the goal of spotting divergencies that occurs outside the bands yet providing valuable entries on the crossings trough a smoothed signal.
IMPROVINGS
Made a Zero Line normalization, where 0 is essentially the BBs basis MA, whereas +100 -100 represents those classic 2 Stdev;
Added two levels of interest based on golden ratio working with the two above to get such an Overbought/Oversold Area. Those levels slightly move apart from a 1.5 Stev.
Made possible to set EMA as basis average instead John’s classic SMA ;
While I kept the original “CCT Oscillator” as a reliable divergence-hunter, I get from it the “Smoothed Oscillator” with a triple average smoothing. You can only play with the first smoothing step by “Oscillator Smoothing” while following are fixed.
Despite little differences occurs, you can consider the Smoothed Oscillator itself as the Signal on the original CCT Oscillator.
Derived the “Signal” that works on the Smoothed Oscillator. You can play with different smoothing length.
Add a customizable ADX which helps weighting trend strength, weakness, choppiness . (mirrored on the Zero Line for aesthetics only)
Add a “BB Width” representation so as you can stay in touch with BB volatility , squeezes, and so on. It is a non-analitic data (not 100 normalized). Use “BBW Multiplier” to match visual reading.
HOW TO USE (NOT TO USE)
The indicator works well when strong directional moves occurs and even better in a sideways market (wide trading range). So there are three main evaluable application:
During an Up-trend, spotting negative divergencies on CCT Oscillator in the Oversold Area (better above +100) tell us that a correction or a reversal will probably occur. It’s time to consider a stop profit or look for a good re-entry after the pull-back.
During a Down-trend, spotting positive divergencies on CCT Oscillator in the Overbought Area (better below -100) tell us that a correction or a reversal will probably occur. It’s time to consider a stop profit or look for a good re-entry after the pull-back.
In a Sideway Market, look for both positive and negative divergencies on CCT Oscillator in the Oversold/Overbought Areas, trading in the range, better with the confirmation from such a Stochastic and a Volume based indicator.
>>> If you're not a pro you would better left counter-trend and mean-reversal setups to “trading titans”. <<<
“OK! And what about signals!?” you tell. :D There are many ways to get signals from crossings and it’s up to you to find what work better to you needs. You can start testing the original Steve Karnish method, using the “CCT Oscillator”/“Smoothed Oscillator” crossings (a 9 period smoothing on a 20 period BB could be a reasonable begining).
Whipsaws makes it difficult? Give a try to “Smoothed Oscillator”/“Signal” crossings. Observe how the price act when “Smoothed Oscillator” penetrate Overbought Area from above or Oversold Area from below after a divergence took place.
Test a lot BB Length-Signal Smoothing combos.
Test with EMA instead using John’s SMA .
Never forget the divergencies’ reliability is time-correlated yet timeframe-correlated too (the longer the better!).
Never forget that the Zero Line (as the basis of BBs) tends to act as resistance/support.
I do the best I can to realize such a flexible tool. Now is up to you to find what better suit your needs.
MEDTRONIC Daily
MORE SUGGESTIONS
This script won’t be an out of the box stategy as no other indicator by itself, tough if you tell it could become a piece of the puzzle.
So that his is basically a price-based indicator you would better consider to pair it with a volume-based or an absolute-momentum based one .
Most important is you first focus on the market in order to detect strong uptrend/downtrend or sideways, better using a supertrend, moving averages (or whatever works better for you) paired with a momentum indicator .
As literatures explains Bollinger Bands (such many others indicators) do their best in ranging markets, yet this version could be as useful when a strong directional move takes place.
THIS WORK TAKES HOURS OF RESEARCH, DEVELOPMENT, TESTING…
SHARING IS INTENDED FOR EDUCATIONAL PURPOSE ONLY. NOT FOR PROFESSIONAL USE.
WILL APPRECIATE ANY FEEDBACK, QUESTION, SUGGESTION! (*)
(*) Please don’t ask me for “magic settings” which do not exist at all, nor for “kaleidoscopic effects” cause I’m a big fan of such a minimalistic yet professional layouts.
FOLLOWUP TO CHECK UPDATES!
Smart Money Flow v.2.0 BY Stock_InshotsThis Indicator is made by combination of indicators as follows
1) Super Trend - Period 15,2.5
Signal Filtered on the closing basis of SMA High 20 for strength
2) Simple Moving Average - period 50
In which Purple indicates Uptrend
Orange Indicates down trend
3) Bill William's Fractal - This indicator indicates important candle for formation of swing of High or low with Triangle shape at the bottom & top on the chart .
After Signal one can wait for fractal candle formation also for Big risk reward Ration
Buy Setup : After signal Try to place long order near Sma50
Sell Setup : After signal Try to place Short order near Sma50
If missed wait for next Signal , Don't Run behind Price
Keep Trailing Your Stop loss with ATR Values
Note : Nothing is 100% , You may customize this indicator according to your values .
Best to use with other momentum / strength indicator before taking positions
Like RSI / Support & Resistance Levels
For Targets use BB% levels / Pivot Points / Fibonacci levels / Nearest Demand & Supply Zone
Thanks to the Trading view as i used open Source Codes in combination of this indicator. it helped a lot .
Feedback will be welcomed .
Refer Image
SuperBi just put this combo of some older scripts
so it has a volume indicator based on VPT can be control by length
supertrend with factor to control sensitivity
for each TF you need to find best settings for best results
i hope you like this version
in future if i have time i will try to put better scripts
NIKI MS CRYPTOThis indicator is created specifically for BTCUSDTPERP, BTCBUSD, and BTCUSDT cryptocurrency pairs. It is not profitable in other cryptocurrency pairs. It only works on the 5-minute chart with a candle pattern. This indicator is just based on multi-timeframe Supertrend analysis. This indicator is more suitable for scalping. The target is 0.45% and the stop loss is 0.4%, which can be adjusted from the indicator settings. The yellow candle on the chart represents the entry and the blue candle represents the exit. All signals should be considered only after the candle is closed.
This indicator comes with Algo trading settings. By setting an alarm you can do robot trading in Binance.
Contact us using the links provided below to get access to this indicator.
VCCB Stocks - Volume Coloured Candle BarsVCCB Volume Coloured Candle Bars (for Stocks, Indices, ETF, Commodities)
This indicator colour-codes the candlesticks to help traders easily identify if price action is supported by STRONG BULLISH -or- BEARISH VOLUME.
.
.
DARK GREEN CANDLE when prices MOVE UP & VOLUME is MORE than 150% of its 21 day average --- indicates price action is supported by a VERY STRONG BULLISH VOLUME.
TIP: I will look out for this DARK GREEN CANDLE to identify entries for trading price breakout with high volume)
OLIVE GREEN CANDLE when prices MOVE UP & VOLUME is BETWEEN 100% AND 150% of its 21 day average ---- indicates volume is STRONG BULLISH.
LIGHT GREEN CANDLE when prices MOVE UP & VOLUME is EQUAL to or MORE than 50% but LESS than 100% of its 21 day average ---- indicates volume is neither strong or weak.
YELLOW CANDLE when prices MOVE UP but VOLUME is LESS than 50% of its 21 day average ---- indicates volume is weak and does not support the bullish price action.
.
.
DARK RED CANDLE when prices MOVE DOWN & VOLUME is MORE than 150% of its 21 day average --- indicates price action is supported by a VERY STRONG BEARISH VOLUME.
TIP: I will look out for this DARK RED CANDLE to identify entry setups for trading price breakdown with high volume.
RED CANDLE when prices MOVE DOWN & VOLUME is BETWEEN 100% AND 150% of its 21 day average ---- indicates volume is STRONG BEARISH.
PINK CANDLE when prices MOVE DOWN & VOLUME is EQUAL to or MORE than 50% but LESS than 100% of its 21 day average ---- indicates volume is neither strong or weak.
ORANGE CANDLE when prices MOVE DOWN but VOLUME is LESS than 50% of its 21 day average ---- indicates volume is weak and does not support the bearish price action.
.
.
I recommend using this indicator in conjuction with Supertrend Indicator (that provides dynamic levels of support and resistance) to help you identify potential entry/exit points.
Super Trend Triple - With Buy/Sell/Close and trailing S/L AlertsSuper Trend Triple by © PaulJC
Having 3 super trend indicators is a fairly well-known strategy, taking an order when all 3 lines confirm the trend
while above/below the 200ema (optional)
!!!!! Do your own backtesting on symbols you trade before trying with real funds !!!!!
That said, this works well on most time frames when trailing the stop up the trend line...
You need to see which is the best line to follow based on the symbol you are trading and select this in the options if you want alerts when it moves!
Alerts for: (Set alerts to 'Once Per Bar Close' to avoid early entry.)
Buy Signal
Sell Signal
Order Signal (Both Buy or Sell)
Change in Stop
Change in stop with stop prices (Select "Any alert() function call")
Close Position
Options/Inputs:
Show/Hide Trend Lines
Show/Hide Background Colors
Show/Hide Entry Background
Show/Hide Close Background
Show/Hide Entry / Close Arrows
Show/Hide Entry / Close Labels
Show/Hide 200EMA
Turn On/Off EMA200 Filter
Choose which Trend Line to follow for SL alerts
Turn off all alerts
Any ideas for improvements or changes, let me know :)