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.
Swingtrading
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.
Simple SuperTrend Strategy for BTCUSD 4HHello guys!, If you are a swing trader and you are looking for a simple trend strategy, you should check this one. Based in the supertrend indicator, this strategy will help you to catch big movements in BTCUSD 4H and avoid losses as much as possible in consolidated situations of the market
This strategy was designed for BTCUSD in 4H timeframe
Backtesting context: 2020-01-02 to 2023-01-05 (The strategy has also worked in previous years)
Trade conditions:
Rules are actually simple, the most important thing is the risk and position management of this strategy
For long:
Once Supertrend changes from a downtrend to a uptrend, you enter into a long position. The stop loss will be defined by the atr stop loss
The first profit will be of 0.75 risk/reward ratio where half position will be closed. When this happens, you move the stop loss to break even.
Now, just will be there two situations:
Once Supertrend changes from a uptrend to a downtrend, you close the other half of the initial long position.
If price goes againts the position, the position will be closed due to breakeven.
For short:
Once Supertrend changes from a uptrend to a downtrend, you enter into a short position. The stop loss will be defined by the atr stop loss
The first profit will be of 0.75 risk/reward ratio where half position will be closed. When this happens, you move the stop loss to break even.
Like in the long position, just will be there two situations:
Once Supertrend changes from a downtrend to a uptrend, you close the other half of the initial short position.
If price goes againts the position, the position will be closed due to breakeven.
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.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, supertrend or positions.
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.
Signals meanings:
L for long position. CL for close long position.
S for short position. CS for close short position.
Tp for take profit (it also appears when the position is closed due to stop loss, this due to the script uses two kind of positions)
Exit due to break even or due to stop loss
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
The amount of trades closed in the backtest are not exactly the real ones. If you want to know the real ones, go to settings and change % of trade for first take profit to 100 for getting the real ones. In the backtest, the real amount of opened trades was of 194.
Indicators used:
Supertrend
Atr stop loss by garethyeo
This is the fist strategy that I publish in tradingview, I will be glad with you for any suggestion, support or advice for future scripts. Do not doubt in make any question you have and if you liked this content, leave a boost. I plan to bring more strategies and useful content for you!
Futures SignalThis is a Futures Signal Indictor works using support & resistance and market trend, it is designed for all type of markets (crypto, forex, stock etc.) and works on all commonly used timeframes (preferably on 5 Min, 15 Min Candles).
How it works Futures Signal Indictor :
Core logic behind this indicator is to finding the Support and Resistance , we find the Lower High (LH) and Higher Low (HL) to find the from where the price reversed (bounced back) and also we use a custom logic for figuring out the peak price in the last few candles. Based on the multiple previous Support and Resistance (HH, HL, LL LH) we calculate a price level, this price level is used a major a factor for entering the trade. Once we have the price level we check if the current price crosses that price level, if it crossed then we consider that as a long/short entry (based on whether it crosses resistance or support line that we calculated). Once we have pre long/short signals we further filter it based on the market trend to prevent too early/late signals. Along with this if we don't see a clear trend we do the filtering by checking how many support or resistance level the price has bounced off.
Stop Loss and Take Profit: We have also added printing SL and TP levels on the chart to make the it easier for everyone to find the SL/TP values. Script calculates the SL value by checking the previous support level for LONG trade and previous resistance level for SHORT trades. Take profit are calculated in 0.5 ratio as of now.
EMA Dashboard ChartStoryEMA Dashboard indicator is used for finding corrective during real time as well as where is taking support. It shows multiple timeframe along with multiple ema. From 5 mints charts to monthly chart and from 20 sma to 200 ema . So one can easily capture the price on different timeframe at single dashboard.
Swing Oscillator [AstrideUnicorn]The Swing Oscillator is an indicator that can help you catch small price movements, called swings. Swings are minor trends that occur when price moves between the highs and lows of a trend or range. Because of the short-term nature of swings, a new movement should be identified as soon as possible.
The indicator is based on our original formula, which averages the length of candlestick bodies and compares the result to several thresholds. This allows the algorithm to determine the direction and strength of the price movement.
HOW TO USE
When the indicator is above the zero level and colored green, it means that the price is in an upward swing. When the indicator is below the zero level and colored red, the price is in a downward swing. When the indicator is blue, the price swing is slowing down or the market is moving sideways. The amplitude of the oscillator shows the price volatility.
Mastering Market Structure"Market structure first, always" - Mr. Anderson aka TrueCrypto28 right before he went on to master Kung-Fu
Understanding and identifying market structure is essential for successful and consistent profitability. No system is perfect, but trading in the direction of the prevailing market structure can reduce the likelihood of being caught severely offsides and can yield trades with tighter invalidations and greater risk-to-reward potential.
This script will automatically identify and plot the following:
Market Structure
Pivot highs and lows using the lookback left and right lengths are analyzed to identify major swing highs and lows to identify the current trading range.
Bullish structure is characterized by a series of higher highs and higher lows.
Bearish Structure is characterized by lower highs and lower lows.
Structure breaks when a bar closes outside the current trading range. Major swing highs and lows will update following these breaks to continue following the current price action
Current market structure bias, bullish or bearish, can be displayed in a table in the location of your choosing.
Structure is fractal, so seeing low time frame structure shift against the high time frame structure can identify the beginning of a pullback. When it realigns with the high timeframe structure, it can identify the beginning of the high time frame trend continuation. You can choose to analyze structure on any timeframe with this script and even add multiple copies of it to your chart each analyzing different a timeframes to easily find high quality trade opportunities.
Fibonacci Levels of the current trading range
These are included to help identify areas of interest for trade execution and profit levels.
We want to buy at a discount and sell at a premium. The "Wholesale Zone" can be considered below the 50% retracement level in bullish structure, or above it in a bearish structure.
When in a bullish structure, "discount" buy opportunities can be found below the 50% retracement level with the expectation of trend continuation.
In a bearish structure, more ideal "premium' sell opportunities can be found above the 50% retracement with the expectation of trend continuation.
Optimal trade entry (OTE) zone, between the 61.8% and 78.6% retracement can offer a great risk-to-reward ratio for execution of a new position in trending environments.
When trading sideways in a range, opening new buy positions near the bottom of the range or new sell positions from the top of the range are preferred. Midrange 50% level commonly sees some reaction and can be used as a primary target with further targets either being the opposite end of the range or lower support levels (see order block section).
Order Blocks
New Bullish and bearish order blocks are created and plotted with every respective market structure break. They identify the price level from which the most recent leg of price action that yielded the structure break began.
In strong trending environments, these levels should continue to support or resist price. They are great areas to look to enter new positions.
Order blocks can also be used as targets for your trades to avoid giving back unrealized profits as price tends to react off of these levels.
To keep your chart clean and the order blocks relevant, an order block will be automatically deleted if price trades through and closes beyond it. Otherwise, printed order blocks will remain on your chart until either it's origin bar is out of TradingView's maximum bar history allowance or their maximum box count allowance.
Pairing these with fibonacci levels, retracements into order blocks that are in the Wholesale Zone or even the OTE zone offer higher probability trades with more favorable risk-to-reward potential.
Swing Failure
Swing failure patterns (SFPs) arise when a candle takes out a swing high or low, but fails to close beyond it.
Again, pairing these with other features of this script like range boundaries, wholesale zones, OTE zones, and order blocks can help traders identify the best times to actually execute their trade as SFPs are commonly seen at points of inflection in price action.
Moving Averages
Up to 4 moving averages from the current time frame are available. MA type and lengths can be adjusted to your preference.
Up to 4 MTF MAs. By Default this is an EMA 200 as it is commonly used for trend identification and support/resistance.
These are included for confluence of trend direction and strength.
They can also act as dynamic support and resistance and so can be useful for trade execution if price bounces or rejects off of them or targets as price may do so when it reaches them.
Additionally, alerts have been coded for the following scenarios:
MS Break alerts will trigger on bar close when a break in market structure has been confirmed.
SFP alerts will trigger on bar close when the swing failure pattern has been confirmed.
Entering OB alerts will trigger as soon as price touches the closest order block.
Entering Wholesale Zone alerts will trigger as soon as price cross the 50% retracement level. This can be used as an early alert to identify assets that have undergone a significant pullback before potential continuation in the direction of the main trend.
Entering OTE Zone alerts will trigger as soon as price crosses into the Optimal Trade Entry zone between the 61.8% and 78.6% retracement.
This script is unique in the way that it tracks market structure, automatically updates as price action continues to develop, presents high quality areas of interest, and SFPs for trend reversal and continuation. Traders will no longer need to constantly monitor their charts or exhaustively update their alerts to find good trade opportunities. This script takes care of all of it automatically. Collectively, all of the included features can be used to build a complete trading system.
[Sniper] SuperTrend + SSL Hybrid + QQE MODHi. I’m DuDu95.
**********************************************************************************
This is the script for the series called "Sniper".
*** What is "Sniper" Series? ***
"Sniper" series is the project that I’m going to start.
In "Sniper" Series, I’m going to "snipe and shoot" the youtuber’s strategy: to find out whether the youtuber’s video about strategy is "true or false".
Specifically, I’m going to do the things below.
1. Implement "Youtuber’s strategy" into pinescript code.
2. Then I will "backtest" and prove whether "the strategy really works" in the specific ticker (e.g. BTCUSDT) for the specific timeframe (e.g. 5m).
3. Based on the backtest result, I will rate and judge whether the youtube video is "true" or "false", and then rate the validity, reliability, robustness, of the strategy. (like a lie detector)
*** What is the purpose of this series? ***
1. To notify whether the strategy really works for the people who watched the youtube video.
2. To find and build my own scalping / day trading strategy that really works.
**********************************************************************************
*** Strategy Description ***
This strategy is from " QQE MOD + supertrend + ssl hybrid" by korean youtuber "코인투데이".
"코인투데이" claimed that this strategy will make you a lot of money in any crypto ticker in 15 minute timeframe.
### Entry Logic
1. Long Entry Logic
- Super Trend Short -> Long
- close > SSL Hybrid baseline upper k
- QQE MOD should be blue
2. Short Entry Logic
- Super Trend Long -> Short
- close < SSL Hybrid baseline lower k
- QQE MOD should be red
### Exit Logic
1. Long Exit Logic
- Super Trend Long -> Short
2. Short Entry Logic
- Super Trend Short -> Long
### StopLoss
1. Can Choose Stop Loss Type: Percent, ATR, Previous Low / High.
2. Can Chosse inputs of each Stop Loss Type.
### Take Profit
1. Can set Risk Reward Ratio for Take Profit.
- To simplify backtest, I erased all other options except RR Ratio.
- You can add Take Profit Logic by adding options in the code.
2. Can set Take Profit Quantity.
### Risk Manangement
1. Can choose whether to use Risk Manangement Logic.
- This controls the Quantity of the Entry.
- e.g. If you want to take 3% risk per trade and stop loss price is 6% below the long entry price,
then 50% of your equity will be used for trade.
2. Can choose How much risk you would take per trade.
### Plot
1. Added Labels to check the data of entry / exit positions.
2. Changed and Added color different from the original one. (green: #02732A, red: #D92332, yellow: #F2E313)
3. SuperTrend and SSL Hybrid Baseline is by default drawn on the chart.
4. If you check EMA filter, EMA would be drawn on the chart.
5. Should add QQE MOD indicator manually if you want to see QQE MOD.
**********************************************************************************
*** Rating: True or False?
### Rating:
→ 3.5 / 5 (0 = Trash, 1 = Bad, 2 = Not Good, 3 = Good, 4 = Great, 5 = Excellent)
### True or False?
→ True but not a 'perfect true'.
→ It did made a small profit on 15 minute timeframe. But it made a profit so it's true.
→ It worked well in longer timeframe. I think super trend works well so I will work on this further.
### Better Option?
→ Use this for Day trading or Swing Trading, not for Scalping. (Bigger Timeframe)
→ Although the result was not good at 15 minute timeframe, it was quite profitable in 1h, 2h, 4h, 8h, 1d timeframe.
→ Crypto like BTC, ETH was ok.
→ The result was better when I use EMA filter.
### Robust?
→ Yes. Although result was super bad in 5m timeframe, backtest result was "consistently" profitable on longer timeframe (when timeframe was bigger than 15m, it was profitable).
→ Also, MDD was good under risk management option on.
**********************************************************************************
*** Conclusion?
→ I recommend you not to use this on short timeframe as the youtuber first mentioned.
→ In my opinion, I can use on longer timeframe like 2h or bigger with EMA filter, stoploss and risk management.
EMA + Williams Fractal Pullback [Trading Nerd]EMA Pullback Strategy with Williams Fractal Indicator
Backtesting script that searches for trends (long and short) and a following pullback into the EMAs. It enters on the first Williams Fractal in the desired direction. I found the Strategy on YouTube as a "M1 Scalping Strategy for Bitcoin".
Including fees the strategy is not profitalbe in lower timeframes (at least if not optimized). But it seems to work on higher timeframes as a swing traiding strategy.
Strategy Conditions
Longs:
EMA 1 > EMA 2 and EMA 2 > EMA 3
Number of need to be above the EMA 1
Then a Pullback into the EMAs is required
Enter on the first bullish Williams Fractal
Signal is canceled if the price closes below the EMA 3
Shorts:
EMA 1 < EMA 2 and EMA 2 < EMA 3
Number of need to be below the EMA 1
Then a Pullback into the EMAs is required
Enter on the first bearish Williams Fractal
Singal is canceled if the price closes above the EMA 3
Take Profit
A Risk Reward Take Profit is possible. If you want to use only a trailing Stop Loss, you can set the Take Profit to 'None'
Stop Loss
The default Stop Loss is EMA. If the Pullback has not reached the EMA 2, the Stop Loss is set to the EMA 2. If the Pullback has reached the EMA 2, the Stop Loss is set to the EMA 3.
Other Stop Loss types are available: ATR, HH/LL
Trailing Stop Loss
Available trailing Stop Loss types: ATR, HH/LL. Best practice is to also set the Stop Loss type to the same value.
The Stop Loss is updated if the value from the latest closed candle is greater/less than the previous value for a long/short trade.
Additional
Time Filter: Only opens trade in the defined Session. Open trades are still being closed outside of the Session.
Start Date/End Date: Limits the backtest for the defined Date Range
Trading Days: Only open Trades on the checked Days
Risk % per Trade: If enabled the Strategy uses X% of the capital (defined in Settings -> Properties -> Initial Capital)
Use Compound Interest: If enabled Capital is recalculated for every trade (initial capital + net Profit)
IMPORTANT: For low Timeframes and Markets with tight SL (like Forex) it requires a lower Margin Percent than default. Go to Settings->Properties and lower the required Long/Short Margin. Otherwise Trades might not be considered because of too less capital/marign. Margins can e.g. set to: 2% (Forex), 10% (Stocks), 20% (Crypto).
Bhoomi INDICES 2.1Bhoomi 2.0 is a Market Directional Indicator. It predicts the same by plotting respective zones and Labels.
To request access and to know more Information please contact us here.
Bhoomi 2.0 INDICES works on the Major World Indices as listed on tradingview. More to come in future, but please find the current list below. If you do not see the INDEX you trades, please comment below and we will add that for you.
"SPCFD:SPX"
"TVC:IXIC"
"DJCFD:DJI"
"TVC:NI225"
"CBOE:VIX"
"TSX:TSX"
"TVC:UKX"
"XETR:DAX"
"EURONEXT:PX1"
"EURONEXT:PX1GR"
"EURONEXT:PX1NR"
"TVC:FTMIB"
"TVC:NI225"
"TVC:KOSPI"
"TVC:SHCOMP "
"SZSE:399001"
"HSI:HSI"
"TVC:STI"
"ASX:XJO"
"NZX:NZ50G"
"TWSE:TAIEX"
"FTSEMYX:FBMKLCI"
"IDX:COMPOSITE"
"TVC:SX5E"
"BME:IBC"
"SIX:SMI"
"GPW:WIG20"
"EURONEXT:AEX"
"EURONEXT:BEL20"
"INDEX:BEL20"
"MOEX:IMOEX"
"OMXHEX:OMXH25"
"OMXICE:OMXI10"
"OMXSTO:OMXS30"
"OMXCOP:OMXC25"
"BELEX:BELEX15"
"OMXRSE:OMXRGI"
"OMXTSE:OMXTGI"
"OMXVSE:OMXVGI"
"BIST:XU100"
"TASE:TA35"
"TVC:SA40"
"NSE:NIFTY"
"BSE:SENSEX"
"DFM:DFMGI"
"TADAWUL:TASI"
"QSE:GNRI"
"BAHRAIN:BSEX"
"NSENG:NSE30"
"EGX:EGX30"
"BMFBOVESPA:IBOV"
"BMV:ME"
"BYMA:IMV"
"BVC:ICAP"
"BCS:SP_IPSA"
"BVL:SPBLPGPT"
"CURRENCYCOM:US500"
"CURRENCYCOM:US300"
"CURRENCYCOM:US100"
"CURRENCYCOM:US30"
"INDEX:DEU30"
"CBOE:VXD"
INDEX:DE40