Correlations P/L Range (in percent)This script shows the inefficiency of the markets.
Comparing two (correlated) symbols, the values above 0 means the main symbol (at the top of the graph)
outperforms the other. A value below 0 means the main symbol underperforms the other.
The band displays different entries until the last candle. Any P/L (of the band range)
is visible in the band. Example: given a band range length of 5, then all last 5 values
are compares with the current value for both symbols. Or in other words:
If symbol A, lets say ETHUSD outperforms, lets say BITCOIN (the main symbol), in the last
5 candles, then we would see all values of the band are negative.
Any question, comment or improvements are welcome.
Cari dalam skrip untuk "range"
first hour high and low by akash mauryaThis indicator marks the first hour's high and low with a line with the percentage of range height.
First hour high and low generally act as heavy support and resistance or say major key areas in daily intraday charts.
You can adjust the settings if you want to see previous days' hour range lines or not.
This indicator will automatically create hour-range lines after an hour of market opening.
ATR vs Day Trading Range and PercentageThis indicator displays the Current Daily ATR vs the current Day Range and displays the percentage.
For example if the Daily ATR is $5 and the current range of the day is $10 this would be 200% the original move.
It is color coded (and can be modified) to change color when the Daily range is over 100% the ATR.
The time frame can be changed from Daily just be aware you must be on a lower timeframe then selected. So if you want to compare the current 30 minute ATR to the current 30 minute range you will need to be showing a 30 min chart or lower for it to calculate correctly.
EMA MTF PlusI like trading the 1 minute and 3 minutes time-frames. I'm what is commonly called a "scalper". Long term investments yes, I have some, but for trading, I don't have neither the time,
nor the patience to wait hours or days for my trade to be complete.
This doesn't mean I discount the higher time-frames, no, I actually rely heavily on them. I found that EMAs do a decent job as support/resistance, sometimes to a tick level of precision. And this is important for a 1 minute trader.
As such, I made this script that tracks the higher time-frames EMAs and displays the last value as a line.
I do not need the whole EMA, I'm not interested in crossovers or crossunders, these are anyway late signals for me.
What's with the triangles? These are local tops/bottoms , candles that have a have decent size of the wick. These tops and bottoms are by no means "final", they are merely a rejection at certain levels of price. Due to markets complexities (and human erratic behaviors hehe) these levels could be breached at the very next candle. For a more "final" version (nothing is really final but..) I added Schaff Trend Cycle as filter, so a triangle will pop only when a trend is mature enough ( STC with a value near 0 or near 100).
Colored bars. When the body of the candle is big, it shows strength. Strong bars tend to have follow through, especially when breaking key levels. The script looks at the body of the candle and compares it with ATR (Average True Range), if it's at least 0.8 of ATR it changes the bar color to yellow (bull candles) or fuchsia(bear candles).
Range identifier. This code is copied from Lazy Bear (if there are any issues please let me know), it's very useful in conjunction with colored bars.
I look for breakout candles that go outside of the range as a signal for a trade.
There are many ways in which this script can be useful, like trading mean reversions or momentum trades (breakouts) or simply trend following trades.
I hope you guys find it useful, you can play with default values and change them as you like, these are what I found to be working best for me and my trading universe (mostly crypto).
Special thanks for the original work of:
LazyBear
everget
Jim8080
B.Bands | Augmented | Intra-range | Long-OnlyHere you have the essential trading engine based on Bollinger Bands .
The idea behind is to trade the intra-range of the bands.
How is going to work?
Define which Bollinger Bands we want to use. Classic Bollinger Bands or Augmented Bollinger Bands . Without selecting, the algorithm doesn't show a strategy.
Define the length of the Moving Average and the Standard Deviation by default the classic 20-2.
Define the Bollinger Bands Spread Max Range (Upper-Lower) to be able to determine wheter or not you're in a price range or potential breakout.
Define data source to trigger exit and entry points.
Define profit based on Middle Band or Opposite Band.
Define Stop Loss % and activate Trailing Stop if desired with the percentage required.
Determine if you want to sell only on profit after triggering the entry signal. * Note Stop Loss remains activated.
Choose a date range if you want to study a specific period.
Bear in mind, this is the essential trading engine, open for you to test, try and improve under your requirements. You can determinate when is the ideal market to implement it based on many other indicators. Maybe you wish to change the stop loss settings for ATR, previous low, etc. Totally up to you.
Note the script comes with initial capital, fee % and slippage by deault. This may change for your assets. Make sure you define it in advance.
NOTE: If you trade assets such BTC, you must update the initial capital. By default 5000 (USD) The script doesn't support fraction trading such 0.01BTC.
Will be updated on next version.
Feel free to get in touch if you've got any question.
Koalafied Initial Balance Levels and ExtensionsShows the Initial Balance and range extensions for either the Daily session or individual market sessions (Asia, London, New York).
Initial Balance is the range represented by the first two segments (typically half-hour segments) of a trading session. Range extensions are a function of the longer-term trader participation, pushing price outside of the beginning 'fair' range established by the local traders. With the introduction of 24/7 markets the initial balance is often now regarded as less important than in the past, however re-calculating IB for multiple trading sessions may reinstitute insight to Market Direction and Confidence
EMA deviation & Range with barcolor changeThis indicator includes an EMA, a range and outer lines similar to the Bollinger Bands, but with a different calculation (which also becomes apparent once you compare the two). This indicator fits very well with the EMA pullback strategy.
The color of the candles changes depending on where it is located.
Above the EMA - green
Below it - red
Inside the range - black
All colors as well as lines are customizable under the Style tab.
The "Deviation" can be set to 0, here there are only slight deviations.
The EMA range can be adjusted in 0.1 steps to achieve the highest possible accuracy of the pullbacks.
If you have any questions, please don't hesitate to contact me.
Relative Strength Index with Range ShiftThis RSI implements the additional concept of "Range Shift" to accommodate speculative bias towards a Bullish, Strong Bullish, Bearish, or Strong Bearish outlook.
Select the range bias in the settings and get better color coded feedback from the indicator.
Bar StatisticsThis script calculates and displays some bar statistics.
For the bar length statistics, it takes every length of upper or lower movements and calculates their average (with SD), median, and max. That way, you can see whether there is a bias in the market or not.
Eg.: If for 10 bars, the market moved 2 up, then 1 down, then 3 up, then 2 down, and 2 up, the average up bars length would be at 2.33, while the average for the down length would be at 1.5, showing that upper movements last longer than down movements.
For the range statistics, it takes the true range of each bar and calculates where the close of the bar is in relation to the true low of it. So if the closing of the bar is at 10.0, the low is at 9.0, and the high is at 10.2, the candle closed in the upper third of the bar. This process is calculated for every bar and for both closing prices and open prices. It is very useful to locate biasses, and they can you a better view of the market, since for most of the time a bar will open on an extreme and close on another extreme.
Eg.: Here on the DJI, we can see that for most of the time, a month opens at the lower third (near the low) and closes at the upper third (near the high). We can also see that it is very difficult for a month to open or close on the middle of the candle, showing how important the first and the last day are for determining the trend of the rest of the month.
Date Range DemonstrationThis is a simple strategy that demonstrates how to easily incorporate a date range into a strategy. This allows you to limit your backtesting to a specific range of dates, which is vital if you want to compare different time frames.
To use:
Copy the code block between the '////' lines into your strategy.
Add the variable 'inDateRange' to your entry and/or exit strategy conditions.
MORNING RANGE SELECTIONThis script marks the morning range high and low of the 1st candle .
Range can be 15 mins ,30 mins ,1Hr as selected by the user.
HIGH are marked as red because it act as resistance.
LOW are marked as green because it will act as support.
Average Daily Range Fibonacci LevelsThe Average Daily Range is a simple concept, calculated as the difference between daily highs and lows averaged over some period. This indicator uses that range in conjunction with Fibonacci ratios to create zones centered on the day's open that tends to act as areas of support and resistance.
The thicker White lines are the ADR levels; all other lines are the same value adjusted by the various Fibonacci values.
A simpler version of this concept can be seen in my other script, Average Daily Range Zones, which does not include the Fibonacci ratio zones.
Thanks to @Hank Hill for the original idea and TV for the feedback and support on the use of the security() function.
Also thanks to @GoldenCross for the Fibonacci obsession.
Average Daily Range ZonesThe Average Daily Range is a simple concept, calculated as the difference between daily highs and lows averaged over some period. This range is is overlaid and centered on the day's open, and tends to act as areas of support and resistance . This indicator provides two aggregation periods, creating a range that represents volatility in the ADR; a wider spread indicates greater recent volatility , and vice-versa.
Thanks to @Hank Hill for the original idea and ToS script this is based on, and TV for the feedback and support on the use of the security() function.
Developing Pivot Range [Swastik]This is the developing cpr indicator made by Swastik.
It shows how the cpr is developing as the day is progressing.
The colour of the range is red when tc is below bc and green when tc is above bc .
While calculating the value of cpr , the high is the high from starting of the session and low is the low from starting of the session till that specific candle.
This also shows that the trend is developing.
If the colour is red and the range starts widening, it means downtrend has started to develop and
when the colour is green and range starts widening, it means uptrend is developing.
Growth RangeSimilar to value range script published earlier:
Trying to plot growth parameters over two bollinger bands to visualize where they are headed.
Input parameters include:
growthParameter
EARNINGS_PER_SHARE_BASIC
BOOK_VALUE_PER_SHARE
TOTAL_REVENUE
NET_INCOME
EARNINGS_ESTIMATE
SALES_ESTIMATES
EARNINGS_PER_SHARE_BASIC_ONE_YEAR_GROWTH
REVENUE_ONE_YEAR_GROWTH
Moving Average Type : Moving average type for Bollinger band
Length : Refers to length as last n reportings.
Sd1 and Sd2 : Two standard deviations to form band
showBands : If unchecked will hide the band. But, will show growth param color coded
Average True Range Percentage (ATRP)What is ATRP?
Average True Range Percentage (ATRP) expresses the Average True Range (ATR) indicator as a percentage of a bar’s closing price.
How does this indicator work?
ATRP is used to measure volatility just as the Average True Range (ATR) indicator is. ATRP allows securities to be compared, where ATR does not.
ATR measures volatility at an absolute level, meaning lower priced stock will have lower ATR values than higher price stocks.
ATRP displays the indicator as a percentage, to allow for securities trading at different prices per share to be compared.
Reference: www.fidelity.com
Central Pivot Range - Daily and Weeklyentral Pivot Range is a versatile technical indicator usually comprising of 3 levels – a central pivot point (pivot), top central level (TC), and bottom central level (BC).
The calculation of the levels is very simple:
TC = (Pivot – BC) + Pivot
Pivot = (High + Low + Close)/3
BC = (High + Low)/2
As you can see from the above CPR formula, all the 3 levels are calculated using just 3 variables, High, Low, and Close price. When you add CPR levels in a stock’s chart, TC is highest, the pivot is at the center and BC is the lowest level. However, depending on market conditions TC’s value may be lower than BC. Irrespective of the calculation, the highest of the 3 values is typically termed as TC and the lowest is BC.
The fundamental idea behind this indicator is that the particular day’s trading range captures everything about the market sentiment, and hence this range can be used to predict the price movement of the following days.
Value RangeHere is another attempt to chase value based on technical analysis.
This is extended version of PE range script published earlier.
Instead of just PE, this script contains several other factors which defines value. You can chose which factor to look at from input dialog:
Possible value factors included in this script are:
Price to Earnings
Price to Sales
Price to Book
PE - Forwarding
PS - Forwarding
Price to Cashflow
Enterprise Value to EBITDA
Enterprise Value to Cashflow
Some of these can be added to chart directly from financials. But, the script also calculate range based on donchian channel or bollinger bands. Instead of short periods, we are looking for periods in terms of years. Rest of things remain same.
Fat Side PathI got the idea for a narrow Donchian Channel with a short lookback period which closely follows the price fluctuation in which the sides of the channel have a thickness according to the range of the last touching candle.
Any channel, be it Donchian, Keltner, Bollinger Bands or Parallel, has an upside and a downside, touching the upside is a buy signal as this may initiate an uptrend, the downside a sell signal because a down trend may come.
This gave me the idea to make only the last touched side fat, thus creating visible switching between uptrend and downtrend. However this is ‘too digital’, as in practice also periods of no trend occur in which signaling a trend would give a false signal. In a Donchian channel (and also Bollinger Bands) such periods are marked by narrowing the channel. So I gave a no trend signal to the sides when the channel is narrower than a minimum width to call a trend. I gave the thing nice colours and proper default settings.
Use of the channel in trading.
I think this thing can be useful for swing trading. In channels two typical things may happen that should be noted by the trader, these are LB, Leaving the Border, which signals a trend reversal and FTT, Failure To Traverse, i.e. the price doesn’t manage to cross the channel to the other side. This affirms the trend. FTT’s are not expected in short lookback channels like this path (Sidenote: Fibonacci levels can be regarded as predictions where FTT’s may occur). The fat side indicates direction. Because somehow trends seem to end with a notable range extension, this channel sometimes produces a “Big Blob” where the trend reverses.
I intend to use this thing together with my Keltner Fibzones channel, where the zones serve as a ‘landscape’ in which the Fat Side Path meanders providing ‘comments’ on the short term price movements.
open range break out intraday with tpHI.. friends publishing ::********************************* open range break out intraday with tp********************************************
This indicator help intra day trader to when to short or long and when to take profit .this is basically chrismoody"s open rang breakout but i find it little confusing so i made some changes..i hope it will help traders...its automatically draw line on 15 min open and low on 5 min chart..so its save ur time ..and also added take profit line so we can book tp1 which is 0.77% and tp2 which is 1.6%...u can also change its setting as ur trading style.. u can also put alerts for for upper range and lower rage break out and tp1/tp2....so u don't need to sit infornt of ur terminal
True Range Breakout [racer8]TRB (True Range Breakout) plots the current TR (true range) as well as the previous TR high over n periods. If the current TR is greater than the previous TR high, then the TR histogram will become red. Red signals high volatility. Enter trades only when the histogram is above the TR high line. Happy trading! 🥳
Trendfinding and RangeThe indicator shows the trading range and the average trading range over a freely selectable period.
Der Indikator zeigt die Handelspanne und die durchschnittliche Handelspanne über eine frei wählbare Periode.
The colored price bars signal possible entry points into a beginning trend. The colors aqua and blue show possible entries in an upward trend, the colors dark red and red show possible entries in a downward trend. The breakout above the respective high / low of the colored bar is traded. The entry signal elements arise when three higher / lower segments have been formed. Three segments can be three higher lows, three lower highs, three extremes in a row or segments with price bars in between. It goes without saying that these signals must not be traded on their own, you will need further confirmation.
Die farbigen Kursstäbe signalisieren mögliche Einstiegspunkte in einen beginnenden Trend. Die Farben aqua und blue zeigen mögliche Einstiege in einem Aufwärtstrend, die Farben dunkelrot und rot zeigen mögliche Einstiege in einem Abwärtstrend. Der Ausbruch über das jeweilige Hoch/ Tief des colorierten Kursstabes wird gehandelt. Die Einstiegssignalele entstehen, wenn drei höhere/ tiefere Segmente gebildet wurden. Drei Segmente könne drei höhere Tiefs, drei tiefere Hochs, drei Extreme in Folge oder Segmente mit dazwichen liegenden Kursstäben sein. Es versteht sich von selbst, dass diese Signale nicht für sich allein gehandelt werden dürfen, Sie benötigen weitere Bestätigungen.
Session High and Session LowI have heard many people ask for a script that will identify the high and low of a specific session. So, I made one.
Important Note: This indicator has to be set up properly or you will get an error. Important things to note are the length of the range and the session definition. The idea is that you would set it up for what's relevant to your trading. Going too far back in the chart history will cause errors. Setting the session for a time that is not on the chart can cause errors. If you set it to look farther back than there are bars to display, you may get an error. What I've found is that if you get an error, you just need to change the settings to reflect available data and it will be able to compile the script. At the time of its publishing, the default range start is set to 10/01/2020. If you're looking at this years later, you'll probably have to set the range to something more recent.
Features:
Plot or Lines:
Using Plot (displayed), the indicator will track the high/low from the end of the session into the next session. Then at the start of the next session, it will start tracking the high/low of that session until its end, then track that high/low until the start of the next session then reset.
Using lines, it will extend horizontal lines to the right indefinitely. The number of sessions back that the lines apply to is a user-defined number of sessions. There are limits to the number of lines that can be cast on a chart (roughly 40-50). So, the maximum number of sessions you can apply the lines to is the last 21 sessions (42 lines total). That gets really noisy though so I can't imagine that is a limiting factor.
Colors:
You can change the background color and its transparency, as well as turn the background color on or off.
You can change the highs and lows colors
You can adjust the line width to your preference
Session Length:
You can use a continuous session covering any user-defined period (provided its not tooooo many candles back)
You can define the session length for intraday
You can exclude weekends
Display Options:
You can adjust the colors, transparency, and linewidth
You can display the plotline or horizontal lines
You can show/hide the background color.
You can change how many sessions back the horizontal lines will track
Let me know if there's anything this script is missing or if you run into any issues that I might be able to help resolve.
Here's what it looks like with Lines for the last 5 sessions and different background color.