Cipher_B (Finandy support)In this version of the script you can force to cancel your position after some amount of time indepedently on price action. For example, your bot open a short position with SL=1% and TP=2.4% but price did not reach any of this level over the course of to say 8 hours. In this case, position will be closed regardless of the price.
Other interesting features are volume and slope filters. Slope is essentially a derivative of price action. If you don't like to buy your instrument under high volatility, for example, if a trend goes down too fast then you can filter long position which could be opened according to the strategy. Same thing for volume filter. If the volume is too high/too low, you might want to escape such setup in your trading strategy.
Moreover, you can tune price shift for opening position. To say, if you believe that the signal for opening position comes too early everytime, you can force the strategy to buy at 1% lower price than the current price when the signal comes. Similar logic for short: open position price will be always higher than the price of the signal. If the price did not reach such level then position will be automatically cancel with a new signal arrival. Check the backtesting results to understand better the logic.
Cipherb
WaveTrend 3D█ OVERVIEW
WaveTrend 3D (WT3D) is a novel implementation of the famous WaveTrend (WT) indicator and has been completely redesigned from the ground up to address some of the inherent shortcomings associated with the traditional WT algorithm.
█ BACKGROUND
The WaveTrend (WT) indicator has become a widely popular tool for traders in recent years. WT was first ported to PineScript in 2014 by the user @LazyBear, and since then, it has ascended to become one of the Top 5 most popular scripts on TradingView.
The WT algorithm appears to have origins in a lesser-known proprietary algorithm called Trading Channel Index (TCI), created by AIQ Systems in 1986 as an integral part of their commercial software suite, TradingExpert Pro. The software’s reference manual states that “TCI identifies changes in price direction” and is “an adaptation of Donald R. Lambert’s Commodity Channel Index (CCI)”, which was introduced to the world six years earlier in 1980. Interestingly, a vestige of this early beginning can still be seen in the source code of LazyBear’s script, where the final EMA calculation is stored in an intermediate variable called “tci” in the code.
█ IMPLEMENTATION DETAILS
WaveTrend 3D is an alternative implementation of WaveTrend that directly addresses some of the known shortcomings of the indicator, including its unbounded extremes, susceptibility to whipsaw, and lack of insight into other timeframes.
In the canonical WT approach, an exponential moving average (EMA) for a given lookback window is used to assess the variability between price and two other EMAs relative to a second lookback window. Since the difference between the average price and its associated EMA is essentially unbounded, an arbitrary scaling factor of 0.015 is typically applied as a crude form of rescaling but still fails to capture 20-30% of values between the range of -100 to 100. Additionally, the trigger signal for the final EMA (i.e., TCI) crossover-based oscillator is a four-bar simple moving average (SMA), which further contributes to the net lag accumulated by the consecutive EMA calculations in the previous steps.
The core idea behind WT3D is to replace the EMA-based crossover system with modern Digital Signal Processing techniques. By assuming that price action adheres approximately to a Gaussian distribution, it is possible to sidestep the scaling nightmare associated with unbounded price differentials of the original WaveTrend method by focusing instead on the alteration of the underlying Probability Distribution Function (PDF) of the input series. Furthermore, using a signal processing filter such as a Butterworth Filter, we can eliminate the need for consecutive exponential moving averages along with the associated lag they bring.
Ideally, it is convenient to have the resulting probability distribution oscillate between the values of -1 and 1, with the zero line serving as a median. With this objective in mind, it is possible to borrow a common technique from the field of Machine Learning that uses a sigmoid-like activation function to transform our data set of interest. One such function is the hyperbolic tangent function (tanh), which is often used as an activation function in the hidden layers of neural networks due to its unique property of ensuring the values stay between -1 and 1. By taking the first-order derivative of our input series and normalizing it using the quadratic mean, the tanh function performs a high-quality redistribution of the input signal into the desired range of -1 to 1. Finally, using a dual-pole filter such as the Butterworth Filter popularized by John Ehlers, excessive market noise can be filtered out, leaving behind a crisp moving average with minimal lag.
Furthermore, WT3D expands upon the original functionality of WT by providing:
First-class support for multi-timeframe (MTF) analysis
Kernel-based regression for trend reversal confirmation
Various options for signal smoothing and transformation
A unique mode for visualizing an input series as a symmetrical, three-dimensional waveform useful for pattern identification and cycle-related analysis
█ SETTINGS
This is a summary of the settings used in the script listed in roughly the order in which they appear. By default, all default colors are from Google's TensorFlow framework and are considered to be colorblind safe.
Source: The input series. Usually, it is the close or average price, but it can be any series.
Use Mirror: Whether to display a mirror image of the source series; for visualizing the series as a 3D waveform similar to a soundwave.
Use EMA: Whether to use an exponential moving average of the input series.
EMA Length: The length of the exponential moving average.
Use COG: Whether to use the center of gravity of the input series.
COG Length: The length of the center of gravity.
Speed to Emphasize: The target speed to emphasize.
Width: The width of the emphasized line.
Display Kernel Moving Average: Whether to display the kernel moving average of the signal. Like PCA, an unsupervised Machine Learning technique whereby neighboring vectors are projected onto the Principal Component.
Display Kernel Signal: Whether to display the kernel estimator for the emphasized line. Like the Kernel MA, it can show underlying shifts in bias within a more significant trend by the colors reflected on the ribbon itself.
Show Oscillator Lines: Whether to show the oscillator lines.
Offset: The offset of the emphasized oscillator plots.
Fast Length: The length scale factor for the fast oscillator.
Fast Smoothing: The smoothing scale factor for the fast oscillator.
Normal Length: The length scale factor for the normal oscillator.
Normal Smoothing: The smoothing scale factor for the normal frequency.
Slow Length: The length scale factor for the slow oscillator.
Slow Smoothing: The smoothing scale factor for the slow frequency.
Divergence Threshold: The number of bars for the divergence to be considered significant.
Trigger Wave Percent Size: How big the current wave should be relative to the previous wave.
Background Area Transparency Factor: Transparency factor for the background area.
Foreground Area Transparency Factor: Transparency factor for the foreground area.
Background Line Transparency Factor: Transparency factor for the background line.
Foreground Line Transparency Factor: Transparency factor for the foreground line.
Custom Transparency: Transparency of the custom colors.
Total Gradient Steps: The maximum amount of steps supported for a gradient calculation is 256.
Fast Bullish Color: The color of the fast bullish line.
Normal Bullish Color: The color of the normal bullish line.
Slow Bullish Color: The color of the slow bullish line.
Fast Bearish Color: The color of the fast bearish line.
Normal Bearish Color: The color of the normal bearish line.
Slow Bearish Color: The color of the slow bearish line.
Bullish Divergence Signals: The color of the bullish divergence signals.
Bearish Divergence Signals: The color of the bearish divergence signals.
█ ACKNOWLEDGEMENTS
@LazyBear - For authoring the original WaveTrend port on TradingView
@PineCoders - For the beautiful color gradient framework used in this indicator
@veryfid - For the inspiration of using mirrored signals for cycle analysis and using multiple lookback windows as proxies for other timeframes
Market Cipher Screener
In recent years, the MarketCipher indicator has become more and more well-known. An expensive indicator that is suitable for trading crypto, but also stocks or Forex. The system works with already known indicators en scripts from Tradingview, but then merged into one working system. The large green and red circles play a major role in this. You can see these as buying or selling moments. I made a script that scans 40 tickers on those red and green circles, without having to buy MarketCipher. When a green or red circle is printed at MarketCipher, it also will appear in this screener. There is a green label for tickers that print a green circle and of course a red label for the tickers that print a red circle.
What's in the script?
- 40 cryptotickers are already included as standard. You can easily adjust this yourself via the wheel.
- Alerts when a new ticker meets the criteria
- The ability to move the labels so that you can load and side-by-side this script multiple times.
A few tips:
- Load the indicator multiple times to screen more tickers.
- The higher the timeframe, the more reliable the direction will be.
- Set an alert so you don't miss any opportunities.
Road map:
- Convert labels to table view.
- In the future table also implement the other components of MarketCipher.
MarketVision Screener█ OVERVIEW
• Screens 36 Assets at Once
• This Screener is Unique in that it turns my MarketVision series of Indicators Into a Complete Trading System
• To help you Automatically find Possible Turning Points in the Market the Following MarketVision Parameters are Displayed
o Linear Regression Direction and whether Price can be considered Over Bought / Sold according to the Linear Regression Channel (This works exceptionally well if used in confluence with manually drawn Fibonacci retracements)
o RSI value and Over / Very Over Bought / Sold condition
o Trend Meter – Shows Condition of the Trend Meter and its associated Trend / Money Flow Bar
o Wave Trend Crossing Condition taken from MarketVision B or Cipher B
o Wave Trend Divergences
o Super Trend Direction – Not a usual MarketVision parameter but it helps
• Furthermore you can choose where abouts on your chart you want the Screener displayed – this allows for multiple Screeners on one chart
█ HOW TO USE IT
• Look for Confluence between different parameters,
• For example Linear Regression Pointing Down and Price Over Bought according to both RSI and Linear Regression Channel, this is where you can look for maybe a Wave Trend cross down or a specific Candle Stick Pattern on you Chart with a Divergence
• Other confluences that work well are Trend Meter cross at the same time as a Wave Trend cross – Look for This Symbol "⯅ ⬱🡅⇶" or "⬱🡇⇶ ⯆"
• There are many possibilities the rest is up to you and your Trading Style / System
• Feel the Power
█ LIMITATIONS
• Can Not Set Alerts at This Stage – This is for a future Update or Script
• Slow Loading Time – As this is a rather long script Loading time is dependent on Internet Speed and your Computer Hardware
█ CREDITS
• Tradingview for the Pine Script Engine found under the hood of these amazing scripts
• QuantNomad and Others for their pioneering work making it possible to bring these sorts of advanced scripts to life
█ DISCLAIMER
• Not Financial Advice BUT
• Always use Proper Risk / Money Management – Never Risk more than you can Afford to Lose, Preferably not more than 1% - 2% of your Account
• Do Not FOMO or Revenge Trade
• Please remember that Past Performance may not be indicative of future results
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical Back Testing
Cipher B divergencies for Crypto (Finandy support)Hello Traders!
In times of high volatility, it is important to follow a market-neutral strategy to protect your hard-earned assets. The simple script employs common buy/sell and/or divergencies signals from the VuManChu Cipher B indicator with fixed stop losses and takes profits. The signals are filtered by a local trend of a coin of interest and the global trend of Bitcoin. These trends-filtered signals demonstrated better performance on most of the back- and forward- tests for USDT cryptocurrency futures. The strategy is based on my real experience, it's a diamond I want to share with you.
In terms of visualization if the background is red and the price is below the yellow line then only a short position can be opened. Conversely, if the price is above the yellow line AND the background is green only a long position can be opened.
Inputs from VuManChu you can find on the top. Frankly, I do not know how they can help you to improve the performance of the strategy. My inputs of the script you can find in "Trend Settings" and "TP/SL Settings" at the bottom.
The checkbox "Only divergencies" lets to broadcast only more reliable buy/sell signals for a cost of rare deals.
The checkbox "Cancel all positions if price crosses local sma?" makes additional trailing stop loss. Usually, this function increases the win rate by "smoothing" the risk/reward ratio, as a usual stop loss does.
You can tune SL/TP based on backtesting.
To connect the script to Finandy just edit "name" and "secret" to connect your webhook (see the bottom of the script).
The rule of thumb for the strategy is "only divergencies" - ON, high reward/risk (TP/SL) ratio, 5 min timeframe on chart help with performance.
Finally, I am looking forward to feedback from you. If you have some cool features for my script in your mind, do not hesitate to leave them in the comments.
Good luck!
Time Segmented Volume, TSV Cipher + TSITHE IDEA:
TSV is a leading indicator based on the Volume, so it can be used to dectect price movements even before other indicators.
You can read about the Time Segmented Volume and the concept how to use it here:
From my observations, it seems like you can use this indicator in the similar way to "oscilators" as well.
So the idea is to use the signal and run in trough:
1) WaveTrend - to produce "green" and "red" dots.
2) TSI
Both oscillators produce two signals that when crossed might be a buy/sell signal.
Hope you like the idea.
WARNING: Use the indicator for your own risk, it was released for educational purposes.
TradePro's Trading Idea Cipher Divergence EMA Pb StrategyHere I present you on of Trade Pro's Trading Idea: Cipher B+ Divergence EMA Pullback Strategy.
Optimized the crypto pairBTC/USDT in the 30 minute chart.
There is the possibility to switch between short and long positions.
You can choose between 2 different take profit/stop loss types: The Lowest Low/ Highest High Stop Loss/ Take Profit and the ATR Take Profit/ Stop Loss.
-----------------------------------------------------------------------------------
How does the strategy work?
ENTRY
Long
The price must be above the 200 EMA .
The price needs to make a pullback into the 50 EMA .
Right after that, the Cipher B indicator must give a buy signal, it must be below the zero line and the Money Flow cloud must be green.
Short
Contrary to the premise of long positions.
EXIT
Lowest Low/ Highest High Exit
The Lowest Low (long) / highest high (short) serves as the stop loss. The TP is formed on the basis of a factor.
(Long for example: *Lowest Low* multiplied by *Profitfactor* = TP).
ATR Exit
The value of ATR at the time of buying is multiplied by the value entered in "Profit factor ATR" and "Stop factor ATR". As soon as the price reaches this value, it is closed.
Important
The script must be optimized for each coin or currency pair. However, only the values for the profit factor, the stop loss and Lowest Low / Highest High are relevant.
Also, by changing the Chanel Length and the Chanel Average, you can create strong profit changes.
The results of the strategy are without commissions and leverage.
If you have any questions or feedback, please let me know in the comments.
If you need more information about the strategy and want to know exactly how to apply it, check out my profile. There I have created a tutorial for the function of the script.
MarketVision BWith Special Thanks to Everyone who has gone before me, and who have both allowed me given me permission to bring my version of Market Cipher to the World
Especially LazyBear for his amazing Wave Trend Oscillator and for Aevir, falconCoin, vumanchu, Crypto_Spike and others who have freely brought MarketCipher to the Tradingview Community
Also special mention to RicardoSantos for his Divergence script
MarketVision B - My take on MarketCipher B / Market Cipher B, Ive just put outlines on the Wave Trend to add to the Visual Appeal and Added a Trend Meter and a few more options for the Oscillators
Nice To Look At
Oscillator 1 Choose Between - RSI, MFI and Ultimate Oscillator
For Stochastics Choose Between Standard and RSI Stochastics and for the source you can choose On Balance Volume
Wave Trend
Money Flow
Trend Meter & Signals Bar
Divergences are marked, However they are easy to spot and it is better to train your eyes to spot them before the indicator marks them out
Lots of Alerts and Loads of ways to trade using MarketVision
PS: You can make this look like the original by adjusting the parameters in the menu