Historical Range (Using eStrategy library)⬜ The script is intended to cover few things.
▶ Strategy testing framework based on eStrategy library
▶ Using historicalrange of values for identifying better entry and exits.
This is also built on top of the Systematic Investment Plan script published here
⬜ Strategy testing framework
Strategy testing framework is different from tradingview default strategy testing from few ways to suit the needs of systematic investments.
▶ Supports recurring investment on top of initial investment to emulate adding further funds to the investment bucket on regular basis.
▶ Better calculation of drawdowns based on daily equity rather than drawdown calculated only on close of trade.
▶ Provides better control over how much strategy can reduce and reload
Having said that, this framework is not intended as replacement for tradingview strategy framework. It is not as comprehensive as tradingview strategy framework. But, created to address few specific styles of strategy.
▶ No detailed trade stats on individual trades. But, this can be implemented in future versions
▶ At present only facilitates long positions.
▶ UI features such as plotting trades on chart are not available.
▶ Does not take into consideration of slippage and brokerage - this is not an issue because the framework is not meant for short term trades. It is only made for daily timeframes.
▶ No pyramiding or leverage possible.
And many more...
Framework can be used for similar strategies based on market timing with few small changes.
⬜ Historical Range Strategy
Concept here is, instead of taking indicators such as oscillators as is, use historical percentile to derive better oversold and overbought conditions. Strategy provides different options to base historical range. This can either be based on
▶ Band percent
▶ Oscillator
Different choices of bands and oscillators are also available to chose. However, have not done extensive testing on all the combinations.
⬜ Settings
▶ Initial and recurring investment settings (As confirm inputs)
▶ Buy and hold and strategy specific settings to be used for stat calculation
▶ Band and oscillator parameters
These are straightforward parameters which is used for defining the base of either bands or oscillators.
▶ Percentile moving average parameter
Percentile MA is used with Percentile to find entry and exit signals based on crossover and crossunder.
Feedbacks and suggestions welcome.
在腳本中搜尋"range"
Average Daily Range x 3 by SergeIndicator plots 3 sets of daily extremes based on Average Daily Ranges, to identify probable intraday reversal areas.
The following can be changed in Settings for fine-tuning:
Look-back days for ADR calculation. By default they are set to 5, 7, and 14 days.
Method of calculation of average. Simple by default, but can be changed to Exponential (tick the 'EMA' checkbox).
Please note that this indicator is used for intraday trading only.
[JL] Trend or RangeJust want to make an easy indicator to show trend or range.
ToR idea is based on the simple concept:
Range will have more cross than trend
So I calculate difference of two moving average
Then divide ATR to get how many virtual bars in the difference
Calculate sum of virtual bars during the period.
So more virtual bars, more chance to be trend.
will make a table to compare many pairs on one chart.
Central Pivot Ranges (CPR) & 3 x VWAP & BarcolorsThis Script Combines daily, weekly and monthly VWAP (Volume Weighted Average Price) with a intraday, daily, weekly and monthly CPR (Central Pivot Range) - which is considered by some traders as the bread and butter of the market for a reason. A combination of Multiple CPRs and VWAPs from different timeframes can provide you with interesting confluences that can give you more confidence in performing your trades.
CPR Features:
- The option to look at current or developing CPRs.
- A resolution selector for all 4 CPRs
- Options to hide and show Tops, Bottoms and Pivots separately
- Various Styling options
- Alerts
VWAP Features:
- 3 x preset VWAPs set to daily, weekly and monthly
- VWAP Lines from the daily O&C or H&L
- Previous VWAP for S/R
- Line Styling options
General Features:
- Barcolors by pivots crossed or daily, weekly and monthly VWAP.
- Barcolors by daily VWAP additionally contain an O and C check instead of just taking the price above or below the VWAP into consideration.
Central Pivot Ranges & Pivot based BarcolorsThe Central Pivot Range derived from the pivot of a defined higher timeframe is the considered by some traders as the bread and butter levels of the market for a reason.
A combination of 3 CPRs from different timeframes can provide you with some some more insight into the assets your analysing and might offers you some more confidence in performing your trades.
This script also offers you an extensive amount of options like:
- The option to look at current or developing CPRs.
- A resolution selector
- Options to hide and show Tops Bottoms and Pivots seperately
- Color selectors depending on the close price up or down the pivots
- And an option to colorize your candles by pivots crossed.
ROS [Range of Swag]Creates any multitimeframe level and marks opens, highs lows and midpoints
Comes with labels (hidable)
Works on Bar-by-bar replay
Customizable color!
The default 3 ranges are weekly, monthly, and quarterly in that order.
If you want to change the labels change it in the code... or just hide them.
Big thanks to @spacemanbtc @Kriswaters for the code (levels and session breaks) respectively.
Will be looking to improve it
vol_bracketThis simple script shows an "N" standard deviation volatility bracket, anchored at the opening price of the current month, week, or quarter. This anchor is meant to coincide roughly with the expiration of options issued at the same interval. You can choose between a manually-entered IV or the hv30 volatility model.
Unlike my previous scripts, which all show the volatility bracket as a rolling figure, the anchor helps to visualize the volatility estimate in relation to price as it ranges over the (approximate) lifetime of a single, real contract.
Session Time RangesHave you ever wondered if you are trading at the right time of the day or feel like all the good trades happen when you are sleeping? Well now you can check your theory :)
This Script allows you to highlight a time range on your chart over a 24hour time period. For example 3AM to 6AM
The script has two time variables, set your start time and end time based on a 24 hour clock and set the time zone offset variable to match your charts time zone. For example New York -4 (for utc just enter 0 for no offset )
This is a quick script I put together so hopefully it is error free enjoy :)
Supertrend BandsSupertrend Bands
What is the Supertrend indicator?
"The Supertrend indicator is a trend following overlay on your trading chart, much like a moving average, that shows you the current trend direction.
The indicator works well in a trending market but can give false signals when a market is trading in a range.
It uses the ATR (average true range) as part of its calculation which takes into account the volatility of the market. The ATR is adjusted using the multiplier setting which determines how sensitive the indicator is."
"For the basic Supertrend settings, you can adjust period and factor:
- The period setting is the lookback for the ATR calculation
- Factor is the what the ATR is multiplied by to offset the bands from price"
How to use this indicator
This indicator is inspired by a strategy I found. It includes four Supertrend indicators, each with different settings that displays trend strength and support/resistance zones. The default settings are optimal for cryptocurrency but do work quite well for traditional also. I highly recommend you try experimenting with different settings, increasing them to suit the instrument.
The bands are set from low to high, Band 1 being the fastest and Band 4 being the slowest. Band 4 is the one that sets the overall trend so when price is above Band 4, the trend is bullish and vice versa. Trend is strongest when price is above/below Band 1 and gets weaker as it filters through each band. Band 4 provides the strongest support/resistance and if that breaks the trend flips.
In the menu, you will see an option called "Remove Anti Trend?". It is enabled by default and it removes any bearish/resistance bands when the trend is up and any bullish/support bands when the trend is down. When turned off, it will show all Supertrend Bands as they are by default.
Bar Colors
Bar colors are optional and they reflect the current trend strength based on the Supertrend bands.
Alternate ways of using this indicator
You could leave everything as default or you can display individual bands. For instance, because I use many overlay indicators, most of the time I turn off all the bands and only show bar colors:
You can also turn off Bands 1 and 2 and only show the two slowest lengths:
This removes the noise of the two faster Supertrends.
Or just show the two fastest bands:
Any suggestions to improve this indicator are most welcome :)
Periodic Range [Rheo]This script fills daily and weekly ranges and displays daily and weekly open and previous close reference lines.
AVWTR (Average Volume Weighted True Range)A better tool to measure market volatility. The true ranges are weighted by the volume and averaged through the specified period.
Daily Ranges Dividers 1-5-15MinThis Range Indicator divides days based on New York Time. It works properly on the 1-5-15Min Chart. You can also use it on the 1h Chart, but you have to tick the apposite option in the Indicator Settings to do so. Enabling it on the 1h Chart, won't show it properly on the other timeframes, but you can always switch it back to the default and use it on the 1-5-15Min chart without any problems
Hancock - Pivot RangeShows central pivot point and developing central pivot point and colors both pivot ranges based on pivot criteria without using security function calls.
Green - Indicates up trend
Red - Indicates down trend
Orange - Indicates pivot point territory
Happy trading
Hancock
Risk RangeThis indicator creates risk ranges using implied volatility (VIX) or historical volatility, skewness ( Cboe SKEW or estimate ) and kurtosis.
Multiple SuperTrends - evoSupertrend is one of the most popular and easy to use indicators out there. Here are 15 supertrends each having a different ATR multiple from price. This can be used to find ranges (often followed by a reversal) or to create a filter for fake signals.
In the input tab "Spacing" you can change the space between each supertrend, setting this to 0 would be a normal supertrend. You can also change style, color, line width and transparency all in the input tab.
Pine code tip: Change line 21 to 'true' to make editable true.
Enjoy! :)
Pivot Point RangesThis script is meant to be a partner script to my Pivot Points Percentage Differences () indicator. It can be used to verify the percentages are what they should be, and give you a visual range in which to trade in.
If you have any questions please feel free to ask!
High, Low and MidpointThis indicator plots the daily high and low from the previous day. (BLACK)
It then calculates the midpoint of the high and low and plots this. (RED)
This indicator can be used to identify daily ranges and to identify possible support and resistance levels.
HMA ATR RangeIn Alan's books he talks about his 'range indicator' which is the HMA and ATR to give buy / hold / sell signals. This is my version as he doesnt give the formula.
It is the HMA with the ATR added and subtracted and plotted above & below the HMA to create a range.
According to Alan's terminology: HMA = Central Cord, SL = Lower deviation, TP = Upper deviation
Fibonacci Daily Limits (Expected Ranges)This indicator takes the price range from the previous day and plots 127% and 161% extension to the current trading day.This limit is often respected.
**Hopefully someone can improve this by making a version to only plot the current day ....Neat/Clean Charts :)
Fibonacci Daily Limits (Expected Ranges)This indicator takes the price range from the previous day and plots 127% and 161% extension to the current trading day.This limit is often respected.
**Hopefully someone can improve this by making a version to only plot the current day ....Neat/Clean Charts :)
real body rangeHighlights point of largest positive and negative candle ranges based on the look back length. Works for all time frames May have some value added for points of support and resistance relative to the buyer and sellers associated with that specific candle.
For the sake of keeping the chart clean I elected to eliminate the first data point and used the "linebr" style and fill plots. I also used //@version=2 which works better for the fill plots. //@version=3 seemed to jam me up so if you edit and run with it you may need to retain the version=2 configuration. If you find an alternative method that works for version=3 please give me a shout. Apply at your own risk and discretion.
Squam
Pivot Reversal Strategy with backtest date rangeThis is standard Pivot Reversal Strategy with backtest date range added.
In parameters you can select from/to date for backtesting range.