Swing Action PriceEnglish:
**Description of "Swing Action Price" TradingView Script**
"Swing Action Price" is a custom technical indicator designed to identify swing highs and swing lows in a financial market. The script calculates and plots various lines on the chart to visualize these swing points. Swing highs are points where the price has made a local peak, while swing lows are points where the price has made a local trough.
The indicator displays the following lines on the chart:
1. Dotted lines representing each individual swing high and swing low identified on different timeframes (10, 30, 60, 100, 150, 200, 700, and 1000 bars).
2. Dotted lines representing the most recent swing high and swing low for the current bar.
How the indicator works:
1. The script uses historical price data to calculate swing highs and swing lows based on specific conditions.
2. For each of the mentioned timeframes, the indicator identifies the highest high and lowest low within a defined number of bars (10, 30, 60, etc.).
3. Once a new swing high or swing low is identified, the corresponding dotted lines are drawn on the chart, extending from the previous swing point to the current one.
The "Swing Action Price" indicator can be used by traders to visually identify key support and resistance levels in the market. It helps them recognize potential trend reversals or continuation points, which may be valuable for making trading decisions.
Please note that trading indicators should always be used in conjunction with other technical and fundamental analysis tools to make informed trading choices. The "Swing Action Price" indicator is offered under the Mozilla Public License 2.0, and the developer's username is "damianjorgeportillo."
Remember that past performance is not indicative of future results, and it's essential to exercise caution and apply risk management strategies when trading financial markets.
/******************************/
Spanish:
**Descripción del Script "Swing Action Price" en TradingView**
"Swing Action Price" es un indicador técnico personalizado diseñado para identificar máximos y mínimos en un mercado financiero. El script calcula y muestra diversas líneas en el gráfico para visualizar estos puntos de inflexión. Los máximos se producen cuando el precio alcanza un pico local, mientras que los mínimos ocurren cuando el precio alcanza un valle local.
El indicador muestra las siguientes líneas en el gráfico:
1. Líneas punteadas que representan cada máximo y mínimo individual identificado en diferentes marcos de tiempo (10, 30, 60, 100, 150, 200, 700 y 1000 barras).
2. Líneas punteadas que representan el máximo y mínimo más reciente para la barra actual.
Cómo funciona el indicador:
1. El script utiliza datos históricos de precios para calcular los máximos y mínimos en función de ciertas condiciones.
2. Para cada uno de los marcos de tiempo mencionados, el indicador identifica el máximo más alto y el mínimo más bajo dentro de un número específico de barras (10, 30, 60, etc.).
3. Una vez que se identifica un nuevo máximo o mínimo, se dibujan las líneas punteadas correspondientes en el gráfico, extendiéndose desde el punto de inflexión anterior hasta el actual.
El indicador "Swing Action Price" puede ser utilizado por traders para identificar visualmente niveles clave de soporte y resistencia en el mercado. Ayuda a reconocer posibles puntos de inversión o continuación de tendencia, lo que puede ser valioso para tomar decisiones comerciales.
Por favor, ten en cuenta que los indicadores de trading siempre deben utilizarse junto con otras herramientas de análisis técnico y fundamental para tomar decisiones comerciales informadas. El indicador "Swing Action Price" se ofrece bajo la Licencia Pública de Mozilla 2.0, y el nombre de usuario del desarrollador es "damianjorgeportillo".
Recuerda que el rendimiento pasado no garantiza resultados futuros, y es esencial ser cauteloso y aplicar estrategias de gestión de riesgos al operar en los mercados financieros.
Swingtrading
Swing Algo V1.4◆ Introduction
The latest version of the Swing Algo features a complementary system consisting of two internal swing trading logics: an enhanced Swing Algo V1.3 and a secondary control engine to stabilize the overall strategy behaviour in times of increased market chop. Both algorithms feature different averaging lines as well as oscillators, leading to a higher strategy diversification for swing trading as well as a reduced maximum drawdown in comparison to each stand-alone strategy.
While the Swing Algo V1.x series so far featured a single trend-following swing algorithm for each release, where one just switches between Long and Short trades based on one general logic, here two strategies, which act independently of each other, are applied. Due to this, we introduce a third position a trader can be in: the Hedge. The overall logic is as follows:
When both sub-logics are Long, the overall strategy is Long.
When both sub-logics are Short, the overall strategy is Short.
When one sub-logic is Long and the other is Short, the overall strategy is in a Hedge position. It doesn't matter which component is Short and which is Long.
As PineScript doesn't currently offer a real steady hedging-function for two competing swing trading sub-logics (in the sense of a continuously applied Hedge state after hedging conditions are met at least once for an entry), a workaround via position closes was created for this release. For each new internal sub-signal, the overall strategy changes its state (Long/Short/Hedge) visibly on the chart, and the trader can adjust their position accordingly.
For detailed differences to previous Swing Algo V1.x releases, see further below.
◆ Purpose of this Script
This indicator will give Long, Short and Hedge signals on the chart that can be used for e.g. swing trading. Each of the aforementioned sub-logics uses a combination of several (custom) functions and rules to find good entry points for trend trading. After many iterations and tests I came up with this particular setup, which is highly optimized for the ETH/USD trading pair on the daily (D) timeframe.
Attention was also paid to stability, as all parameters are set onto plateaus, so that smaller changes in the characteristic price action should not affect the efficiancy too much, done as an attempt to reduce overfitting as much as possible. Additionally this dual algorithm system is specifically designed to have a safety net: should for the unlikely scenario one swing trading algorithm not trigger at a certain mid-term reversal point, the probability is high that the other will trigger, resulting in an overall hedged position (so that no money is lost in the meantime) until the first algorithm can rejoin at the next mid-term trend change.
For other assets and/or timeframes it is in principle possible to change algorithmic parameters within the indicator settings to tune the swing algorithms, though it is strongly recommended to use the standard asset and timeframe mentioned above.
◆ Viability
For the here presented backtest data, we omitted the biggest portion of the cryptocurrency bullrun in 2017 (starting only at 1st July 2017) so that the results become more realistic for long-term swing traders (investing at least 2-4 years into trading) if such large runs do not happen again. As cryptocurrencies like Ethereum are still to this date capable of doing comparatively smaller runs of about 2-3x in a few weeks/months during accumulation phases (as witnessed e.g. in 2020 and more recently in 2023) and bigger runs during bullmarkets (as witnessed in 2021), the quality of the shown results is still realistic for long-term trend trading efforts over several years, Note that very conservative trading parameters as mentioned below in "Forwardtesting and Backtesting" are used here.
Generally do not expect results in a matter of days or weeks, and of course as with any trading strategy past performances are not indicative of future results.
◆ Forwardtesting and Backtesting
The individual components have been back- and partially forwardtested: The first sub-logic is an advancement of Swing Algo V1.3, with which we have extensive experience running back to October 2020 for its release, while the secondary control strategy, which was privately published for DeanTrader members as a stand-alone script on TradingView in June 2022 and was running in the background since then, is showing good & expected behaviour so far.
While this does not mean that fowardtesting was performed specifically for the combined Swing Algo V1.4 system we have now (which cannot be done realistically considering the timeframes used, i.e. months and especially years), we can at least look at some considerable experience with the individual components. Then again, as I have implemented an exact hedging-function so that both sub-algorithms run independently from each other, it is not likely to see any unexpected behaviour resulting purely from the combination into one script.
For strategy backtesting you can choose the backtest time interval to test the performance of this algorithm for different time windows and different trading pairs. Here various backtesting parameters (e.g. trading fees) can be customized. Default settings for the shown backtest are a starting balance of $1000, a slippage of 20 ticks (= $0.20) and a trading fee of 0.05 % (which is the worst taker fee on the Kraken Pro futures exchange) to have realistic settings. However as we do not conduct many trades with this strategy, fees should not impact our performance too much. As long-term swing traders, we at DeanTrader generally devote one initial portion of our portfolio to swing trading and from then on always use 100% of this portion for the next trade to get the compounding starting. This is in difference to other trading styles which use various, often very small, percentage values for their short- or mid-term trades. Please note that for the here presented backtest only 10% of compounded equity is used for each successive trade to show an estimation for a lower risk & lower reward approach . Keep this in mind when evaluating the backtest data. You can set appropriate values for each backtest parameter in the "Properties" setting menu of the strategy, including the order size percentage of equity value for your trades. Also note that due to the small number of trades the statistical significance is low. It is not possible to gather an abundance of long-term trend signals in the order of hundreds or thousands trades, as much more time would have to pass for this in the case of rather new assets like Ethereum.
Additionally to the TradingView Strategy Tester you can also plot your equity directly on the chart to get a sense for the performance. For this you can also scale the equity graph to e.g. match the starting point of your equity with some price point on the chart to get a direct comparison to 'Buy & Hold' strategies over time.
This indicator (and all other content I provide) is no financial advice. If you use this indicator you agree to my Terms and Conditions which can be found on my website linked on my TradingView profile or in my signature.
◆ Visual Representation on the Chart
Shown below is a screenshot of how the chart looks like when the strategy is applied. Here we can see two different averaging lines, where each line belongs to one of the two sub-logics respectively. Note that this is not a MA-crossover strategy, and the crossing of the lines is not accounted for in the code at all and therefore has no effect on the strategy's signal output. Also note that the price scale is set on logarithmic.
The space between the lines is filled with a faint background color as a rough visual indicator. Magenta-colored fills indicate zones where only Short or Hedge signals can appear, while green-colored fills indicate zones where only Long or Hedge signals can appear. Gray-colored fills mark zones where only Hedge signals can appear, which also means that Hedge signals can appear in any zone. So treat those background fills more as a visual aid to roughly know what can happen next, but pay most attention to the actual signals (with arrows) that appear on the chart.
◆ Differences to Other Versions
Consists now of two competing sub-algorithms instead of just one algorithm. The new system outputs Long, Short and Hedge signals instead of just Long and Short signals.
The first sub-logic is the spiritual successor of the original Swing Algo V1.3 release, with a modified oscillator part.
The second sub-logic serves as a control algorithm (while still having equal rights in terms of strategy impact), newly introduced to the Swing Algo series, but already forwardtested for roughly a year at time of release.
Lowers risk significantly by diversifying swing trading strategies, so that for the rare scenario of a missed trend on one sub-algorithm, losses are prevented as the overall strategy is hedged during that time.
Lowers risk further as the maximum drawdown of the combined strategy is reduced by roughly 1/3 in comparison to each stand-alone strategy while almost retaining the same net profit over a 6-year backtest compared to the first, leading sub-logic.
No guesswork anymore when to use which short leverage (1x corresponding to a Hedge, or 2x corresponding to a Short with an asset-value-change-to-gain-proportionality of -1) as it is clearly defined within the trading system via the displayed signals. In earlier Swing Algo versions, the short leverage for any particular Short signal had to be chosen by hand dependent on market sentiment, which required further market analysis, or was fixed at 2x, leading to less flexibility.
◆ Access
For access please contact me via DM on TradingView or via other channels (linked on my TradingView profile and in my signature).
ChanLun [AlgoTrader]ChanLun, also known as Entanglement Theory or "缠论," is a highly regarded technical analysis methodology that originated in China. Since its introduction in 2006, ChanLun has rapidly gained significant attention and a strong following within the Chinese trader community due to its exceptional ability to navigate complex market dynamics.
ChanLun places great emphasis on market structure, price action, momentum, and the intricate interplay between market forces. It recognizes that the market operates in cyclical patterns and aims to capture the underlying structure and rhythm of price movements. Through meticulous analysis of the intricate relationships between price and time, it provides traders with a unique perspective on market trends, potential reversals, and critical turning points.
This indicator incorporates three fundamental components of the ChanLun methodology, namely "Candle Standardization," "Fractal," and "Stroke."
- "Candle Standardization" is a process in which the candles are standardized to ensure strict directional consistency and eliminate the presence of inner bars or outer bars.
- "Fractal" refers to the formation of three consecutive "standardized" bars, with the middle bar demonstrating a definitive higher or lower value compared to the bars surrounding it.
- "Stroke" is a line connecting a top fractal and a bottom fractal, subject to the strict condition that there is a minimum of one free bar positioned between them. This requirement ensures that a stroke encompasses a minimum span of five bars from end to end. It is crucial to emphasize that the top fractal consistently maintains a higher value than the bottom fractal.
Within the ChanLun algorithm, these components are processed meticulously and sequentially. The initial step involves candle standardization, where the candles are harmonized to adhere to strict criteria. Subsequently, the identification of fractals takes place by examining the standardized candles. Finally, the stroke component is applied, establishing connections between top and bottom fractals while ensuring the defined conditions are met.
The final component, stroke, enables traders to identify and visualize significant price swings or trends while effectively filtering out minor fluctuations. This functionality proves particularly valuable in recognizing major support and resistance levels, trend reversals, and chart patterns, enhancing the overall analysis process.
__________________________________________________________________________________________________________
本指标严格按照缠论原理实现了三个核心要素,分别为“K线标准化”、“分型”和“笔”。它旨在为缠友们提供准确而可靠的市场分析工具,以在交易中获得更好的表现。
该指标的特色如下:
1. 实时标记分型和笔:本指标具备实时识别和标记分型和笔的功能,以提供清晰的信号和准确的趋势判断。
2. 多种笔算法选择:本指标提供三种不同的笔算法,包括“老笔”、“新笔”和“4K”。这样的设计能够满足不同缠友的个性化需求,让大家根据自己的偏好和策略选择最适合的算法。
3. 自定义颜色:缠友们可以根据自己的喜好和需求,自定义指标的颜色方案。这样的灵活性使得指标能够与图表风格和视觉需求完美匹配。
4. 完美实现K线回放功能:本指标充分利用了K线回放功能,使缠友们能够回顾和分析历史市场数据,从而可以更好地研究和理解市场趋势,提高对市场的洞察力和决策能力。
7 Closes above/below 5 SMAThis script looks for 7 consecutive closes above/below the 5-period SMA. The indicator is inspired by legendary trader Linda Raschke's work.
Usage
The script can can be used in three main ways. I think you will find more uses.
First are the two models for which the indicator was created, both inspired by Raschke:
1) Persistency of trend / Extended run setup.
Around 10-12 times per year we get a persistency of trend in instruments in general.
After 7 consecutive closes above/below the 5-period as price pulls back we can look to enter in the direction of the main trend as it moves up/down above/below 5 ma again. You should use price action trading to pinpoint the entries. Now try to hold this as long as possible. Way longer than you can percieve or think is possible. Up to 24-28 periods is what we are looking for in these cases.
2) Normal usage.
When the trend is not persistent, it is possible to use this as an oscillating signal, for a shorter term trade, where we can look for a short or long term reversal setup in price action.
3) I also use it at as a learning to see the swing trades clearer. You can also use it as a visual aid for developing new variances of the classic swing trading setup.
Read and listen to Linda Raschkes work to learn more.
TIme frames
The principles works in all time frames but may change depending on calendar differences. We will see more instances/year in shorter time frames.
Why closes above the 5 SMA
As you may or may not know the 5 SMA is a very important indicator. You can think of it like this, If price is above 5, it is innocent until proven guilty but if price is below 5 we use the french law system which means it is guilty until proven innocent. 7 closes above 5 is a very good predictor of possible short term direction changes.
Use together with:
I prefer to use this indicator together with either regular SMA:s, one short and one macro term. For example 10 ma and 100 ma.
Or you can use it with a a Hull 21-period MA together with a 240-period WMA.
Settings:
I added settings so you can change preferences for changing shape, where to display the shape and in what color
Visual aid
I wanted to keep one dot for each consecutive day, this way we will get a grouping of days and dots. The amount in this group can be of use in itself to inform you of the strength of trend. This can inform you if this oscillation predicts a short term eversal or a continuation. You need skills in reading price action to use this to your advantage.
SwingConfidence ScoreSwingConfidence is a scoring system that helps us quantitatively manage risk & position size in swing trading.
SwingConfidence uses T3 moving average to determine the swing state in which the instrument is in. So, this is supposed to be used with my previously posted Simple Swing with T3MA indicator . The T3MA ribbon consists of a fast and a slow moving average (MA). The ribbon is green when the fast MA is above the slow MA. This green ribbon represents the upswing. Similarly, the red ribbon represents the downswing.
The score takes into account the swing state of 2 chosen benchmark indices (by default, these are NIFTY & CNXSMALLCAP). It has 2 components:
- Weekly Swing
- Daily Swing
Weekly Swing
The script uses the Simple Swing indicator on weekly charts of of 2 benchmark indices to determine whether the index is in a weekly upswing or downswing.
- If the color of the weekly ribbon is green, we are in a weekly Upswing.
- If the color of the weekly ribbon is red, we are in a weekly Downswing.
Daily Swing
The script uses the Simple Swing indicator on daily charts of 2 benchmark indices to determine the daily swing state. There can be any one of total 6 swing states on a daily chart:
- Early Upswing (close above red ribbon)
- Confirmed upswing (green ribbon)
- Upswing under strain (close inside green ribbon)
- Early Downswing (close below green ribbon)
- Confirmed downswing (red ribbon)
- Downswing under strain (close inside red ribbon)
SwingConfidence Scoring
The script prints the Weekly & Daily Swing states, & assigns a score to each index from 0 to 50, where 0 is the most bearish score, & 50 is the most bullish score. The sum of the scores is the final SwingConfidence score. e.g. If both indices are in a confirmed upswing, then the score reads 50 + 50 = 100.
How to use the SwingConfidence score?
There are multiple ways by which we can use the SwingConfidence score:
- If the SwingConfidence value is 100%, then we can go in with the maximum open risk our strategy allows. As the score starts decreasing, we keep on closing/modifying our positions, so as to keep the open risk proportionately down. Once the score reaches to zero, we must not be having any open risk. We can achieve this by either going in all-cash, or bringing the stop losses to breakeven.
- Another way is to use this is via a progressive exposure method. If the SwingConfidence value is 100%, then we go with full position size (e.g. 1% capital-at-risk). If the value is 0%, we sit out in cash. Between these 2 extremes, we reduce/increase our position size accordingly.
Please note that this script will display only on the daily timeframe.
Damage Indicator by Scipio ProScipio Pro's Damage Indicator detects strong momentum on tops and bottoms. It is intended for swing trading.
The script analyzes both recent and less-recent price action and performs candle stick analysis. It also uses SDs and multiple Bollinger Bands to find dynamic levels for entries.
A Bears Damaged signal emerges whenever there is convincing proof of strength at a bottom. Often, when the market reverses quickly, traders are caught offside and are forced to buy higher. The reverse goes for Bulls Damaged signals, which mean there is convincing proof of bearish strength at a (local?) top.
Whether the move gets legs depends in large part on the structure in which the show of momentum takes place. It is sensible to wonder after each signal whether the market structure (and other relevant context such as the majority of cash having been sidelined) dictates that risk-reward is skewed to the upside or to the downside. If, for example, a Bears Damaged signal emerges on the daily and risk-reward on the weekly is skewed to the upside, go 4x larger (again, just an example). If, on the other hand, the same signal emerges on the daily while the risk-reward is skewed to the downside on the weekly, bet much smaller and tighten your stop-loss. For best results, I suggest you always check one timeframe higher for your long-term risk-reward bias. (No financial advice, of course.)
Under Settings you'll find the so-called Noise Protection , which is switched "on" by default. We recommend you keep this switched on. Noise Protection ensures you do not see Damage signals on timeframes lower than the 4 hour. After all, chasing momentum on low timeframes is a losing game. The amount of noise increases exponentially as you move lower down the timeframes. Again, this indicator is for swing trades. Don't use it for scalping.
It should be useful for all assets, but is of course more useful on some than on others. As with all indicators, signals tend to be more meaningful if the asset in question is at least somewhat liquid, for instance.
As always, use at your own risk. Using indicators is no substitute for using one's brain.
Excess Invites Punishment (EIP) by Scipio ProScipio Pro's EIP is a reversal indicator. It is based on two types of evidence.
1) Proof of Fatigue -- The move that triggers the signal is losing momentum
2) Proof of Excess -- The move that triggers the signal is excessive
If both are the case, we get a signal.
The script uses standard deviations and Bollinger Bands for measuring excess and the ATR for the Breakout Continuation Protection (see below). For fatigue, the EIP detects divergences from indicators like OBV, MACD, RSI and more. It expresses these with a number. For example, if the EIP detects 9 bullish divergences, it prints the number 9 below the corresponding candle.
Hesitant Buy and Hesitant Sell mean there may have been a breakout recently, as measured with the ATR, meaning there is an increased likelihood of continuation. These can provide good buys or sells but more caution is warranted. You can adjust the so-called Breakout Continuation Protection in Settings. Doing so may lead to either more or less "hesitant" signals.
The signals don't repaint. Of course, the divergences get recalculated as the market evolves, as they should. But signals like Buy, Sell, Hesitant Buy, and Hesitant Sell never repaint.
The EIP is useful on many different time-frames and with many different assets, be they in stocks or crypto. The images below show results from BTC, MATIC, and S&P 500 over multiple years, both on small and large time-frames.
As always, use at your own risk. Using indicators is no substitute for using one's brain.
52 Week High/Low FibonacciThe primary purpose of this indicator is to calculate and plot the 52-week high and low prices along with the Fibonacci retracement levels on the price chart. Fibonacci levels are commonly used in trading to identify potential support, resistance, and price reversal points.
First, the script initializes the Fibonacci levels and their corresponding colors, which will be used to plot the levels on the chart. Next, it calculates the 52-week high and low prices by finding the highest and lowest prices over the last 252 trading days, approximately equivalent to one year. Then, it identifies the overall trend direction by comparing the number of bars since the highest high and the lowest low. If the highest high is more recent, the trend is considered downwards; if the lowest low is more recent, the trend is upwards.
The script then plots the Fibonacci retracement levels on the chart, using horizontal lines at the respective price levels. It also creates labels for each level, displaying the percentage and the price value. Additionally, it draws a line connecting the 52-week high and low prices, providing a visual representation of the price range during the 52-week period.
Pros of this indicator include:
-Automatic calculation and plotting of Fibonacci levels, saving time for traders
-Clear trend identification based on 52-week high and low prices
-Visually appealing and easy-to-read chart representation with color-coded levels
-Provides insight into potential price reversal areas based on widely used Fibonacci levels
Cons of this indicator include:
-Only works on daily timeframes, limiting its usefulness for intraday and weekly traders
-Assumes that the trend will continue in the same direction, which may not always be accurate in real-world markets
-Does not provide explicit buy or sell signals, leaving the trading decision-making process up to the trader
-Solely relies on Fibonacci levels, which may not always be accurate; it is recommended to use other technical indicators or strategies alongside this indicator for a comprehensive trading approach
In conclusion, the '52 Week High Low Fibonacci' indicator is a valuable tool for traders interested in using Fibonacci levels for identifying potential price reversal points. By automatically calculating and plotting these levels based on 52-week high and low prices, the indicator provides a clear, color-coded visual aid, which can be especially helpful for traders who base their strategies on these levels.
However, it's worth noting that this indicator is limited to daily timeframes and doesn't provide explicit buy or sell signals, requiring traders to incorporate their own analysis and judgement in their decision-making process. The indicator also operates on the assumption of trend continuation, which may not always hold true.
While it's a beneficial tool, relying solely on this indicator for trading decisions may not be advisable. It's best used in conjunction with other indicators and trading strategies, providing a more balanced and comprehensive approach to trading in the financial markets. As always, risk management should be a key part of any trading strategy.
**YOUR INSIGHTFUL FEEDBACK OR SUGGESTIONS FOR REVISIONS TO THIS CODE ARE HIGHLY APPRECIATED. PLEASE FEEL FREE TO SHARE YOUR THOUGHTS TO FOSTER ITS CONTINUAL IMPROVEMENT**
TrendDECODER by MetaSignalsProTrendDECODER
The fastest indicator to detect trends and price ranges
-------------------------------------------------------------------
✔️ Identify ranges and the next probable direction
✔️ Get the earliest signals and the strength of Trends
✔️ Get clear exits signals before reversal
✔️ Spot the Fibo levels the price will test
-------------------------------------------------------------------
📌 What is it about ?
--------------------------
TrendDECODER is a concentrate of multiple innovations to make Trend following simple and easy.
Please see in the 🛠️ Calculation & Precisions section at the end of this page to know more how they work.
👉 With the GreyBox - identify when the market gets out of the Trend with a new sequence of transition. Check if the market is in Range, Continuation or Reversal (Up or Down) and wait for the closing of the box to get the Trend signal.
👉 With the DecoderSignals & Blue/Orange Clouds - once the GreyBox has delivered its message, get the new direction of the Trend and see the probable zones of pull backs during the current direction.
👉 With the Projective TrendLine - see before it happens the direction and the possible angle of the Trend with its probable range.
👉 With the RealTime TrendLine vs the Projective TrendLine - adjust immediately if the market accelerates North or South.
👉 With the RealTime TrendLine Crossing - detect at the earliest the moment the Trend gets out of track, to get out of the train.
👉 With the FiboLevels - spot immediately which price levels the market will test.
📌 For which asset?
-----------------------
TrendDECODER is universal : it works fine on all assets and all time-frames;
☝️ always work on a multi-timeframe environment to minimize risk;
📌Why we made these innovations?
---------------------------------------------
Because the trend indicators that we know, lag a lot and do not clearly identify ranges!
We need much more powerful tools than Supertrend or a couple of moving averages crossings to get this done.
📌 How to trade with TrendDECODER?
----------------------------------------------
🔹 Strategy #1: Trend Following : DecoderSignals & Blue/Orange Clouds
----------------------------------------------------------------------------------------
The GreyBOX has given the next probable movement and the Signal of a Trend in on.
The RealTime TrendLine guides us on the pace of this movement and the Blue/ Orange/Cloud figures the support/resistance of this movement.
It will be wise not to jump immediately in the Trend as the signal appears as the price will very probably make a pullback in direction of the cloud first.
🔹 Strategy #1: Checklist
📍 Set a Multi Time Frame environment
📍 Main Time Frame and the Upper Time Frame are moving in the same direction (Up or Down)
📍 Main Time Frame: appearance of the « TrendUp Signal » or the « TrendDown Signal »
📍 Entry:
☝️ buying « at Market » immediately on a « Trend Signal » is quite risky as many times the price will pull back near the Clouds
👉 a good option is to buy 1/2 the position at market on signal
👉 and 1/2 after the first pull back
📍 First Stop Loss: place your SL under the lower border of the GreyBox for an expected TrendUp or the higher border for an expected TrendDown
📍 BreakEven: when the price reaches your Risk/Reward ratio of 1 = Distance StopLoss vs Entry = Distance Current Price vs Entry
📍 Trailing Stop: just under the lowest border of the Blue Cloud (TrendUp) or the highest border of the Orange Cloud (TrendDown)
📍 TakeProfits: in a TrendUP, place your take profits just under the FibosLevels in order not to get exited (and above in a TrendDOWN)
📍 Exits:
👉 Early option : Crossing of the RealTime TrendLine
👉 Late option : Crossing of the Blue/Orange cloud
🔹 Strategy #2: Early Trend following : RealTime TrendLine Crossing
-------------------------------------------------------------------------------------
With this simple tool, get a very early signal of a probable inversion of the current Trend, way before the Decoder Signal is shown, once confirmed by the GreyBOX.
🔹 Strategy #2: Checklist
📍 Set a Multi Time Frame environment
📍 Main Time Frame and the Upper Time Frame are moving in the same direction (Up or Down)
📍 Entry (Main Time Frame): wait for the Close crossing over the ReaTime TrendLine in an expected TrendUp (under for a TrendDown )
📍 First Stop Loss (Main Time Frame):
👉 place your SL under the lower low of the GreyBOX (for an expected TrendUp) or the higher high (for an expected TrendDown)
📍 BreakEven: move your SL to Entry price when the price reaches your Risk/Reward ratio of 1 = Distance StopLoss vs Entry = Distance Current Price vs Entry
📍 Trailing Stop: just under the lowest border of the Blue Cloud (TrendUp) or the highest border of the Orange Cloud (TrendDown)
📍 TakeProfits: in a TrendUP, place your take profits just under the FibosLevels in order not to get exited (and above in a TrendDOWN)
📍 Exits:
👉 Early option : Crossing of the RealTime TrendLine
👉 Late option : Crossing of the Blue/Orange cloud
🎛️ Configuration
---------------------
Well, basically you do not have to do anything !
But you can make TrendDECODER perfectly yours with a few switches in the configuration panel to make appear or disappear each one of the elements composing TrendDECODER.
🛠️ Calculation & Precisions
------------------------------------
🔹 Blue/Orange Clouds
The Blue/Orange Clouds are a proprietary synthesis of Price Action and Volume Exchange in real time.
🔹 Projective TrendLine
As soon as a new high or a new low has been reached during the last move, TrendDECODER traces a possible angle of the future movement based on the pace of the last one in the same direction.
The distance between the Projective TrendLine and the Last Lowest (resp. Highest) gives you a possible bottom (resp. top) of the price range.
🔹 RealTime TrendLine
As soon as the Decoder GreyBox has delivered its information i.e Range/Continuation/ReversalUp/ReversalDown and that a New High (resp. New Low) has been reached, the RealTime TrendLine starts to show the pace and the angle of the new movement based on a linear regression adanced concept.
The angles of the Projective and the RealTime TrendLine can be identical, telling you that the market moves smoothly in a global consensus. It can be a smart Trailing Stop Loss.
Or these angles can be very different and it will call your maximum attention. You might want to switch to a superior timeframe to get the bigger picture.
🔹 FiboLevels
Once a new Trend is signaled, the levels of Fibonnaci are automatically placed.
They are calculated on the last Highest and Lowest of the former movement.
Normalized KAMA Oscillator | Ikke OmarThis indicator demonstrates the creation of a normalized KAMA (Kaufman Adaptive Moving Average) oscillator with a table display. I will explain how the code works, providing a step-by-step breakdown. This is personally made by me:)
Input Parameters:
fast_period and slow_period: Define the periods for calculating the KAMA.
er_period: Specifies the period for calculating the Efficiency Ratio.
norm_period: Determines the lookback period for normalizing the oscillator.
Efficiency Ratio (ER) Calculation:
Measures the efficiency of price changes over a specified period.
Calculated as the ratio of the absolute price change to the total price volatility.
Smoothing Constant Calculation:
Determines the smoothing constant (sc) based on the Efficiency Ratio (ER) and the fast and slow periods.
The formula accounts for the different periods to calculate an appropriate smoothing factor.
KAMA Calculation:
Uses the Exponential Moving Average (EMA) and the smoothing constant to compute the KAMA.
Combines the fast EMA and the adjusted price change to adapt to market conditions.
Oscillator Normalization:
Normalizes the oscillator values to a range between -0.5 and 0.5 for better visualization and comparison.
Determines the highest and lowest values of the KAMA within the specified normalization period.
Transforms the KAMA values into a normalized range.
By incorporating the Efficiency Ratio, smoothing constant, and normalization techniques, the indicator actually allows for the identification of trends on different timeframes, even in extreme market conditions.
The normalization makes it much more adaptive than if you were to just use a normal KAMA line. This way you actually get a lot more data by looking at the histogram, rather than just the KAMA line.
I essentially made the KAMA into an oscillator! Please ask if you want me to code another indicator
I hope you enjoyed this.
Please ask if you have any questions<3
User Defined Momentum Change with Swing VisualsThis script is a groundbreaking, math-centric technical analysis tool that blends two well-established indicators, the Stochastic Oscillator and the Exponential Moving Average (EMA), to deliver a unique and visually engaging way of identifying momentum swings and stochastic indicators. Unlike mashups, this script is tailored to accommodate a wide range of trading strategies, providing traders with a distinctive perspective on market trends.
The innovation in this script lies in its mathematically-driven ability to effectively combine the Stochastic Oscillator and EMA, setting it apart from other available tools that simply offer a rehash of old ideas or slight modifications to popular indicators. The EMA is employed instead of a Simple Moving Average (SMA), enhancing the uniqueness of the calculations. This novel approach creates a new dimension for traders to evaluate potential momentum swings and visualize them on the chart, proving it to be more than just a mere mashup of existing indicators.
Central to the script's utility is its extensive customization options, which allow traders to adjust various inputs to suit their preferences and trading strategies. Users can modify the EMA length, swing range signal offsets, and smoothing factors for both the fast and slow components of the Stochastic Oscillator. Additionally, the script offers the ability to personalize the color thresholds, transparency, and line properties for the Stochastic Oscillator and swing range signal.
This script's visually dynamic representation of momentum swings empowers traders to make more informed trading decisions, particularly on the 6-hour timeframe. The swing range signal, represented by vertical lines on the chart, acts as a valuable visual aid for identifying potential entry or exit points. Furthermore, the Stochastic Oscillator provides insights into the strength and direction of momentum, which is beneficial for confirming potential trade signals.
To conclude, this script is not just another combination of MAs or a slightly modified version of a popular indicator. Instead, it offers traders a comprehensive, visually appealing, and customizable tool for technical analysis, which is both original and useful. By uniquely combining the EMA and the Stochastic Oscillator with a strong mathematical foundation, and allowing traders to adjust a variety of settings, this script adds value to the TradingView community and enhances the body of knowledge available for traders. It is designed to support traders in tailoring their analysis based on their own strategies and preferences, enabling them to make well-informed decisions in the financial markets.
Swing Data - ADR% / RVol / PVol / Float % / Avg $ VolThis table presents consolidated data that swing traders can refer to quickly for their benefit. I am of the firm belief that the information provided in this uncomplicated table is precisely what you require to optimize your trading efficiency, and ultimately, profitability.
The data includes;
1. Market Capitalization - a measure of the total value of a publicly traded company's outstanding shares.
2. Float % - the percentage of a company's outstanding shares that are available for trading on the open market. It is calculated by dividing the number of a company's outstanding shares that are available for trading on the open market by the total number of outstanding shares. A lower float percentage generally means that there are fewer shares available for trading, which can lead to increased volatility in the stock price. On the other hand, a higher float percentage generally means that there are more shares available for trading, which can lead to greater stability in the stock price.
3. ADR% - a technical analysis indicator that measures the average daily price movement as a percentage of its current price. It is calculated by taking the difference between the average high and low prices for a time period, and then dividing it by the current price. The resulting value is then multiplied by 100 to give the ADR% for that day. The ADR% can be useful for traders to assess the potential volatility of a stock. A higher ADR% indicates a greater potential for price movement.
4. ATR - measures the range of price movements of an asset over a specified period of time, taking into account any gaps in price. It is calculated by taking the highest value of the following three values:
The difference between the current high and the current low
The absolute value of the difference between the current high and the previous close
The absolute value of the difference between the current low and the previous close
The resulting value is then averaged over the specified period of time to create the ATR value. This indicator is reflects the average volatility of the asset over the specified period of time.
5. LoD dist. - also refer to Low Of Day distance, a range level gauge of current price based on historical volatility of the price movement, in this case I use ATR. for the historical volatility. Please find below as example for the calculation.
eg. LoD dist. = 104%
Current price (A) = $24.49
Low Price (B) = $22.16
Difference (A) - (B) = $2.33
ATR = $2.25
LoD dist = $2.33 / $2.25 = 103.55% (round up to nearest whole number = 104%)
6. Average Daily $ Volume - used to measure the average amount of money that is traded in a stock or a security over a particular period of time, typically a day. It is calculated by multiplying the average daily trading volume of a security by its average price.
7. Average Daily Volume - used to measure the average no. of share that is traded in a stock or a security over a particular period of time, typically a day.
8. Projected Volume - an estimate of the total volume of trading activity that is expected to occur for the day (from the specific time data), based on an average volume over a specific period of time. Projected volume can be used by traders and investors to help make informed decisions about buying or selling securities, and can also be used as an indicator of market sentiment and volatility. However, it's important to note that projected volume is an estimate and actual trading activity may vary.
9. Relative Volume - a measure of the volume of a stock that is trading at the specific time, relative to its average trading volume over a longer period. It is expressed as a percentage and is often used by traders and investors to identify stocks that are trading with higher or lower than usual volume.
Cyatophilum Bands PresetsThis is a pre-configured strategy for swing trading Bitcoin on the 2 hours chart, Ethereum on the 4 hours, and BNB on the 2 hours. (More presets can be added later on)
Built upon my generic indicator "Cyatophilum Bands D.E.", this indicator removes the struggle of having to copy all the settings, instead, a single dropdown input lets you choose the preset.
More info about the complete strategy here:
The strategy has been backtested over 5 years of historical data and forward tested for +4 months (since january 2023) with the goal to beat buy and hold returns .
The indicator shows real time strategy results and has custom alerts for BUY and SELL signals which can be used to automate the strategy.
When creating your alert, first set your alert messages in the indicator settings. Then, select the indicator and create the alert using "alert() function calls only".
A warning will appear on the chart if the preset and chart configuration is incorrect.
Plots like bands and trailing lines are disabled by default to improve performance but can be turned on in the style tab.
BNBUSDT 2H
A combination of deviation and ATR bands based on Donchian channels.
ETHUSDT 4H
A combination of deviation and ATR bands based on SMA and an ATR trailing stop.
BTCUSDT 2H
Based on Donchian channels breakout type with a tight 2% stop loss, and a 3% take profit that gets disabled when price is trending up to let the trailing stop do its job.
Disclaimer: Backtest results are not representative of future results.
Effortless ContinuationIntroduction:
The Effortless Continuation Indicator is a technical analysis tool designed for traders to identify potential buy and sell signals in the market. This indicator combines three popular technical indicators - Moving Average Convergence Divergence (MACD), Triple Exponential Moving Average (TEMA), and Double Exponential Moving Average (DEMA) - to generate buy and sell signals. It is suitable for use on any time frame, from intraday trading to swing trading and longer-term investing.
Indicator Components:
The indicator comprises of three main components: MACD, TEMA, and DEMA.
Moving Average Convergence Divergence (MACD):
The MACD is a momentum indicator that measures the difference between two moving averages of the price of an asset. It is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA. The MACD line is used to identify changes in momentum, trends, and potential buy and sell signals.
Triple Exponential Moving Average (TEMA):
The TEMA is a type of Moving Average that takes multiple EMA values and applies a triple smoothing to them. This allows the TEMA to react more quickly to changes in price trends than traditional moving averages. The TEMA line is used as an additional confirmation for potential buy and sell signals.
Double Exponential Moving Average (DEMA):
The DEMA is similar to the TEMA but applies double smoothing to the EMA values. It is used as a signal line to confirm buy and sell signals generated by the MACD and TEMA.
Signal Generation:
The Effortless Continuation Indicator generates buy and sell signals based on the crossover and crossunder of the MACD and DEMA lines, as well as the price being above or below the TEMA line. Long signals are generated when the MACD crosses above the DEMA and the price is above the TEMA. Short signals are generated when the MACD crosses below the DEMA and the price is below the TEMA.
Chop Sensitivity:
The indicator has a user-adjustable "Chop Sensitivity" setting, which allows traders to adjust the ATR sensitivity for long and short signals. ATR is a volatility indicator that measures the average range of price movements over a given period of time. The default value is set to 0.5 ATR, which means that long and short signals will not be generated if the price is within 0.5 ATR of the TEMA.
Alerts:
The Effortless Continuation Indicator has built-in alerts for both long and short signals. It also includes a single alert that will trigger for both long and short signals. This allows traders to stay informed of potential trading opportunities even when they are not actively monitoring the markets.
Conclusion:
The Effortless Continuation Indicator is a powerful technical analysis tool that can help traders identify potential buy and sell signals in the market. It is easy to use and can be customized to suit individual trading styles and preferences. It is important to note that this indicator does not predict the market, but rather provides potential signals that should be confirmed with additional technical and fundamental analysis. With its advanced signal generation and alert features, the Effortless Continuation Indicator can be a valuable addition to any trader's toolbox.
Swing Indicator (2 before, 1 after) v2 with Dong-DangFeatures
Detection Swing (swing HIGH is the highest bar among 2 bars before and 1 bar after, and swing LOW is the lowest bar among 2 bars before and 1 bar after)
Dong-Dang (The line plot switch between a swing HIGH and LOW ==> represents the price movement)
Fixes
fix swing detection from the last version when there are 2 or more bars that have the same high or low price
======== ======== ========
ฟีเจอร์
การจับสวิง (จะเป็นสวิง HIGH ก็ต่อเมื่อแท่งนั้นสูงกว่า 2 แท่งก่อนหน้า และ 1 แท่งด้านหลัง, และจะเป็นสวิง LOW ก็ต่อเมื่อแท่งนั้นต่ำกว่า 2 แท่งก่อนหน้า และ 1 แท่งด้านหลัง)
ด๊องแด๊ง (คือเส้นที่ลากสลับไปมาระหว่างสวิง High และ Low ==> ใช้เพื่อดูการเคลื่อนที่ของราคา)
สิ่งที่แก้ไข
แก้ไขการจับสวิงจากเวอร์ชันก่อนหน้า ในกรณีที่มีแท่งเทียน 2 แท่ง หรือมากกว่า มีค่า high หรือ low เท่ากัน
======== ======== ========
Credit: Bravo Trade Academy
Strategy for UT Bot Alerts indicator Using the UT Bot alerts indicator by @QuantNomad, this strategy was designed for showing an example of how this indicator could be used, also, it has the goal to help some people from a group that use to use this indicator for their trading. Under any circumstance I recommend to use it without testing it before in real time.
Backtesting context: 2020-02-05 to 2023-02-25 of BTCUSD 4H by Tvc. Commissions: 0.03% for each entry, 0.03% for each exit. Risk per trade: 2.5% of the total account
For this strategy, 3 indicators are used:
UT Bot Alerts indicator by Quantnomad
One Ema of 200 periods for indicate the trend
Atr stop loss from Gatherio
Trade conditions:
For longs:
Close price is higher than Atr from UT Bot
Ema from UT Bot cross over Atr from UT Bot.
This gives us our long signal. Stop loss will be determined by atr stop loss (white point), break even(blue point) by a risk/reward ratio of 0.75:1 and take profit of 3:1 where half position will be closed. This will be showed as buy (open long position)
The other half will be closed when close price is lower than Atr and Ema from UT Bot cross under Atr. This will be showed as cl buy (close long position)
For shorts:
Close price is lower than Atr from UT Bot
Ema from UT Bot cross over Atr from UT Bot.
This gives us our short signal. Stop loss will be determined by atr stop loss (white point), break even(blue point) by a risk/reward ratio of 0.75:1 and take profit of 3:1 where half position will be closed. This will be showed as sell (open short position)
The other half will be closed when close price is higher than Atr and Ema from UT Bot cross over Atr. This will be showed as cl sell (close short position)
Risk management
For calculate the amount of the position you will use just a small percent of your initial capital for the strategy and you will use the atr stop loss for this.
Example: You have 1000 usd and you just want to risk 2,5% of your account, there is a long signal at price of 20,000 usd. The stop loss price from atr stop loss is 19,000. You calculate the distance in percent between 20,000 and 19,000. In this case, that distance would be of 5,0%. Then, you calculate your position by this way: (initial or current capital * risk per trade of your account) / (stop loss distance).
Using these values on the formula: (1000*2,5%)/(5,0%) = 500usd. It means, you have to use 500 usd for risking 2.5% of your account.
We will use this risk management for apply compound interest.
In settings, with position amount calculator, you can enter the amount in usd of your account and the amount in percentage for risking per trade of the account. You will see this value in green color in the upper left corner that shows the amount in usd to use for risking the specific percentage of your account.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, break evens, positions, signals, indicators, etc.
You will find the settings for risk management at the end of the script if you want to change something. But rebember, do not change values from indicators, the idea is to not over optimize the strategy.
If you want to change the initial capital for backtest the strategy, go to properties, and also enter the commisions of your exchange and slippage for more realistic results.
In risk managment you can find an option called "Use leverage ?", activate this if you want to backtest using leverage, which means that in case of not having enough money for risking the % determined by you of your account using your initial capital, you will use leverage for using the enough amount for risking that % of your acount in a buy position. Otherwise, the amount will be limited by your initial/current capital
---> Do not forget to deactivate Trades on chart option in style settings for a cleaner look of the chart <---
Some things to consider
USE UNDER YOUR OWN RISK. PAST RESULTS DO NOT REPRESENT THE FUTURE.
DEPENDING OF % ACCOUNT RISK PER TRADE, YOU COULD REQUIRE LEVERAGE FOR OPEN SOME POSITIONS, SO PLEASE, BE CAREFULL AND USE CORRECTLY THE RISK MANAGEMENT
Do not forget to change commissions and other parameters related with back testing results!
Strategies for trending markets use to have more looses than wins and it takes a long time to get profits, so do not forget to be patient and consistent !
---> The strategy can still be improved, you can change some parameters depending of the asset and timeframe like risk/reward for taking profits, for break even, also the main parameters of the UT Bot Alerts <----
The Weinstein MethodWhat is "The Weinstein Method" indicator?
Presentation of the indicator
The Weinstein Method indicator was developed by us to help traders use the Stan Weinstein Method more effectively. This method usually requires a lot of time and analysis to determine the different phases of an asset, but the indicator takes care of that in no time. By simply choosing the market and the timeframe, traders can get the different trends of the asset, the famous four phases of Stan Weinstein.
The basic principles of the indicator
The Weinstein Method indicator is based on the principles of the Stan Weinstein Method. According to this method, assets go through four phases: the accumulation phase, the rise phase, the distribution phase and the fall phase. Traders use these phases to determine when to buy, sell or stay out of the market.
How the indicator works
The indicator will take into account several elements to trigger the phases: the RSI, the volumes, the EMA, the Relative Strength of the asset (the choice of the market in the menu of the indicator is determining for this calculation) and the Supports/Resistances.
Depending on the Timeframe (several configurations: 1 hour, 4 hours, daily, weekly and monthly) and the market (Dow Jones - Stock, S&P 500 - Stock, Nasdaq - Stock, DAX - Stock, CAC 40 - Stock and Cryptos) selected, the variables mentioned above change to adapt to the asset and the timeframe.
Each phase has criteria that must be met in order to be triggered (those described by Stan Weinstein in his book "Secrets for Profiting in Bull and Bear Markets"):
- Phase 1: We have determined as criteria: low volume, RSI in the low zone, minimal price variation over the last X candles and the EMA without direction.
- Phase 2: We calculate the relative strength of the asset compared to its benchmark, above-average volumes, the break of a major resistance, the direction of the EMA and the level of the RSI.
- Phase 3: We look to see if the asset breaks its uptrend (break of a trend following EMA), if it fails to make a new high, if the RSI is in the high zone and if the volumes are strong.
- Phase 4: For this phase to be triggered, the asset must break a major support, be below the EMA (once again these variables are adapted according to the timeframe and the market selected in the menu) and the EMA must be bearish.
How to use
The signals of the indicator
On the chart, the indicator allows you to visualize the different phases of an asset's movement. Each point on the chart corresponds to a particular phase, which is labeled below the point with the name of the phase. The different phases that can be identified with the help of the indicator are the following:
- S1: Accumulation
- S2: Rising
- S3: Distribution
- S4: Decline
By observing the successive points, it’s possible to identify the market trend and to consider trading positions accordingly.
The different strategies for using the indicator
The market phase indicator can be used for both short term and long-term trading strategies. However, it should be noted that this method is generally used for the medium and long term.
In terms of trading strategies, investors can use the indicator to identify periods of trend reversal and take positions against the current trend. For example, if the indicator shows a distribution phase, this may indicate a downward trend reversal and a trader could take a sell position when the downward phase begins.
On the other hand, traders can also use the indicator to confirm the current trend and take positions in the direction of the trend. If the indicator shows an upward phase, this may indicate a continuing upward trend and a trader could take a buy position.
Disclaimer
Please note that The Weinstein Method indicator is a tool designed to assist traders in their decision-making process. While it is based on sound principles and can be helpful in identifying market trends, it is important to remember that there is no magic indicator that can guarantee success in trading.
It is the responsibility of the user to carefully consider all available information, including the signals generated by The Weinstein Method indicator, and to make their own informed decisions about when to buy, sell or stay out of the market. It is important to remember that trading carries risks, and no strategy or tool can eliminate those risks entirely.
We want to emphasize that we do not provide investment advice, and any decisions made using The Weinstein Method indicator are the sole responsibility of the user. We cannot be held liable for any losses that may occur as a result of trading using this indicator.
Investments/swing trading strategy for different assetsStop worrying about catching the lowest price, it's almost impossible!: with this trend-following strategy and protection from bearish phases, you will know how to enter the market properly to obtain benefits in the long term.
Backtesting context: 1899-11-01 to 2023-02-16 of SPX by Tvc. Commissions: 0.05% for each entry, 0.05% for each exit. Risk per trade: 2.5% of the total account
For this strategy, 5 indicators are used:
One Ema of 200 periods
Atr Stop loss indicator from Gatherio
Squeeze momentum indicator from LazyBear
Moving average convergence/divergence or Macd
Relative strength index or Rsi
Trade conditions:
There are three type of entries, one of them depends if we want to trade against a bearish trend or not.
---If we keep Against trend option deactivated, the rules for two type of entries are:---
First type of entry:
With the next rules, we will be able to entry in a pull back situation:
Squeeze momentum is under 0 line (red)
Close is above 200 Ema and close is higher than the past close
Histogram from macd is under 0 line and is higher than the past one
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
For closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
Second type of entry:
With the next rules, we will not lose a possible bullish movement:
Close is above 200 Ema
Squeeze momentum crosses under 0 line
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
Like in the past type of entry, for closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
---If we keep Against trend option activated, the rules are the same as the ones above, but with one more type of entry. This is more useful in weekly timeframes, but could also be used in daily time frame:---
Third type of entry:
Close is under 200 Ema
Squeeze momentum crosses under 0 line
Once these rules are met, we enter into a buy position. Stop loss will be determined by atr stop loss (white point) and break even(blue point) by a risk/reward ratio of 1:1.
Like in the past type of entries, for closing this position: Squeeze momentum crosses over 0 and, until squeeze momentum crosses under 0, we close the position. Otherwise, we would have closed the position due to break even or stop loss.
Risk management
For calculating the amount of the position you will use just a small percent of your initial capital for the strategy and you will use the atr stop loss for this.
Example: You have 1000 usd and you just want to risk 2,5% of your account, there is a buy signal at price of 4,000 usd. The stop loss price from atr stop loss is 3,900. You calculate the distance in percent between 4,000 and 3,900. In this case, that distance would be of 2.50%. Then, you calculate your position by this way: (initial or current capital * risk per trade of your account) / (stop loss distance).
Using these values on the formula: (1000*2,5%)/(2,5%) = 1000usd. It means, you have to use 1000 usd for risking 2.5% of your account.
We will use this risk management for applying compound interest.
In settings, with position amount calculator, you can enter the amount in usd of your account and the amount in percentage for risking per trade of the account. You will see this value in green color in the upper left corner that shows the amount in usd to use for risking the specific percentage of your account.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, break evens, positions, signals, indicators, etc.
You will find the settings for risk management at the end of the script if you want to change something. But rebember, do not change values from indicators, the idea is to not over optimize the strategy.
If you want to change the initial capital for backtest the strategy, go to properties, and also enter the commisions of your exchange and slippage for more realistic results.
If you activate break even using rsi, when rsi crosses under overbought zone break even will be activated. This can work in some assets.
---Important: In risk managment you can find an option called "Use leverage ?", activate this if you want to backtest using leverage, which means that in case of not having enough money for risking the % determined by you of your account using your initial capital, you will use leverage for using the enough amount for risking that % of your acount in a buy position. Otherwise, the amount will be limited by your initial/current capital---
Some things to consider
USE UNDER YOUR OWN RISK. PAST RESULTS DO NOT REPRESENT THE FUTURE.
DEPENDING OF % ACCOUNT RISK PER TRADE, YOU COULD REQUIRE LEVERAGE FOR OPEN SOME POSITIONS, SO PLEASE, BE CAREFULL AND USE CORRECTLY THE RISK MANAGEMENT
Do not forget to change commissions and other parameters related with back testing results!
Some assets and timeframes where the strategy has also worked:
BTCUSD : 4H, 1D, W
SPX (US500) : 4H, 1D, W
GOLD : 1D, W
SILVER : 1D, W
ETHUSD : 4H, 1D
DXY : 1D
AAPL : 4H, 1D, W
AMZN : 4H, 1D, W
META : 4H, 1D, W
(and others stocks)
BANKNIFTY : 4H, 1D, W
DAX : 1D, W
RUT : 1D, W
HSI : 1D, W
NI225 : 1D, W
USDCOP : 1D, W
TUE Argentum Algo V1This algorithm is designed to look trend for opening conditions, apply various filters including volume and volatility, then determine stop outs, break evens, and take profits.
The algorithm uses proprietary math based on the concepts of volatility, standard deviations, average true ranges, and volume to help determine trend. You can filter based on cumulative volume delta, volatility, and moving average based trend. It includes settings for either trend following or contrarian trades, and the ability to go long, short, or both.
The take profit areas are based on proprietary math that help find peaks and valleys. You can adjust the size of the take profits as a percentage of the position, change to static take profits (i.e. take profit in 16 ticks), or use both. You can also disable them and use the natural closing conditions of the trades (detection of trend change in the opposite direction).
Our algo works in any market and will allow user to adjust input settings to be used on any ticker they'd like. It is built as a strategy so you can back test on any ticker to find the exact right settings to dial it in and then switch to live trading mode to see signals. Can be used for day trades or swing trades.
Automated Trading
This algo has been tested and certified to work for automated trading.
Works on Forex
It's confirmed to work on forex so you can trade that market.
Gets you into long successful trades, and gets out of poor ones quickly
It keeps you in the long trades taking small profits along the way, but cuts losers quickly in comparison. This style leads to a high profit factor.
It looks at many variables so you don't have to
- Uses trend analysis for opening/closing conditions.
- It measures the strength of trends to help determine if it should enter or not.
- It uses volume, if the user wants, to help filter entries. The volume calculation is based off of my proprietary cumulative volume delta indicator and helps find if the volume is moving long or short.
- It uses proprietary take profit math to help find peaks and valleys to peel off profits. It is based on the changes in momentum of the underlying.
- It allows for stop outs and break evens based on volatility so they'll always adjust with the movement of the underlying ticker (see the blue lines above and below the opening in the chart).
- It allows for offset break evens to keep a portion of the profit.
Strategy for the Algo
Included so you can understand how to trade with it.
ONE: After loading this strategy onto a ticker turn off volume if it's a ticker with no volume , set the dates at the bottom to when the stock is active (you want to start backtesting when a stock started trading like it trades currently).
TWO: From there adjust the short term trend settings to find the highest win rate and profit factor.
THREE: Then adjust the volume length to find the highest win rate and profit factor. It's important while doing these that you pay attention to a smooth upward equity curve.
FOUR: After this has been done now adjust the long and short risk multipliers. This determines your stop out.
FIVE: Then adjust breakeven multipliers - this is the level at which it changes to a breakeven stop out instead of the previous one. You can also set an offset to keep a small part of the profit.
SIX: Finally adjust the take profit sizes.
SEVEN: Once this is all done go back through the list and adjust up and down by one or two clicks and see if a better curve can be obtained. Very frequently long and short trades have different settings.
EIGHT: When you are finished save the settings in a custom indicator template and put it with it's own chart.
Additional
The settings shown on screen are not the default settings, but are settings chosen for this ticker and timeframe based on the process above. Nearly every ticker and timeframe will require adjustment from default, that's why the algorithm is built to be highly flexible. It can fit any ticker and timeframe, as well as market environment.
This particular setup has the algo running a scalping program on ES 3 min with a 16 tick static target. This algorithm can be set up as a scalper, or used to day trade more regularly. It can also swing trade.
As shown here the algo includes $1.25 of commissions and 1 tick of slippage on all orders (about our average for automated trading on ES).
TUE ADX/MACD Confluence Algorithm V1This algorithm is designed to look at the ADX/MACD confluence for opening conditions, apply various filters including volume and volatility, then determine stop outs, break evens, and take profits.
The ADX and MACD confluence can be a powerful predictor in stock movements. Both of these indicators find trend but do it in different ways. When they're combined they have a high success rate of finding openings. That's done by finding the bar in which both show the same direction - that bar is the beginning of the confluence. I have a free indicator called the TUE ADX/MACD Confluence that you can use to see this in action.
This script will help you find those confluences in an easy to understand manner. It will open a trade on a detected confluence, using the rest of the variables available in the algorithm as filters. You can filter based on cumulative volume delta, volatility, and trend. It includes settings for either trend following or contrarian trades, and the ability to go long, short, or both.
It includes Buy and Sell signals for detected confluences, and will show colored candles to help you determine when to exit a trade if you don't want to follow the included take profit areas. When the candles turn to white that means the detected confluence is no longer in play. The Buy and Sell signals will display on the first occurrence of each confluence.
The take profit areas are based on proprietary math that help find peaks and valleys. You can adjust the size of the take profits as a percentage of the position, change to static take profits (i.e. take profit in 16 ticks), or use both. You can also disable them and use the natural closing conditions (reversal of MACD/ADX confluence).
Our algo works in any market and will allow user to adjust input settings to be used on any ticker they'd like. It is built as a strategy so you can back test on any ticker to find the exact right settings to dial it in and then switch to live trading mode to see signals. Can be used for day trades or swing trades.
Automated Trading
This algo has been tested and certified to work for automated trading.
Works on Forex
It's confirmed to work on forex so you can trade that market.
Gets you into long successful trades, and gets out of poor ones quickly
It keeps you in the long trades taking small profits along the way, but cuts losers quickly in comparison. This style leads to a high profit factor, as you can see over 3.0 in the included ES 3 Min chart.
It looks at many variables so you don't have to
- Uses ADX/MACD confluence for opening/closing conditions.
- It uses volume, if the user wants, to help filter entries. The volume calculation is based off of my proprietary cumulative volume delta indicator and helps find if the volume is moving long or short.
- It uses proprietary take profit math to help find peaks and valleys to peel off profits. It is based on the changes in momentum of the underlying.
- It allows for stop outs and break evens based on volatility so they'll always adjust with the movement of the underlying ticker (see the blue lines above and below the opening in the chart).
- It allows for offset break evens to keep a portion of the profit.
Strategy for the Algo
Included so you can understand how to trade with it.
ONE: After loading this strategy onto a ticker turn off volume if it's a ticker with no volume , set the dates at the bottom to when the stock is active (you want to start backtesting when a stock started trading like it trades currently).
TWO: From there adjust the ADX/MACD to find the highest win rate and profit factor.
THREE: Then adjust the volume length to find the highest win rate and profit factor. It's important while doing these that you pay attention to a smooth upward equity curve.
FOUR: After this has been done now adjust the long and short risk multipliers. This determines your stop out.
FIVE: Then adjust breakeven multipliers - this is the level at which it changes to a breakeven stop out instead of the previous one. You can also set an offset to keep a small part of the profit.
SIX: Finally adjust the take profit sizes.
SEVEN: Once this is all done go back through the list and adjust up and down by one or two clicks and see if a better curve can be obtained. Very frequently long and short trades have different settings.
EIGHT: When you are finished save the settings in a custom indicator template and put it with it's own chart.
Additional
The settings shown on screen are not the default settings, but are settings chosen for this ticker and timeframe based on the process above. Nearly every ticker and timeframe will require adjustment from default, that's why the algorithm is built to be highly flexible. It can fit any ticker and timeframe, as well as market environment.
Also included in the chart above is a $1.25 commission per contract, and a tick of slippage (which on average is about right for automated trading on ES).
kaptanFantastik[Take Profit and Stop Loss Finder]Hello all,
It's ATR based active take profit & stop loss finder.
You can set multipliers for taking profit and stop losing and you can change the price source for the calculation. Also, you can change the ATR level.
Defaults are my best settings. 2.2x for taking profit and 1.5x for stop losing. Open price is the source. Also, I think 5 ATR is the best for day and swing trade.
Levels are determined according to the open prices (This is because we can enter the position after our other indicators give the signal following the close price. Yet, you can change it). Since it's active and based on my calculation with ATR values, percentages for the taking profits and stop losing may change. Because of this, you need to note the take profit and stop lose prices after your entry price level is determined by the other indicators for the best success rates.
It can be used in any time frame with the other indicators to determine the best entry points. For example, 3 EMA levels with 5,8 and 13 is good option for the entry. You can enter the position when 5 crosses up 8 and both are above the 13. You can also use custom more advanced buy/sell indicators with this one for entry points.
It can be used with any asset from cryptocurrency to the stocks, from forex to gold etc.
Hint: You can set your levels lower than the take profit prices to maximize the success rate.
Note: Market should be open for the positions.
Example trade on the 5-minute timeline.
The below chart has both my custom indicator and the 3 EMAs mentioned above.
Trade 1: Entry price: 19191, Take Profit: 19276. Profit 0.44%
Trade 2: Entry price: 19189, Take Profit: 193009. Profit 0.625%
Türkçe bilen kullanıcılar için açıklama
Herkese merhabalar,
ATR tabanlı aktif kar al ve zararı durdur bulucu.
Kar almak ve zararı kesmek için çarpanlar belirleyebilir ve hesaplama için fiyat kaynağı değiştirebilirsiniz. Ayrıca, ATR seviyesini de değiştirebilirsiniz.
Varsayılanlar benim en iyi ayarlarım. Kar almak için 2,2 kat ve zararı durdurmak için 1,5 kat. Açılış, fiyat kaynağıdır. Ayrıca, 5 ATR'nin günlük ve kısa vade (swing trade) için en iyisi olduğunu düşünüyorum.
Seviyeler açılış fiyatına göre belirlenir (Çünkü diğer göstergelerimiz kapanış fiyatının ardından sinyal verdikten sonra pozisyona girebiliyoruz. Yine de bunu değiştirebilirsiniz). Aktif olduğu için ve ATR değerleri ile yaptığım hesaplamaya göre kar alma ve zarar kes yüzdeleri değişebilir. Bu nedenle, en iyi başarı oranları için; giriş fiyat seviyeniz diğer göstergeler tarafından belirlendikten sonra kar al ve zararı durdur fiyatlarını not etmeniz gerekir.
En iyi giriş noktalarını belirlemek için diğer göstergelerle herhangi bir zaman diliminde kullanılabilir. Örneğin, 5,8 ve 13 ile 3 EMA seviyesi giriş için iyi bir seçenektir. 5, 8'i geçtiğinde ve her ikisi de 13'ün üzerinde olduğunda pozisyona girebilirsiniz. Giriş noktaları için bununla birlikte daha gelişmiş özel al/sat göstergelerini de kullanabilirsiniz.
Kripto paradan hisse senetlerine, forexten altına vb. her türlü varlıkla kullanılabilir.
İpucu: Başarı oranını en üst düzeye çıkarmak için seviyelerinizi kar alma fiyatlarından daha düşük ayarlayabilirsiniz.
Not: Pozisyonlar için piyasa açık olmalıdır.
5 dakikalık zaman çizilgesinde örnek işlem.
Yukarıdaki örnek grafikte hem özel indikatörüm hem de yukrıda belirtilen 3 EMA var.
İşlem 1: Giriş fiyatı: 19191, Kazanç Al: 19276. Kar %0.44
İşlem 2: Giriş fiyatı: 19189, Kazanç Al: 193009. Kar %0.625
Round Numbers Breakouts Smart Formula Signals and AlertsThis indicator uses Round Numbers breakouts and then uses smart formula with the near Round Numbers to determine best TP (take profit)/SL (stop loss) areas. Furthermore, it calculates win percentage, shows in-profit/in-loss peaks and the price amount result over a customizable date range, which when combined well with the smart formula provides decent profitable outcome. I have decided to write my own backtesting engine as the integrated TradingView strategy one has limitations and has shown inconsistencies when compared to manual backtesting…
There are many settings you can manually change to trade any instrument, any style, any approach and there are presets included for Bitcoin(BTCUSD), FOREX(EURUSD), SPY(S&P500), so you can start trading immediately! Alerts correspond to indicator settings and are turned on with a few clicks. There are 3 tables (each can be shown/hidden) showing everything you need to see/know to calibrate the indicator as you wish.
Labels, lines, tables explanations (everything can be hidden/shown):
- LONG Labels: medium-green: position open, dark-green: SL, bright-green: TP, blue: TP2
- SHORT Labels: medium-red: position open, dark-red: SL, bright-red: TP, purple: TP2
- Gray circles: position entry area | Yellow crosses: SL area
- Green line: Long TP1, Blue line: Long TP2 | Red Line: Short TP1, Purple line: Short TP2
- Grey lines: Round Numbers (customized via “Round Number up/down measure unit” input)
- Yellow labels at end of each week: end of week OVERALL total results
- Red colored background: power segment
- 3 tables: 1) INFO | STATS, 2) SPY Options Calculator, 3) Indicator Settings
If you decide to fully customize the indicator yourself, on the very top - under “PRESETS” select “MANUAL”! NOTE: If you select any of the pre-set presets, only GLOBAL settings can be changed, the rest of the settings will be “frozen” until you switch it to “MANUAL”!
- Global Settings are self-explanatory and mainly observational, show/hide, etc.
- Manual TP2 (Multi-Take-Profit) Settings:
>>>>> Include TP2 System? Turn on/off multi-profit system, with this unchecked, every trade will either end with SL or with TP1.
>>>>> TP2 System: NEAREST/FORMULA, NEAREST – after TP1 is taken > next TP2 will be a round number price target nearest to where TP1 was taken (sometimes it can be very near, sometimes further away…), FORMULA – 2nd round number price target will be optimally selected based on the distance behind and ahead of TP1 area. For TP2 – FORMULA would be the most logical choice as with multi-take-profit setting turned on – you’d want to ride it out as far as possible.
>>>>> TP1/TP2 division type: 1) Each price target (TP1, TP2) will be ½ of the position 2) TP1 will be 2/3 of the position and TP2 will be the remaining 1/3.
>>>>> TP2 hit type: “close” > candle has to close on top/crossing the price target line, “touch” > once candle touches the price target – you will be immediately alerted to take the partial profit (if you will use such setting – you will need to take the partial profits as soon as you receive the alert.
>>>>> TP1 > Back to Entry hit type: similar to TP2, “close” > candle close, “touch” > candle touch. Please note: this is a very tricky setting as if you use “close” option – your profitable trade may become a loss if a huge candle will close against your position eliminating your TP1 profit, however often the price will touch and cross the entry area to only bounce and continue with your position direction for even bigger profits… so experiment with the date range results to see what works best for your instrument/setting/strategy.
>>>>> TP2 count towards trades count: this can be a bit confusing, but it is simply how should TP2 be treated towards trades count. The indicator will show you Win Percentage and Win % is obtained from winning trades count divided by total trades count. While TP2 is not “a new trade”, it expands the profit of the trade. This is an experimental setting to count TP2 as the whole winning trade, ½ of a trade, or not count it at all.
- Manual Signals/TP1 Settings:
>>>>> TP1/TP2 offset: this one is really cool, with this feature you can hunt these conditions when the price comes very near the profit target area, but never touches it. With this setting turned on and with a good offset amount – you will be able to catch these for TP1 and TP2!
>>>>> TP1/TP2 offset amount: just what the title says, please be careful with this as this number varies significantly depending on the instrument you will be trading. Examples: 1) For SPY 0.1 would be $0.10 offset - if TP1 is $400 and price hits $399.90 > TP1 considered taken/signal shown/alert) | 2) For EURUSD, it is very different and if wrong will show TP1 immediately at position open, typical good offset for EURUSD is: 0.0005 | 3) For BTCUSD, 10 - $10 offset, if TP is $15,000 > $14,990, etc.
>>>>> Round Number up/down measure unit (in dollars $): this one is very important if you will be using “MANUAL” selection to build your own setup as it is very different for every instrument. For SPY, round numbers are single dollars or even half-dollar 50 cent numbers: 1 or 0.5 (350, 351, 352, etc. or 350.50, 351, 351.50, 352, etc.), while for Bitcoin (BTCUSD) a single unit ($1) is too small to be a round number as Bitoin moves much faster and wider every second and it would have to be at least 50 ($50) to make sense. Similar for FOREX (EUR/USD) a single 1 unit ($1) will be too big as EURUSD will never move a whole $1 in 15 minutes or even a day.. and would have to be something like 1.05500. You can easily determine if this number makes sense for your instrument by observing the grey Round Number lines which will correspond based on this setting. You can also visually observer if the price of the instrument appreciates these round numbers.
>>>>> Close Position Before Market Closes: just what the title says. Indicator will close the position 15 minutes before market closes (US session), update backtesting stats, alert you.
>>>>> Close Position Before Power Hour: 3PM – 4PM ET is the last hour of US trading session, where sudden move in any direction can happen with huge volatility, while sometimes nothing will happen at all… Many try to avoid it, so if you wish to avoid it as well - turn this on and it will alert you to close your positions 15 minutes before Power Hour starts, backtesting/stats will be adjusted accordingly.
>>>>> Skip OVERSIZED candles in signals: turn on this setting to skip signals, which happen to fall on big candles. This is basically a protection from huge volatility moves, which usually happen during financial news/events and if you are not a fan of these – you can set this option for indicator to not open anything based on the candle size.
>>>>> Color OVERSIZED candles: this will help you calibrate the size of the OVERSIZED candles if you decide to use this setting and overall visually see them.
>>>>> OVERSIZED candle size: OVERSIZED candle size must be input as it varies significantly. Please note: for each instrument – the size number is completely different, as for SPY: 2 would mean any candle bigger than $2 distance will be considered OVERSIZED, for Bitcoin it would have to be several hundred dollars, like 400-500. For FOREX, this would have to be a decimal, for EURUSD something like 0.0005. It’s best to experiment visually with this setting depending on the instrument you will be trading while setting up the size. To see a typical huge unusual candle – look up financial calendar for something like FOMC meeting, then measure the candle input it into this setting.
>>>>> OVERSIZED candle size calculation type: this is just more flexibility for your preference. If you wish to calculate the size of the candle based on the open/close – select “BODY”, if you wish to use high/low – select “STICKS (from tip to tip)”. Hard to say which one is better, so it is up to you to decide.
>>>>> Include EMA in signal formula: LONG signals will only be shown only if above EMA, SHORT if below EMA. EMA length is of course customizable in below.
>>>>> Skip opposite candle types in signals: signals where the candle color confirms the direction of the trade, but the candle type is opposite (like a green colored bearish hammer for example) will be avoided (such candles can be very uncertain/deceptive).
>>>>> Skip doji: signals where the signal candle is doji (uncertain) will be avoided.
>>>>> TP1 hit type/system: same thing as TP2 hit type/system.
>>>>> SL hit type/system: same as TP1 and TP2 types/systems.
>>>>> Intraday Session Signals Active Time in ET: time range during the day when indicator will show signals (open trades, alert you, etc.). This is specifically for intraday trading. You can turn it off completely by selecting a BLANK option.
>>>>> Intraday TP/SL Active Time in ET: same as above, but for taking profits/stop losses.
*** To add the alerts
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Alert name: Whatever you want
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
If you wish to try this out for a week or so – please write me directly and I will give you access.
Stockbee Momentum BurstThis is a script to color code bars based on the bullish- and bearish combination.
Bullish Combination
Percent: Price >= 4% from yesterday and Volume today > Yesterday
Dollar: Price >= 0.9 dollar from open
Base Requirements
- Price > Yesterday's close
- Price > Open
- Price is within 30% of high
- Todays price range >= Yesterdays price range
- Yesterday's move <= 2%
- Volume >= 100 000
Bearish Combination
Percent: Price <= 4% from yesterday and Volume today > Yesterday
Dollar: Price <= 0.9 dollar from open
Base Requirements
- Price < Yesterday's close
- Price < Open
- Price is within 30% of low
- Todays price range >= Yesterdays price range
- Yesterday's move >= -2%
- Minimum volume for each of last 3 days >= 100 000
Momentum Filter
These are based on the 10 and 20 EMA crossover, where the former above would indicate upward momentum and below downward momentum. This can help to narrow down the color code to continuation phases. The linked option will override all other momentum filters, bullish candles will be displayed when EMA 10 > 20 and bearish candles when EMA 10 < 20.