Webby's RS LineThe Relative Strength (RS) line is something many investors are familiar with. It is used to measure a stocks performance versus the S&P 500 and is typically calculated by dividing the closing price of the stock by the closing price of the S&P. This means if a stock moves up and the S&P moves down or the stock moves up more than the S&P the RS line will increase, if the stock moves down while the S&P moves up the line will decrease.
While the standard RS line is a powerful tool, Mike Webster recently discussed how he has made changes to the standard RS line and also uses a 21 exponential moving average of the RS line to help guide his decision making. This script puts those new twists on the standard RS line, by first calculating the RS line using the low of both the security and the S&P rather than the closing prices. Next it measures the 21-day exponential moving average of the RS line and plots the distance between the two as a histogram.
A strong trending stock that is out performing the market will see an extended period of a positive blue histogram signifying the RS line is above the 21-ema.
While on the other hand a stock in a downtrend that is underperforming will see a negative red histogram a red histogram signifying the RS line is below the 21-ema.
On top of all of that, the indicator also keeps 3 & 13 exponential moving average of the distance between the RS line and the 21 ema to help identify shorter term relative strength and capture more immediate shifts in momentum. Both of those are plotted on the histogram as well and will change color as they rise and fall making it easy to spot the direction.
Indicator options include:
Choose symbol to measure performance against
Change histogram colors
Choose ema line width
* Note this indicator does not plot the actual RS line, it is the histogram representing the distance between the RS line calculated using the lows and the 21 ema, as well as the two ema's of the relationship.
Educational
Intraday trading period indicatorI have created this indicator because I was in a need of simple indication of personal session time for my backtesting while practicing intraday Futures trading.
How it works:
1. Define your timezone.
2. Set Trading session start/end time.
3. Choose the colour you want to see your intraday session in.
Actual result: Your selected session is displayed with selected colour and within selected time period. Your are good to go.
It is not perfect for sure but it does what it needs to do and I think it is awesome.
Hope it will be useful for you and let the Profit be with you!
Upgraded WatermarkThis mimics the built in watermark feature, but adds the ability to change location as well as see an equities sector and industry group.
Mark Minervini's Trend TemplateThe Mark Minervini Trend Template Indicator is a powerful tool designed to identify potential trends in the stock market.
Based on the renowned trading methodology developed by Mark Minervini, this indicator incorporates several key criteria to assist traders in making informed decisions.
The indicator checks the following criteria:
- Price above 50-day Moving Average (50MA):
The indicator confirms if the current price is trading above the 50-day moving average, indicating potential bullish momentum.
- Price above 150-day Moving Average (150MA):
The indicator verifies if the current price is above the 150-day moving average, suggesting a sustained upward trend.
Price above 200-day Moving Average (200MA): The indicator ensures that the current price remains higher than the 200-day moving average, indicating a strong bullish bias in the market.
- 50-day Moving Average (50MA) greater than 150-day Moving Average (150MA):
This criterion compares the 50-day moving average with the 150-day moving average and confirms if the shorter-term average is higher, signifying increasing short-term strength.
- 50-day Moving Average (50MA) greater than 200-day Moving Average (200MA):
This criterion compares the 50-day moving average with the 200-day moving average and validates if the shorter-term average is higher, indicating a potential bullish trend.
- 150-day Moving Average (150MA) greater than 200-day Moving Average (200MA):
This criterion compares the 150-day moving average with the 200-day moving average and confirms if the intermediate-term average is higher, suggesting a strengthening bullish trend.
- 200-day Moving Average (200MA) in Uptrend:
The indicator analyzes the slope of the 200-day moving average to determine if it is ascending, indicating a sustained bullish trend.
- Price within 25% of 52-week High:
The indicator assesses if the current price is trading within 25% of its 52-week high, potentially indicating a strong upward momentum and bullish sentiment.
- Price at least 25% above 52-week Low:
The indicator verifies if the current price is trading at least 25% above its 52-week low, suggesting resilience and potential bullish strength.
*Also, when you hover over the table cells, it shows the tooltip.
*By incorporating these criteria into your TradingView charts, the Mark Minervini Trend Template Indicator can help you identify potential bullish trends, enabling you to make more informed trading decisions.
*Please note that this indicator should be used to support your analysis and combined with additional technical and fundamental analysis for a comprehensive trading strategy.
***Disclaimer:
The Mark Minervini Trend Template is intended for informational and educational purposes only.
Trading involves risk, and you should consult with a financial advisor or conduct your research before engaging in any trading activities.
Add it to your favourites and start using it right away!
ICT Sessions_One Setup for Life [MK]The script plots the High/Low of the following trading sessions:
London - 02:00-05:00
NY AM - 09:30-12:00
New York Lunch - 12:00-13:30
New York PM - 13:30-16:00
Due to the high level of liquidity (resting orders), highs and lows of these sessions may be used as buy/sell areas and also as profit target areas. Typically, buy orders would be initiated below a session low and sell orders would be initiated above a
session high.
The script also plots 'RTH (Regular Trading Hours) Opening Gaps'. The RTH gaps are drawn from the closing price of regular trading at 16:15 (EST) to the open price of regular trading at 09:30 (EST). Gaps can be areas that traders might anticipate to be filled at some time in the future. A gap 'midline' is available if needed and yesterday RTH close line can be shown and extended to the current bar.
This script is simply a means to draw boxes around certain areas/periods on the charts. It is in no way a trading strategy and users should spend much time to study the concept and should also perform extensive back-testing before taking any trades.
By setting the lookback value to a much higher value then the default of 6, users can utilise the script to perform their own backtesting studies.
The above chart shows the default setup of the indicator. Note that the user has to choose how far (in days) to lookback and draw the sessions/gaps.
It is also possible to show the session high//low lines and extend them to the current bar time. If this is used it is advised to keep the lookback period as low as possible to ensure charts stay clean/uncluttered.
All boxes/lines styles/colors are fully customisable.
[FC] Multi EMA Cross Alerts Fltered with RSI and StochThis script prints Green Dots and Red Dots on candle close using Faster EMA ( 5 ) and Slower EMA (10 ) filtering with RSI (50)+ Stochastic %K ( 20 to 80 ) Smoothning(3).
The idea behind is to you use dots for scalping on smaller timeframe(5) ,(10) etc but you can modify all values to better fit your needs.
Explaination for Green Dots and Red Dots:
---> Green dot : 5 Ema crosses above 10 Ema ( i.e faster EMA crosses above slower EMA which signals price is trying to move up
RSI value > 50 (filtering for quick move)
stoch %k value between 20 and 80 ( filtering to know there is leg left in the move and all movement is already not done)
---> Red dot : 5 Ema crosses below 10 Ema ( i.e faster EMA crosses above slower EMA which signals price is trying to move down
RSI value < 50 (filtering for quick move)
stoch %k value between 20 and 80 ( filtering to know there is leg left in the move and all movement is already not done)
Banana RSIBanana RSI is not just ap-PEAL-ing to the eyes!
This simple little indicator provides a New Approach to determining Overbought and Oversold levels, as well as taking advantage of a non-typical smoothing method for this type of indicator.
Banana RSI uses a Cumulative High and Low Average to draw the upper, lower, and midline.
The High and Low Averages use the data only from above or below the Cumulative Average to calculate their respective line.
In simpler terms:
The High average is an average of every value ABOVE the full average.
The Low average is an average of every value BELOW the full average.
This creates an automated method to determine overbought and oversold territory based on the charts historical movement.
Since every chart can be different, these levels change with the chart.
Banana RSI also uses a linear regression smoothing method , by taking advantage of the built-in Least Squares Moving Average, we are able to view a better reacting/less-lagging moving average.
Included are 2 Length-Adjustable LSMA lines to use however needed.
Using the Regression Lines along with the High & Low Averages provides a new view on the classic RSI indicator.
Enjoy!
ICT Killzones + Pivots [TFO]Designed with the help of TTrades and with inspiration from the ICT Everything indicator by coldbrewrosh, the purpose of this script is to identify ICT Killzones while also storing their highs and lows for future reference, until traded through.
There are 5 Killzones / sessions whose times and labels can all be changed to one's liking. Some prefer slight alterations to traditional ICT Killzones, or use different time windows altogether. Either way, the sessions are fully customizable. The sessions will auto fit to keep track of the highs and lows made during their respective times, and these pivots will be extended until they are invalidated.
There are also 4 optional Open Price lines and 4 vertical Timestamps, where the user can change the time and style of each one as well.
To help maintain a clean chart, we can implement a Cutoff Time where all drawings will stop extending past a certain point. The indicator will apply this logic by default, as it can get messy with multiple drawings starting and stopping throughout the day at different times.
Given the amount of interest I've received about this indicator, I intend to leave it open to suggestions for further improvements. Let me know what you think & what you want to see added!
Engulfing Pattern BUY and SELL SystemThis indicator is based on multiple parameters such as the Open, High, Low, and Close of candles. We add confluences such as SMMA crossovers, engulfing candles, and the number of pips that it has moved from it.
The main parameter is the DFS (Distance from SMMA). This will adjust the number of signals you'll get. This parameter is calculated based on the Open price of the signal bar and the 50 SMMA price. If the difference between these two values is greater than the input value, it will not be considered a signal.
The buy/sell signal consists of the following conditions:
1. Engulfing Candle based on conditions
2. SMMA crossover (21 and 50 periods)
3. For BUYS, the RSI value is greater than 49. For SELLS, the RSI value is less than 51.
4. Open price of the signal bar is less/greater than the 50 SMMA for SELLS/BUYS respectively.
5. DFS value is less than or equal to the input value
We recommend backtesting this on FX Pairs, and metals such as Gold. It is not well suited for Crypto or Indices.
ICT TGIF_V2 [MK]The ICT T.G.I.F (Thank God Its Friday) works on the following strategy:
1. Friday makes the High/Low of the Week.
2. The Weekly High/Low range is used to calculate 20-30% levels. (see chart above)
3. Trades are taken in the Friday PM session (NY EST) with the idea that price may retrace to the 20-30% level.
The indicator plots the following levels:
1. Week High
2. Week Low
3. Week Open
3. 20-30% level in upper part of weekly range (only shows if Friday has made the high of the week)
4. 20-30% level in lower part of weekly range (only shows if Friday has made the low of the week)
It is possible to show all historical levels listed above for the purpose of back-testing the TGIF strategy.
Also it is possible to disable all the historical and current levels, in which case only the 20-30% levels will show when Friday has made the Week High/Low (the 20-30% level only shows from 1200-1600 on Friday to keep charts as clean as possible.
Users of this script, and any script for that matter, should always do proper back-testing before taking any trades.
Many thanks should be given to ICT (The Inner Circle Trader) for bringing this strategy to the trading community.
Below shows indicator with all levels turned ON
Below shows indicator with all levels turned OFF (this allows for cleaner charts)
US Inversions & RecessionsUnderstand when the US yield curve inverted and when recessions took place. Select from Federal Funds Rate, 3 month yield, 2 year yield and 10 year yield.
Default ratio = Federal Funds Rate / 10 year yield
When line goes from white to red = inversion
When line goes from red to white = un-inversion
Yellow shading shows times when the rates are inverted.
Blue shading shows when recessions officially occurred.
Default Strategy Template© CN_FX-999
Coded By Christian Nataliano
First Coded In 14/06/2023
Last Edited In 22/06/2023
This Is A Default Strategy Template That Can Make Your Strategy Scripts More Organized With The Benefit Of Having The Same Layouts & Not Needing To Copy Over The Common Codes Such As Displaying Backtest Results, Opening & Closing Trades, Pine Connector Capabilities And A Clean User Input Interface. This Is A Blank Strategy Script So Feel Free To Use It As Your Default Template For Your Future Strategies.
Credits To Some Of The Custom Code In The Scripts To © ZenAndTheArtOfTrading, Especially The Table Data Plotting
itradesize /\ Overnight Session & Silver BulletOvernight Session & Silver Bullet indicator
The indicator can be divided into two separate stuff:
ONS ( Overnight Session ) based on TCM’s ( TheCurrencyMerchant ) theory and Silver Bullet based on what ICT ( InnerCircleTrader ) is teaching to us.
Overnight Session
• ONS will be always based on Chicago 4am to 8am time according to TCM’s CME teaching.
The indicator has the option to show TSO ( Today’s session only ) which is good to have the chart not messed up by it. At this time when it comes to backtesting just turn this off to have the past ONS and SB ranges showed up on your chart.
• Mid line at the ONS range is useful to have as you are able to decide wether price is in a premium or a discount under the ONS.
If Im a buyer target is above the range, if Im a seller target is below the range.
• You are also able to have SD ( Standard Deviation ) lines for price projections. In the variety of TCM’s videos you are able to have a deeper knowledge.
• You can also extend Today’s ONS lines to the very end of the chart which could make an easier looking on the levels you eyeing with.
Silver Bullet
It’s based on New York time as ICT ( Inner Circle Trader ) is always teaching to us that we should use New York time, every time when it comes to his concepts.
Silver Bullets are always be there aiming of an opposing liquidity pool. They are working even on choppy days.
Silver Bullet hours:
• 03:00 - 04:00am NY Time
• 10:00 - 11:00am NY Time
• 02:00 - 03:00pm NY Time
SB highlighted areas could be shown as a box or a range according to your taste, with or without Start/End lines.
Both of them ca be used to form trades.
You should dig yourself into Silver Bullet ( InnerCircleTrader ) and Overnight Session ( TheCurrencyMerchant ) teachings before the use of the indicator.
Simple setups
• Silver Bullet
Look 20-30 minutes before any SB where the Buy or Sell program has started.
Where the first 1m FVG ( Fair Value Gap ) appears under the range, enter the trade.
Expect only a 5 handle move as a beginner.
1m chart is a must for these kind of FVG entries. ( 30s , 15s can also be used )
• ONS
Price is trading aggressively out of the range to take liquidity.
Once price grabbed liquidity that candle on the 3-5m could considered as on order block for the further movement.
If you are trading in the range, then the opposite side can be the target, if its out of the range and trading one sided, then use standard deviations as 0.5 is a minimum target.
Random Signal Generator
Random Signals Indicator generates random long and short signals on the chart. Please note that these signals are purely random and should not be used for actual trading decisions. The indicator allows you to set the minimum number of bars between signals and adjust the sensitivity of the random generation. Use this indicator for educational or testing purposes only, and always rely on proper trading strategies and analysis for real trading.
---
Индикатор случайных сигналов генерирует случайные сигналы на покупку и продажу на графике. Обратите внимание, что эти сигналы полностью случайные и не должны использоваться для принятия реальных торговых решений. Индикатор позволяет установить минимальное количество баров между сигналами и настроить чувствительность генерации случайных значений. Используйте этот индикатор только для образовательных или тестовых целей, а при реальной торговле полагайтесь на надлежащие торговые стратегии и анализ.
[DisDev] D-I-Y Gridbot🟩 This script is a “do-it-yourself” Grid Bot Simulator, used for visualizing support and resistance levels. Prices are divided into grids, or trade zones, that will trigger signals each time a new zone is entered. During ranging markets, each transaction is followed by a “take profit.” As the market starts to trend, transactions are stacked (compare to DCA ), until the market consolidates. No signals are triggered above the upper gridline or below the lower gridline. Unlike the previous version, all grids may be adjusted in real-time by dragging the gridlines up and down to the desired support and resistance levels.
When adding the indicator to a new chart, you must choose six grid levels by clicking on the desired support or resistance price. You can change all of these levels at any time directly on the chart.
⚡ OVERVIEW ⚡
The D-I-Y Gridbot is an interactive tool designed for visualizing support and resistance levels. As a continuation of the original Gridbot Simulator , which has received significant recognition on TradingView, earning over 4000 boosts and an Editor's Pick status. This tool serves not only as an evolved version of its predecessor, but also as an open-source template for developing future gridbots. It aims to foster discussions and facilitate innovations around grid-trading strategies.
One of the new features of this gridbot is the real-time adjustability of all gridlines. Users can move these lines up and down to set their desired support and resistance levels in response to changing market conditions. Additionally, the D-I-Y Gridbot is compatible with multiple timeframes and can be used on most TradingView charts.
Drag gridlines up or down to desired price level.
Key Features 🔑
All gridlines are adjustable in real-time, directly on the chart
Signals can be filtered by a customizable moving average or by VWAP
Customizable support and resistance levels
Potentially increases profitability in ranging markets
Benefits 💸
Customizable Support and Resistance Levels : The D-I-Y Gridbot allows users to set their preferred support and resistance levels, which can be changed at any time directly on the chart. This provides users with the ability to customize their trading parameters based on their strategy and risk tolerance.
Various Trading Strategies : The D-I-Y Gridbot supports various trading strategies, including Mean Reversion, Ranging Markets, and Dollar-cost averaging (DCA). This allows users to capitalize on price reversals, execute buy and sell orders at predetermined levels, and buy more of an asset as the price falls, respectively.
Multi-Timeframe and Versatility : The D-I-Y Gridbot is compatible with multiple timeframes and can be used on any TradingView chart.
Experimental and Educational : The D-I-Y Gridbot is considered a proof-of-concept tool that is both experimental and educational. This can provide traders with a deeper understanding of grid trading strategies and the ability to experiment with different trading parameters and strategies.
⚙️ CONFIGURATION & SETTINGS ⚙️
Inputs 🔧
Trigger : Candle location to trigger the signal. "Wick" will use either high or low, depending on the signal direction. "Close" will use the close price. “MA” will use the selected moving average or VWAP.
Confirmation : Market direction to confirm the candle trigger. "Reverse" will confirm the signal when the price crosses back over the trigger. "Breakout" will confirm when the price breaks out of the trigger.
Number of Support/Resistance zones : 1 = Only Top Grid is Support/Only Bottom Grid is Resistance. 2 = Top two grids are Resistance/Bottom two grids are Support. 3 = Top three grids are Resistance/Bottom three grids are Support
MA Type : Exponential Moving Average (EMA), Hull Moving Average (HMA), Simple Moving Average (SMA), Triple Exponential Moving Average (TEMA), Volume Weighted Moving Average (VWMA), Volume Weighted Average Price (VWAP)
MA Filter : Use Moving Average as a reversion filter for signals. When enabled, no buys when above MA, no sells when below. Use in conjunction with S/R zones to reduce false signals.
Allow Repeat Signals . When enabled, signals will reset when nearest gridline is triggered. When disabled, only one signal will be triggered per gridline.
Line/Fill colors
Gridlines . Adjusts gridline prices manually.
Left : Trigger = Wick. Confirm = Breakout. Buys are signaled when LOW breaks below gridline. Sells are triggered when HIGH breaks above gridline.
Right : Trigger = Close. Confirm = Breakout. Buys are signaled when the candle CLOSES below the gridline. Sells are triggered when the candle CLOSES above the gridline.
Left : Confirm=Breakout. Signals on breaking through the next gridline.
Right : Confirm=Reverse. Signals only when crossing back from the gridline.
S/R Zones=1. Upper gridline is Resistance / Lower is Support. Middle 4 are neutral.
S/R Zones = 3. Upper three gridlines are Resistance / Lower three are Support
Notes:
If gridlines are dragged out of order on a live chart, they will auto-sort into the correct order.
Price levels may be entered in settings, or adjusted in real-time directly on the chart.
When changing symbols, remember to adjust the gridlines to accommodate the new symbol.
Alerts 🔔
Users can set alerts based on their chosen parameters for triggers, confirmations, number of support/resistance zones, and smoothing type, enabling precise control over alert conditions.
💡 USAGE & STRATEGY 💡
Trading Strategies 📈
Mean Reversion: The script can be used to capitalize on price reversals back to the mean.
Ranging Markets: The script excels in ranging markets, executing buy and sell orders at predetermined levels.
Dollar-cost averaging (DCA): The script can be used to execute DCA orders, buying more of an asset as the price falls, and lowering the average cost per unit.
Timeframes and Symbols ⌚
Multi-Timeframe: The indicator is compatible with multiple timeframes.
Versatile: Can be used on any crypto trading pair on TradingView.
🤖 DETAILS & METHODOLOGY 🤖
Algorithm and Calculation 🛡️
Grids are set and adjusted when loading the indicator on the chart and may be customized anytime afterward by clicking and dragging the gridlines on the chart.
Gridlines are updated, sorted, and stored in a float array.
Signals are calculated based on candle trigger, market direction, and previous price level.
📚 ADDITIONAL RESOURCES 📚
Chart Examples 📊
S/R Zones = 3: Three Support and Three Resistance. Filter = 50-period Triple Exponential Moving Average (TEMA)
S/R Zones = 1: One Support, One Resistance, and Four Neutral Zones. Support Zones: Buys only. Resistance Zones: Sells only. Neutral Zones: Grid-dependent
When MA filter is enabled, Buys are only triggered below Moving Average, and Sells are only triggered above.
Trigger = Wick. Confirmation = Breakout. Buys are signaled when Low breaks above the next grid level. Sells are signaled when High breaks below the next grid level.
🚀 CONCLUSION 🚀
The D-I-Y Gridbot is a proof-of-concept, emphasizing its experimental and educational nature. In future versions, we will aim to incorporate concepts such as auto-adjusting grids and angled grids for trending markets. The script is designed to evolve through user feedback and suggestions, shaping its future iterations.
Credit: This is a continuation of the Gridbot series by xxattaxx-DisDev . Explicit permission was granted by user xxattaxx-disdev to re-use all Gridbot code and all materials without restrictions.
⚠️ DISCLAIMER ⚠️
This indicator is a proof-of-concept and is considered experimental and educational. When gridlines are drawn in hindsight, signals appear to be predictive and valid. Future results may always vary when the trend direction changes. Comments and suggestions are encouraged.
This indicator is provided as a tool for traders and should not be used as the sole basis for making trading decisions. Always conduct your own research and consider your risk tolerance before entering any trades.
Correlation for Major Markets This indicator plots the correlation of major markets as an indicator. The major markets covered are the following:
DXY
GC
CL
ES
RTY
ZN
The chart shows all the correlations and cross-correlations of the above instruments plotted together. The user can go in the settings and choose what correlation to see, or if multiple correlations, choose to plot the indicator a second time.
QuantumBands - Tutor Metatrader🚀 QuantumBands - Tutor Metatrader 🚀
📖 Description:
QuantumBands is a powerful technical indicator designed to enhance your trading analysis. It combines the popular Bollinger Bands with a unique twist, providing you with valuable insights into market dynamics. This indicator is presented by the Tutor Metatrader channel, offering expert guidance and education on using the indicator effectively.
🔍 How it Works:
QuantumBands calculates the Bollinger Bands based on a defined period and multiplier. The indicator plots the middle band (basis), the upper band, and the lower band on your chart, visualizing potential price volatility and areas of support and resistance. Additionally, it generates buy and sell signals when the price crosses the bands, helping you identify potential entry and exit points in your trading strategy.
🎯 Key Features:
- Customizable period and multiplier for the Bollinger Bands.
- Clear visual representation of the bands for easy analysis.
- Buy and sell signals for potential trading opportunities.
- Backed by the expertise of Tutor Metatrader channel.
📚 How to Use:
1. Set the desired period and multiplier for the Bollinger Bands.
2. Look for price action near the bands and monitor for potential reversals or breakouts.
3. Pay attention to buy and sell signals generated when the price crosses the bands.
4. Consider additional factors and perform proper risk management before executing trades.
⚠️ Disclaimer: Trading involves risk, and this indicator should be used as a tool to support your analysis. Always perform your due diligence and combine the indicator with other technical and fundamental analysis methods.
🌟 Enjoy using QuantumBands for your trading analysis, and remember to check out the Tutor Metatrader channel for expert guidance and educational content!
💡 Share your feedback and trading experiences with QuantumBands - Tutor Metatrader in the comments below. Happy trading!
Heikin Ashi ROC Percentile Strategy**User Guide for the "Heikin Ashi ROC Percentile Strategy"**
This strategy, "Heikin Ashi ROC Percentile Strategy", is designed to provide an easy-to-use framework for trading based on the Heikin Ashi Rate of Change (ROC) and its percentiles.
Here's how you can use it:
1. **Setting the Start Date**: You can set the start date for the strategy in the user inputs at the top of the script. The variable `startDate` defines the point from which the script begins executing trades. Simply input the desired date in the format "YYYY MM DD". For example, to start the strategy from March 3, 2023, you would enter `startDate = timestamp("2023 03 03")`.
2. **Adjusting the Midline, Lookback Period, and Stop Loss Level**: The `zerohLine`, `rocLength`, and `stopLossLevel` inputs allow you to adjust the baseline for ROC, the lookback period for the SMA and ROC, and the level at which the strategy stops the loss, respectively. By tweaking these parameters, you can fine-tune the strategy to better suit your trading style or the particular characteristics of the asset you are trading.
3. **Understanding the Trade Conditions**: The script defines conditions for entering and exiting long and short positions based on crossovers and crossunders of the ROC and the upper and lower "kill lines". These lines are defined as certain percentiles of the ROC's highest and lowest values over a specified lookback period. When the ROC crosses above the lower kill line, the script enters a long position; when it crosses below the upper kill line, it exits the position. Similarly, when the ROC crosses below the upper kill line, the script enters a short position; when it crosses above the lower kill line, it exits the position.
In my testing, this strategy performed best on a day and hour basis. However, I encourage you to experiment with different timeframes and settings to see how the strategy performs under various conditions. Remember, there's no one-size-fits-all approach to trading; what works best will depend on your specific circumstances, goals, and risk tolerance.
If you find other useful applications for this strategy, please let me know in the comments. Your feedback is invaluable in helping to refine and improve this tool. Happy trading!
The Z-score The Z-score, also known as the standard score, is a statistical measurement that describes a value's relationship to the mean of a group of values. It's measured in terms of standard deviations from the mean. If a Z-score is 0, it indicates that the data point's score is identical to the mean score. Z-scores may be positive or negative, with a positive value indicating the score is above the mean and a negative score indicating it is below the mean.
The concept of Z-score was introduced by statistician Carl Friedrich Gauss as part of his "method of the least squares," which was an important step in the development of the normal distribution and Z-score tables. It's a key concept in statistics and is used in various statistical tests.
In financial analysis, Z-scores are used to determine whether a data point is usual or unusual. You can think of it as a measure of how many standard deviations an element is from the mean. For instance, a Z-score of 1.0 would denote a value that is one standard deviation from the mean. Z-scores are also used to predict probabilities, with Z-scores having a distribution that is expected to be normal.
In trading, a Z-score is used to determine how often a trading system may produce a string of winners or losers. It can help a trader to understand whether the losses or profits they see are something that the system would most likely produce, or if it's a once in a blue moon situation. This helps traders make decisions about when to start or stop a system.
I just wanted to play a bit with the Z-score I guess.
Feel free to share your findings if you discover additional applications for this strategy or identify timeframes where it appears to perform more optimally.
How it works:
This strategy is based on a statistical concept called Z-score, which measures the number of standard deviations a data point is from the mean. In other words, it helps determine how unusual or usual a data point is.
In the context of this strategy, Z-score is applied to a 10-period EMA (Exponential Moving Average) of Heikin-Ashi candlestick close prices. The Z-score is calculated over a look-back period of 25 bars.
The EMA of the Z-score is then calculated over a 20-bar period, and the upper and lower thresholds (bounds for buy and sell signals) are defined using the 90th and 10th percentiles of this EMA score.
Long positions are taken when the Z-score crosses above the lower threshold or crosses above the mid-line (50th percentile). An additional long entry is made when the Z-score crosses above the highest value the EMA has been in the past 100 periods.
Short positions are initiated when the EMA crosses below the upper threshold, lower threshold or the highest value the EMA has been in the past 100 periods.
Positions are closed when opposing entry conditions are met, for example, a long position is closed when the short entry condition is true, and vice versa.
Set your desired start date for the strategy. This can be modified in the timestamp("YYYY MM DD") function at the top of the script.
Focused Average True RangeThe Focused Average True Range (FATR) is a modified version of the classic Average True Range (ATR) indicator. It is designed to provide traders with more accurate data on volatility, minimizing the impact of sharp spikes in volatility.
The main distinction between the Focused ATR and the standard ATR lies in the utilization of percentiles. Instead of calculating the average price change as the regular ATR does, the Focused ATR selects a value in the middle of the range of price changes. This makes it less sensitive to sharp changes in volatility, which can be beneficial in certain trading scenarios.
Settings:
Percentile. This parameter determines which value in the series of price changes will be used. For example, if the percentile is set to 50, the indicator will use the median value of the series of price changes. This is the default value. Imagine a class of students lined up by height, and instead of calculating the average height of all students, we take the height of the students in the middle of the line. Similarly here, we take the ATR from the middle of the series. Increasing the percentile will lead to the use of a value closer to the upper bound of the range, while decreasing the percentile will lead to the use of a value closer to the lower bound.
How to Use:
The Focused ATR is especially useful for determining the sizes of stop-losses and take-profits, thanks to its ability to consider the value in the middle of the series of price changes rather than the average value. This allows traders to more accurately assess volatility and risk, which in turn can assist in optimizing trading strategies
---
Фокусированный Средний Истинный Диапазон (Focused ATR) представляет собой модифицированную версию классического индикатора ATR. Он разработан с целью предоставления трейдерам более точных данных о волатильности, минимизируя влияние резких скачков волатильности.
Основное отличие Фокусированного ATR от стандартного ATR заключается в использовании процентиля. Вместо того, чтобы рассчитывать среднее значение изменений цены, как это делает обычный ATR, Фокусированный ATR выбирает значение в середине диапазона изменений цены. Это делает его менее чувствительным к резким изменениям волатильности, что может быть полезно в некоторых торговых сценариях.
Настройки:
Процентиль. Этот параметр определяет, какое значение в ряду изменений цены будет использоваться. Например, если процентиль равен 50, то индикатор будет использовать медианное значение ряда изменений цены. Это стандартное значение. Представьте себе, что ученики класса выстроились по росту, и мы считаем не средний рост всех учеников, а берем рост учеников из середины колонны. Так и тут. Мы берем ATR из середины ряда. Увеличение процентиля приведет к использованию значения, ближе к верхней границе диапазона, в то время как уменьшение процентиля приведет к использованию значения, ближе к нижней границе.
Как использовать:
Фокусированный ATR особенно полезен для определения размеров стоп-лоссов и тейк-профитов, благодаря своей способности учитывать значение в середине ряда изменений цены, а не среднее значение. Это позволяет трейдерам более точно оценить волатильность и риск, что в свою очередь может помочь в оптимизации торговых стратегий.
.
infoThis is a very simple script that i use to add useful info to my trading view charts.
specifically i track following :
1. VIX
2. RSI
3. ticker name and timeframe
Feel free to change, modify as per your requirements
Trading Session TemplateDescription:
The Trading Session Template Indicator is a powerful script that allows traders to customize their own trading session time range on a chart. With this indicator, you have the flexibility to define specific hours during which you prefer to focus your trading activities. The example chart showcases the New York session hours, but you can easily adapt it to any desired time range based on your trading strategy and preferences.
Key Features:
Customizable Trading Session: The indicator empowers you to define your own trading session time range, tailored to your preferred market sessions or specific trading hours. This flexibility ensures that the indicator aligns with your unique trading strategy.
Highlighted Trading Session: When a new trading day begins, the script automatically scans for the specified time range. Once the first candle within the range begins printing, the background color of the chart is highlighted, indicating the beginning of the trading session. When the last candle within the range is closed, the background color returns to normal.
Focus on Specific Market Sessions: This indicator is particularly useful for traders who prefer to trade certain market sessions or specific hours during the day. By customizing the trading session, you can better align your trading activities with specific market conditions and trading opportunities.
Candle Pattern Detection: The indicator includes the ability to detect candle patterns such as Doji, Engulfing, Hammer, and Shooting Star. You can activate the desired candle patterns and set up alerts for them. When an alert is triggered, indicating the formation of a specific candle pattern, you can further analyze the market and make informed trading decisions.
ATR Filter: The indicator offers an ATR (Average True Range) filter to limit noise and focus on candle patterns with a size comparable to the ATR. You can set a minimum and maximum size for a candle compared to the ATR. This helps you filter out smaller or larger candles that may not align with your trading preferences.
Stop Loss (SL) and Take Profit (TP) Levels: When a candle pattern is detected, based on the ATR, the indicator can display suggested Stop Loss and Take Profit levels. This feature provides additional guidance for risk management and potential profit targets.
User-Friendly Interface: The indicator provides a user-friendly interface with adjustable settings and switches for customization. Tooltips are available to guide you through the various options and configurations, making it easy to adapt the indicator to your trading style and preferences.
Note:
The Trading Session Template Indicator is designed for timeframes lower than 1D. It does not plot any information on timeframes of 1D and higher.
Disclaimer:
The Trading Session Template Indicator is provided for informational and educational purposes only. Trading in the financial markets involves risk, and you should only trade with funds that you can afford to lose. The indicator's past performance is not indicative of future results. Always conduct your own research and due diligence before making any investment decisions. The creator of this indicator shall not be held responsible for any losses or damages incurred from the use of this indicator.
D-BoT Alpha 'Short' SMA and RSI StrategyDostlar selamlar,
İşte son derece basit ama etkili ve hızlı, HTF de çok iyi sonuçlar veren bir strateji daha, hepinize bol kazançlar dilerim ...
Nedir, Nasıl Çalışır:
Strateji, iki ana girdiye dayanır: SMA ve RSI. SMA hesaplama aralığı 200 olarak, RSI ise 14 olarak ayarlanmıştır. Bu değerler, kullanıcı tercihlerine veya geriye dönük test sonuçlarına göre ayarlanabilir.
Strateji, iki koşul karşılandığında bir short sinyali oluşturur: RSI değeri, belirlenen bir giriş seviyesini (burada 51 olarak belirlenmiş) aşar ve kapanış fiyatı SMA değerinin altındadır.
Strateji, kısa pozisyonu üç durumda kapatır: Kapanış fiyatı, takip eden durdurma seviyesinden (pozisyon açıldığından beri en düşük kapanış olarak belirlenmiştir) büyükse, RSI değeri belirlenen bir durdurma seviyesini (bu durumda 54) aşarsa veya RSI değeri belirli bir kar al seviyesinin (bu durumda 32) altına düşerse.
Güçlü Yönleri:
İki farklı gösterge (SMA ve RSI) kullanımı, yalnızca birini kullanmaktan daha sağlam bir sinyal sağlayabilir.
Strateji, karları korumaya ve fiyat dalgalanmalarında kayıpları sınırlamaya yardımcı olabilecek bir iz süren durdurma seviyesi içerir.
Script oldukça anlaşılır ve değiştirmesi nispeten kolaydır.
Zayıf Yönleri:
Strateji, hacim, oynaklık veya daha geniş piyasa eğilimleri gibi diğer potansiyel önemli faktörleri göz önünde bulundurmaz.
RSI seviyeleri ve SMA süresi için belirli parametreler sabittir ve tüm piyasa koşulları veya zaman aralıkları için optimal olmayabilir.
Strateji oldukça basittir. Trade maliyetini (kayma veya komisyonlar gibi) hesaba katmaz, bu da trade performansını önemli ölçüde etkileyebilir.
Bu Stratejiyle Nasıl İşlem Yapılır:
Strateji, short işlemler için tasarlanmıştır. RSI, 51'in üzerine çıktığında ve kapanış fiyatı 200 periyotluk SMA'nın altında olduğunda işleme girer. RSI, 54'ün üzerine çıktığında veya 32'nin altına düştüğünde veya fiyat, pozisyon açıldığından beri en düşük kapanış fiyatının üzerine çıktığında işlemi kapatır.
Lütfen Dikkat, bu strateji veya herhangi bir strateji izole bir şekilde kullanılmamalıdır. Tüm bu çalışmalar eğitsel amaçlıdır. Yatırım tavsiyesi içermez.
This script defines a trading strategy based on Simple Moving Average (SMA) and the Relative Strength Index (RSI) indicators. Here's an overview of how it works, along with its strengths and weaknesses, and how to trade using this strategy:
How it works:
The strategy involves two key inputs: SMA and RSI. The SMA length is set to 200, and the RSI length is set to 14. These values can be adjusted based on user preferences or back-testing results.
The strategy generates a short signal when two conditions are met: The RSI value crosses over a defined entry level (set at 51 here), and the closing price is below the SMA value.
When a short signal is generated, the strategy opens a short position.
The strategy closes the short position under three conditions: If the close price is greater than the trailing stop (which is set as the lowest close since the position opened), if the RSI value exceeds a defined stop level (54 in this case), or if the RSI value drops below a certain take-profit level (32 in this case).
Strengths:
The use of two different indicators (SMA and RSI) can provide a more robust signal than using just one.
The strategy includes a trailing stop, which can help to protect profits and limit losses as the price fluctuates.
The script is straightforward and relatively easy to understand and modify.
Weaknesses:
The strategy doesn't consider other potentially important factors, such as volume, volatility, or broader market trends.
The specific parameters for the RSI levels and SMA length are hard-coded, and may not be optimal for all market conditions or timeframes.
The strategy is very simplistic. It doesn't take into account the cost of trading (like slippage or commissions), which can significantly impact trading performance.
How to trade with this strategy:
The strategy is designed for short trades. It enters a trade when the RSI crosses above 51 and the closing price is below the 200-period SMA. It will exit the trade when the RSI goes above 54 or falls below 32, or when the price rises above the lowest closing price since the position was opened.
Please note, this strategy or any strategy should not be used in isolation. It's important to consider other aspects of trading such as risk management, capital allocation, and combining different strategies to diversify. Back-testing the strategy on historical data and demo trading before going live is also a recommended practice.