Cup FinderHello All,
This script finds the Cups and you can use it while analysing the symbols. it creates circle and channel for the potential Cups and checks the number of bars included by the channel, if included bars is equal or greater than the value you set then it shows the cup.
The Options:
"Number for Bars to search" : Maximum length of a Cup
"Channel Width of the Cup" : Tate by the channel width of highest/lowest levels in last 300 bars, by default it's 5%
"Check for Breakout" : if there is Cup then it checks Close or High/Low is used a source for breaokuts, usuful while cheking historical bars
"Contained Bar Rate %" : after channel is created the script checks number of bars included by the channel of the Cup, you can set rate of included bars by this option
"S how Channels of Cups ": if you enable this option then you can see the channels around the Cups and set it as you wish
and there are some other options for labeling/removing old Cups and for coloring
Here you can see how channel looks like:
Cup with different colors:
P.S. This is an experimental work and sorry for no explanation in the script.
in the future if I have time I will try to write a script for Cup&Handle
This script is also an example to calculate and draw circles :)
Enjoy!
Breadth Indicators
Simple charting tool box (5 tools)This is a simple charting tool box that allows you to do 5 things:
1. Highlight custom time range with transparent background.
2. Plot High, Low of the custom time range and extension.
3. Plot previous day High, Low
4. Highlight market sessions (Sydney, Tokyo, London, New York), session times are customizable.
5. Plot ATR Projections
The drawings use exchange time of your data feed. For Oanda feed, it is NY time (UTC-4).
Hope the tool helps. Enjoy!
Trigonometric On Balance Volume (OBV) OscillatorLove volume analysis but it's hard for you to implement a simple strategy by it?
Use OBV.
Is OBV still not quite as it should be for you to get it in your trading system?
Use OBV Oscillator.
Does OBV Oscillator give you too many false signals and when you smooth it, it lags by a ton?
Then this indicator is the answer to your problem.
Introducing the Trigonometric OBV Oscillator.
The Trigonometric OBV Oscillator or "Trig OBV" for short, uses an old, but uniquely extremely reliable mathematical formula to smooth the OBV, while eliminating more than 95% of its false signals (noises) and keeping with the real direction of the trend without introducing any lags.
It is very responsive, predictive even to some degree, very reliable, and keeps you out of false trades (like false breakouts, sudden changes in the price, etc).
To go long: wait until the white line crosses up the purple line and continues in that direction.
To go short: wait until the white line crosses down the blue line and continues in that direction.
To exit, do the opposite.
Better to be used with a baseline filter such as Kaufman's moving average.
Use it and let me know what you think about it.
Visual Squeeze MomentumSqueeze Momentum from LazyBear now visible at the chart so you can check when the Squeeze its about to release. All credits for him.
BTC FTX Futures PremiumsThis indicator shows the future BTC premiums on FTX.
The purple area is the Daily December Futures contract subtracted by the current price.
The blue area is the Daily September futures contract subtracted by the current price.
The green area is the Daily June futures contract subtracted by the current price.
You can use this to try and understand market sentiment.
If the current price dumps but the premium remains the same it likely means that sentiment is unchanged.
The opposite is true, if the price pumps and the premium is the same it means the market likely wasn't convinced by the movement.
The difference between the current price and the futures price can help determine how bullish or bearish a market or at extremes the level of euphoria.
Breakout FinderHelo All,
I got many requests for a Breakout script and here it's. This script searches the breakouts/breakdowns and draw square if there is one.
The options:
"Period" is used to find Pivot Points
"Max Breakout Length" is the maximum length to search breakouts
"Threshold Rate %" is channel width of the breakout area. calculated using highest/lowest of last 300 bars.
"Minimum Number of Tests" is the minimum number of tests that the Price tried to break the S/R level
and some options for coloring and linestyle
Lets see some examples:
in this example "Minimum Number of Tests" is 2 so the Price must have tested to break resistance area 2 times and then it breaks it as seen in the screenshot:
in following example Threshold rate is %10, so the channel width is very big:
as you can see in followinf screenshot you can choose different colors and line styles:
Alerts added ;)
Enjoy!
Tripple super Trend + EMA + RSI StrategyGreetings!
Here I show you the Tripple Super Trend Strategy.
I discovered the strategy on a YouTube channel and tried to transfer it as a strategy into a script.
Tested with the currency pair EUR/USD in the one hour chart.
Period: beginning of 2020 until today.
The strategy should also work with cryptocurrencies. But then the settings have to be adjusted.
There is the possibility to activate only long or only short position.
The EMA can be used in a time different from the chart.
-----------------------------------------------------------------------------------
How does the strategy work?
For long positions, the candle must be above the EMA .
The candle must be closed above at least two of the supertrend lines.
The stochastic RSI must show oversold and the k line must cross over the D line.
For short positions, the candle must be below the EMA .
The candle must be closed below at least two of the supertrend lines.
The stochastic RSI must indicate overbought and the K line must cross below the D line.
The stop loss is determined with the "lowest low/highest high lookback".
The profit factor is multiplied by the value of the lowest low/highest high lookback.
The results of the strategy are without commissions and levers.
If you have any questions or feedback, please let me know in the comments.
In the future I will add other types of stop loss / take profits. (ATR; %; eg.)
If you need more information about the strategy and want to know exactly how to apply it, check out my profile.
I wish you good luck with the strategy!
Artharjan Profit & Loss CalculatorHi,
Artharjan Profit and Loss Calculator allows users to calculate Profit and Loss of their trades and see it on the chart itself
Users are supposed to select either Long or Short, Enter quantity and enter traded price. The live P&L will be plotted on the chart.
Happy trading :-)
Rahul
Gann By Huzaifa - Auto LevelsWorks well with Banknifty, Nifty and MCX GOLD SILVER.
Still under testing mode for stocks.
Levels will come automatically, No Input required.
one can switch on indicator labels using trading view settings for values
OBV High / LOW (On-Balance Volume )This is a simple application of OBV indicator (On-Balance Volume ), to visually determine when a given stock current obv is near the highest or lowest based on the number of lookback bars.
Indicator examples:
### OBV value is near an all-time high ##
breakthrough , stock value could set new all-time highs.
rejection , stock value could come down or consolidate.
Example
Inputs
OBV High Lookback -> numbers of bars to look back for the obv high.
OBV LowLookback -> numbers of bars to look back for the obv low.
OBV EMA Length -> Ema length
Notes:
This script also comes with an ema indicator based on obv for smoothing the obv signal since it gets noise at lower timeframes (by default comes disabled)
OBV information
www.investopedia.com
Comments:
This is my first script any ideas, suggestions, or detected errors (language/script) don´t hesitate to send a message.
Best regards, Mauro.
SHILLER_PE_RATIO_MONTHDISCRIPTION
Shiller PE ratio for the S&P 500. Price earnings ratio is based on average inflation-adjusted earnings from the previous 10 years, known as the Cyclically Adjusted PE Ratio (CAPE Ratio)
TIME FRAME
1M
HOW TO USE
It provide historic Shiller PE which will provide over-bought or over-sold condition historically from 19th century.
MODIFICATION
When the pe ratio crosses 30 considered as Greed
When the pe ratio fall below 15 considered as Fear
NAAIM Exposure IndexThe NAAIM Exposure Index represents the average exposure to US Equity markets reported by members.
The line depicts a two-week moving average of the NAAIM managers’ responses.
It is important to recognize that the NAAIM Exposure Index is not predictive in nature and is of little value in attempting to determine what the stock market will do in the future. The primary goal of most active managers is to manage the risk/reward relationship of the stock market and to stay in tune with what the market is doing at any given time. As the name indicates, the NAAIM Exposure Index provides insight into the actual adjustments active risk managers have made to client accounts over the past two weeks.
Modifications
I have correlated the index line with its 21 MA , so below 21 MA determines weakness and breaking determine strenght in the sentiments.
How to use it rationally?
Try to find the "Divergence" .
Modified Nick Rypock Trailing Reverse StrategyModified from the opensource script posted by the user "everget". Added a few lines to include EMA controls which substantially removes noise signals.
OBV+ (Div/Trends) [Anan]Hello friends,
As you requested, this is my own version of OBVwith these features:
- Plot various types of moving averages ("SMA","Smooth SMA","SuperSmooth MA","EMA","DEMA","TEMA","Triangular MA","QEMA","RMA","Hull MA","KAMA","WMA","VWMA","CTI","LSMA","VIDYA","Blackman Filter","Adaptive RSI","Probability")
- Change the length of moving average
- Change the Source of OBV
- Bullish/Bearish Regular/Hidden divergences
- Trend lines on OBV
MY BOX by GustavoThis box contains two strategies, several moving averages and Bollinger Bands.
PFR or "Reversal closing price" is a simple and effective strategy, widespread by the Brazilian trader Stormer.
The purpose is to make the candles generate the input signal more clearly.
Description:
When the sales PFR candle appears colored, watch out for the next candle. If he breaks the closing of the PFR sell candle, SALE!
Your stop should be at the maximum of the PFR candle and your target projected at 1.618 in the fibonacci extension.
When the buy PFR candle appears colored, watch out for the next candle. If it breaks the closing of the buy PFR candle, BUY!
Your stop should be at the low of the PFR candle and your target projected at 1.618 in the fibonacci extension.
Inside Bar: The candle has its maximum less than the maximum of the previous candle and its minimum greater than the minimum of the previous candle.
Settings:
You can edit the colors in the indicator settings and select the measurements you want to use.
You can also choose to use the Stocastico Lento filter on over-purchase and over-sale.
You can also activate the Inside bar, it will appear in red on the graph.
There is also the possibility to activate in the settings, the Bollinger Bands.
--------------------------
Este box contém duas estratégias, diversas médias móveis e Bandas de Bollinger.
PFR ou "Preço de fechamento de reversão" é uma estratégia simples e eficaz, bastante difundida pelo trader brasileiro Stormer.
O intuito é tornar os candles de geram o sinal de entrada mais claro.
Descrição:
Quando o candle PFR de venda aparecer colorido, fique atento ao próximo candle. Se ele romper o fechamento do candle PFR de venda, VENDA!
Seu stop deverá ser na maxima do candle PFR e seu alvo projetado em 1,618 na extenção de fibonacci.
Quando o candle PFR de compra aparecer colorido, fique atento ao próximo candle. Se ele romper o fechamento do candle PFR de compra, COMPRE!
Seu stop deverá ser na mínima do candle PFR e seu alvo projetado em 1,618 na extenção de fibonacci.
Inside Bar: O candle tem sua máxima menor que a máxima do candle anterior e sua mínima maior que a minima do candle anterior.
Configuração:
Você pode editar as cores nas configurações do indicador e selecione as medias que deseja usar.
Também pode escolher usar o filtro do Stocastico Lento em sobre compra e sobre venda.
Você também pode ativar o Inside bar, ele aparecerá em vermelho no gráfico.
Há também a possibilidade de ativar nas configurações, as Bandas de bollinger.
TWT_TRICK_CRUDEOILTWT_TRICK_CRUDEOIL is pure mathematical approach for trading only in MCX CRUDEOIL
Trade Setup:
Only Enter the Trade after 14:00 PM IST , Do not enter the Trade before that
At 14:00 PM IST , Observe if Price is abve BUY Level or Below SELL Level
Enterr the Trade in that direction Only
Exit Startegy:
Close your position exactlly at 22:00 PM IST
SL Strategy:
Whenever you enter BUY Side , the Day's Low created on that day will be your SL
Whenever you enter SELL Side , the Day's High created on that day will be your SL
[Unxi]McClellan Oscillator for TECDAX [modified]This version is for use with the German TecDax index only!
About McClellan Oscillator
Developed by Sherman and Marian McClellan, the McClellan Oscillator is a breadth indicator derived from Net Advances, the number of advancing issues less the number of declining issues. Subtracting the 39-day exponential moving average of Net Advances from the 19-day exponential moving average of Net Advances forms the oscillator.
As the formula reveals, the McClellan Oscillator is a momentum indicator that works similar to MACD .
McClellan Oscillator signals can be generated with breadth thrusts, centerline crossovers, overall levels and divergences.
About my version
This version here is a modification, though:
- It can only be used on the German TECDAX index
- It only considers the TECDAX stocks
- The data window will provide a summary about rising and declining stocks
- The data window will output the last change for each of the 30 stocks
The script is pretty slow because it has to calculate the change for each bar individually (instead of receiving a complete calculation from the stock exchange).
This script will work on any time period. Just use whatever timeperiod you are comfortable with, the indicator will automatically adjust accordingly. It is recommended to use it with timeperiod = 1d, though.
DISCLAIMER
This script was mainly written for educational purposes (training myself how to write custom indicatotors).
As you can see, the code is really messy. Feel free to provide your feedback in the comments!
Credits
Based on the simple version of aftabmk
You can find the original version by searching for McClellan Oscillator for nifty 50.
Also got some inspiration from lazybear's version and from danarn's "Crypto McClellan Oscillator".
McClellan Oscillator for DAX (GER30) [aftabmk modified]About McClellan Oscillator
Developed by Sherman and Marian McClellan, the McClellan Oscillator is a breadth indicator derived from Net Advances, the number of advancing issues less the number of declining issues. Subtracting the 39-day exponential moving average of Net Advances from the 19-day exponential moving average of Net Advances forms the oscillator.
As the formula reveals, the McClellan Oscillator is a momentum indicator that works similar to MACD .
McClellan Oscillator signals can be generated with breadth thrusts, centerline crossovers, overall levels and divergences.
About my version
This version here is a modification, though:
- It can only be used on the DAX index (DAX 30 or GER 30)
- It only considers the DAX 30 stocks
- The data window will provide a summary about rising and declining stocks
- The data window will output the last change for each of the 30 stocks
BUG
I am only publishing this version because I am not sure if my current version is saved when I leave tradingview.com without publishing the script.
This version still contains a bug - the if/else clauses do not correctly recognize declining stocks. So the oscillator should not be used as it is.
Working on it these days. Feel free to provide feedback!
Stuff I am working on
- Coloring the area green/red according to the value
- Fixing this bug/making this script more efficient
DISCLAIMER
This script was mainly written for educational purposes (training myself how to write custom indicatotors).
As you can see, the code is really messy.
Credits
Based on the simple version of aftabmk
You can find the original version by searching for McClellan Oscillator for nifty 50.
Williams %RHi! WPR is the Williams percentage range indicator in my design. The main idea is that the intersection of the indicator and the moving average in the overbought and oversold zones + color highlighting gives more clear visual signals for making trading decisions based on this indicator.
Macro Ops SQNThe SQN (developed by Van Tharp) measures the average % change from close to close to the previous 100 days and then square roots it. This is how we quantify bullish or bearish, if the change is positive on average for the past 100 trading days, that’s bullish and likewise bearish if negative.
This methodology is trailing, so the SQN is a trailing indicator, and that’s important to note. The SQN isn’t there to be a holy grail super classified highly fragile high win rate indicator that will tell you when to buy the next 24% up move or to short a market meltdown.
Rather it’s more like a calendar. If you know that it’s January and you are in Montana, you are more likely to need a heavy coat, boots, hat, gloves and you can pretty much be guaranteed you won’t need a tank top and flip flops.
The SQN is similar because now we can quantitatively recognize the “season” we are in. Like a Calendar would suggest it’s winter and you know you are in Montana, the SQN is saying we are in Bear Volatile regime so let’s get the appropriate tools (attire in this analogy).
Volatility Dispersion EnvelopesThe Volatility Dispersion Envelope Indicator (VDE) is a custom forward-looking indicator developed by Macro Ops. This indicator is best used to identify when price action is reaching statistical points of reversal within the next five to seven days.
An operator can conceptualize the VDE as a vacuum, out to absorb all of the speculators (dispersive outlooks). When the bounds of the VDE are at their maximum divergence, this points to a likely trend reversal, as there is a maximum amount of speculators caught offsides. A reversal off the first lower-bound band is common, while a reversal off of a second or third lower-bound band is rare. A reversal is confirmed when the slope of the VDE bands change direction, or support has been established when price fails to break below a VDE band multiple times.
Buyer-seller strengthThis is my first attempt to convert my price action trading principles into pine script.
As price action trader, we attempt the see the hidden strength of buyer in sellers candle and vice versa. I use simple calculation of candle wick to body -proportion to assess the strength. This script identifies the proportion of buyers and sellers in any given candle in form of %. Sellers are given in positive % and buyers are given as negative %. By moving the cursor to the interested candle the values can be seen.
While this will not be useful for decision as sole trading system, I use it as adjunct, whenever I analyze the data.
Happy trading