Johnny's Adjusted BB Buy/Sell Signal"Johnny's Adjusted BB Buy/Sell Signal" leverages Bollinger Bands and moving averages to provide dynamic buy and sell signals based on market conditions. This indicator is particularly useful for traders looking to identify strategic entry and exit points based on volatility and trend analysis.
How It Works
Bollinger Bands Setup: The indicator calculates Bollinger Bands using a specified length and multiplier. These bands serve to identify potential overbought (upper band) or oversold (lower band) conditions.
Moving Averages: Two moving averages are calculated — a trend moving average (trendMA) and a long-term moving average (longTermMA) — to gauge the market's direction over different time frames.
Market Phase Determination: The script classifies the market into bullish or bearish phases based on the relationship of the closing price to the long-term moving average.
Strong Buy and Sell Signals: Enhanced signals are generated based on how significantly the price deviates from the Bollinger Bands, coupled with the average candle size over a specified lookback period. The signals are adjusted based on whether the market is bullish or bearish:
In bullish markets, a strong buy signal is triggered if the price significantly drops below the lower Bollinger Band. Conversely, a strong sell signal is activated when the price rises well above the upper band.
In bearish markets, these signals are modified to be more conservative, adjusting the thresholds for triggering strong buy and sell signals.
Features:
Flexibility: Users can adjust the length of the Bollinger Bands and moving averages, as well as the multipliers and factors that determine the strength of buy and sell signals, making it highly customizable to different trading styles and market conditions.
Visual Aids: The script vividly plots the Bollinger Bands and moving averages, and signals are visually represented on the chart, allowing traders to quickly assess trading opportunities:
Regular buy and sell signals are indicated by simple shapes below or above price bars.
Strong buy and sell signals are highlighted with distinctive colors and placed prominently to catch the trader's attention.
Background Coloring: The background color changes based on the market phase, providing an immediate visual cue of the market's overall sentiment.
Usage:
This indicator is ideal for traders who rely on technical analysis to guide their trading decisions. By integrating both Bollinger Bands and moving averages, it provides a multi-faceted view of market trends and volatility, making it suitable for identifying potential reversals and continuation patterns. Traders can use this tool to enhance their understanding of market dynamics and refine their trading strategies accordingly.
Longterm
Buy Below Prev_Low. Sell 100% Above Avg. Pyramiding.This is simple indicator script for long term investors. It will check if the low of today is less than low of yesterday (or any time frame candle) and if the condition is satisfied, then the alert will be triggerred and that particular stock will be bought.
Each time a unit is bought, the average price is calculated and also the trget selling price, which is set at 100% above the average buying price. So once the price reaches that selling price target, the entire holding is sold.
The code resets all the variables back to 0 once a sell signal is triggerred.
Fetch Buy And Hold StrategyThis script was created as an experiment using ChatGPT. I actually woudn't recommend using the ai program to help you with your Pinescripts, as it makes a fair amount of mistakes. It was a fun experiment however.
The script is a simple buy and hold tool. Here's what it does:
- Everytime the rsi enters below the set treshold, a counter increases.
- The second increase of the counter happens when the price goes above the treshold, and then dips below the treshold again.
- The program would fire off a buy signal when the counter hits the number 3.
- After the buy. the counter will reset.
Lets take a look at the following example where the rsi treshold is 30:
- So the rsi dips below 30 and the initial counter is set from 0 to 1.
- The price rises which brings the rsi back to 40.
- Then another dip happens and the rsi is now 25, increasing the counter from 1 two.
- Rsi now dips to 23 and nothing happens.
- Rsi goes back up to 31, and dips back to 28 which puts the counter at 3. A buy singal is now fired and the counter is set to 0.
Shiller PE Ratio (CAPE Ratio) [WhaleCrew]Our Implementation of the famous Shiller PE Ratio (aka C yclically A djusted P rice-to- E arnings Ratio) a long-term valuation indicator for the S&P 500.
Calculation: Share price divided by 10 - year average, inflation - adjusted earnings
The indicator works on the M and 12M timeframe and has a built-in moving average that supports an upper and lower bollinger band.
Pivot Highs&lows: Short/Medium/Long-term + Spikeyness FilterShows Pivot Highs & Lows defined or 'Graded' on a fractal basis: Short-term, medium-term and long-term. Also applies 'Spikeyness' condition by default to filter-out weak/rounded pivots
ES1! 4hr chart (CME) shown above, with lookback = 15; clearly identifying the major highs & lows on the basis of how they are fractally 'nested' within lesser Pivots.
-- in the above chart Short term pivot highs (STH) are simply represented by green 'ʌ', and short-term pivot lows (STL) are simply represented by orange 'v'.
//Basics: (as applying to pivot highs, the following is reversed for pivot lows)
-Short term highs (STH) are simple pivot highs, albeit refined from standard with the 'spikeyness' filter.
-Medium-term highs (MTH) are defined as having a lower STH on either side of them.
-Long-term highs (LTH) are defined as having a lower MTH on either side of them.
//Purpose:
-Education: Quick and easy visualization of the strength or importance of a pivot high or low; a way of grading them based on their larger context.
-Backtesting: use in combination with other trading methods when backtesting to see the relative significance and price sensitivity of LTHs/LTLs compared to lower grade highs and lows.
//Settings:
-Choose Pivot lookback/lookforward bars: One setting, the basis from which all further pivot calculations are done.
-Toggle on/off 'Spikeyness' condition to filter-out weak/rounded/unimpressive pivot highs or lows (default is ON).
-Toggle on/off each of STH, MTH, LTH, STL, MTL, LTL; and choose label text-styles/colors/sizes independently.
-Set text Vertically, horizonally, or simply use 'ʌ' or 'v' symbols if you want to declutter your chart.
//Usage notes:
-Pivots take time to print (lookback bars must have elapsed before confirmation). Fractally nested pivots as here (i.e. a LTH), take even longer to print/confirm, so please be patient.
-Works across timeframes & Assets. Different timeframes may require slightly tweaked lookback/forward settings for optimal use; default is 15 bars.
Example usage with just symbolic labels short-term, med-term, long-term with 1x, 2x and 3x ʌ/v respectively:
Invest-Long : Script for quick checks before investingA simple script to verify RSI, SMAs, VWMA, and Pivots on Daily, Weekly, and Monthly time frames.
In case if you are not interested in SMA's or want to add different cheks -- simply copy the script to local and edit.
Happy investing.
Add the script to any chart and table values remain the same irrespective of current chart resolution, as it checks on Daily, Weekly, and Monthly time frames.
The table has multiple columns.
1st column checks on RSI value on all 3 timeframes. Ideally, look for all green and D>W>M
2nd Column: Check current Close is above 20 SMA and 50 SMA on Daily / Weekly / Monthly time frames
3rd Column: Check SMA 13> SMA 34, SMA 34 > SMA 55 and SMA 20 > SMA 50 on Daily / Weekly time frames
4th Column: Check Current close is above Weekly Pivot and Monthly Pivot. And also verify Close is above 4 Week High.
5th Column: Verify Close is above Daily VWMA. Also Daily VWMA is > Weekly VWMA and Weekly > Monthly.
// Similarly you can add more checks based on different time frames
Feel free to trouble me incase if need help.
Krugman's Dynamic DCAThis script helps you create a DCA (dollar-cost averaging) strategy for your favorite markets and calculates the DCA value for each bar. This can be used to DCA daily, weekly, bi-weekly, etc.
Configuring the indicator:
- DCA Starting Price : the price you want to begin DCA'ing
- DCA Base Amount : the $ amount you will DCA when price is half of your starting price
- DCA Max Amount : the maximum amount you want to DCA regardless of how low price gets
The DCA scaling works exactly like the formula used to calculated the gain needed to recover from a given % loss. In this case it's calculated from the DCA Starting Price . The idea is to increase the DCA amount linearly with the increased upside potential.
Buffett Indicator: Wilshire 5000 to GDP Ratio [WhaleCrew]Our Implementation of the famous Buffett Indicator a long-term valuation indicator for stocks.
Calculation: Wilshire 5000 Index divided by US GDP (Gross Domestic Product)
Long Term: Cumulative Moving AverageWho to use?
This indicator is for Long Term Investors or for Position trading and not for Day traders.
What time-frame to use?
• Daily, Weekly or Monthly
What is Blue line?
• Blue line is Cumulative Moving Average. It is cumulative sum of closing price.
• It is a trend reversal level.
• It is a strong support level.
• If price is below Blue line better not to take any Long position until it crosses above it.
What are Red lines?
• Red lines are Multiplier levels.
• These are target levels to exit the position.
• It can be breakout or pull back levels.
• The level combination numbers can be fully odd or even numbers.
• For example in certain stocks the working levels will be 1x, 3x, 5x etc., in others it will be even numbers like 2x, 4x, 6x etc.
• In some cases the levels need to be tweaked with custom decimals like 1.1x, 2.1x, 3.1x, 4.1x etc. to align the support & resistance levels.
How to use?
Entry
• Enter when the Price reach closer to the Blue line.
• Enter Long when the Price takes a pullback or breakout at the Red lines.
Exit
• Exit position when the Price reach closer to the Red lines in Long positions.
Indicator Menu
• Works only in higher time-frames like D, W & M.
• Will not work in Lower time-frames less than "D" or the Launch Date shows wrong in Lower time-frames.
Multipliers:
(Read above What are Red lines?)
Launch Date:
• Launch Date: Starting date of stock when it appeared in the exchange. Works only in D, W & M timeframes.
• Years: Total number of years from the Launch Date. Accurate date will be shown in Daily timeframe.
• Candles Count: Total number of candles from the Launch Date in the current timeframe.
Labels:
• First number is last traded price.
• Second number in () is percentage change from last traded price to that level.
Vwap SalvatierraVwap Salvatierra. an indicator that must be accompanied by other volume indicators.
Benefits:
- Long term Vwap.
- Middle Std. deviations, Calculated automatically.
- Previous zones available.
How to use:
when the price is >= stdev+3, look for shorts till came back to vwap
whe the price is <= stdev-3, look for longs till came back to vwap
if the vwap cannot be broken, as resistance, after several attempts, then sell
if the vwap can't be broken, like support, after several tries, then buy.
The DD investThe script tells me when to invest in the stock.
Split ur money into 3 piles. Each must be bigger than the previous one.
Buy with the first pile when the chart touches the middle line (SMA200).
Buy with the second pile when the chart touches the bottom line (lowest price of 200 weeks).
Buy with the third pile when the chart goes significantly below the bottom line (lowest price of 200 weeks).
Watch only the W1 chart (!!!).
Circles on the chart indicate places where you should buy (examples).
Consider selling half of the holding when the chart touches the top line (the highest price of 200 weeks).
Hold the rest much longer then you plan to ;)
Trend Momentum with Buyers / Sellers PowerHi there!
With this indicator, you can hunt big trends before they start.
This indicator is combined with RSI and Momentum indicators
It can show you the power of trend and which side it wants to go
It can help you to open a position at the first point of a new trend or at the safe and proven point of the trend, also it can help you to close your position before the trend change its direction (it's not recommended to use it to close your positon, but sometimes it can help you to find the ending point of big pumps)
Rules:
* Baseline is ZERO ( 0 ) line
* When gray line crossover red line, it shows us a powerful uptrend
* When the gray line crossunder the red line it shows us a powerful upward trend
Signals:
* Only use Buy signals(Long) when they are above or crossing-up baseline
* Only use Sell signals(Short) when they are under or crossing-down baseline
* If they both (red and gray lines) are too high and they suddenly starting to come back to baseline, it shows we have a range trend, the trend is weak or a reversal trend is coming!!
!! WARNING: DO NOT USE THIS INDICATOR ALONE !!
Suggestions :
-Use 1H, 4H, daily, or Weekly timeframes
-Use ADX and DI or three WMA's
-Use divergence
-You can use it for scalping but you need to change the inputs (not recommended)
If you have any idea about making new indicators(what information do you want from the chart?), comment please, then I can research and make it for all of us! =)
Bitcoin 2-Year MA Multiplier by GodtrixHi guys, I found this tool very useful and accurate, but can't find it on Trading View, so I made one for myself and everyone here ;)
Alert is available too.
Indicator Overview
The 2-Year MA Multiplier is intended to be used as a long term investment tool.
It highlights periods where buying or selling Bitcoin during those times would have produced outsized returns.
To do this, it uses a moving average (MA) line, the 2yr MA, and also a multiplication of that moving average line, 2yr MA x5.
Note: the x5 multiplication is of the price values of the 2yr moving average, not of its time period.
Buying Bitcoin when price drops below the 2yr MA (green line) has historically generated outsized returns. Selling Bitcoin when price goes above the 2yr MA x 5 (red line) has been historically effective for taking profit.
Why This Happens
As Bitcoin is adopted, it moves through market cycles. These are created by periods where market participants are over-excited causing the price to over-extend, and periods where they are overly pessimistic where the price over-contracts. Identifying and understanding these periods can be beneficial to the long term investor.
This tool is a simple and effective way to highlight those periods.
Credit to & Created By
Philip Swift
Date Created
July 2017
BITSTAMP:BTCUSD
Momentum Indicator avg short return minus avg long returnAverage daily return over the period 2-12 months ago minus the average daily return over the period 1-5 years ago
=> a higher return 2-12 months ago indicates a higher return in coming months according to research, because of the momentum risk factor premium
=> a higher return 1-5 years ago indicates a lower return in coming months according to research, because of the momentum risk factor premium
Long Term Moving AverageThis scripts plots the long term moving average calculated daily for 4 sets.
The default averages are:
18 day
50 day
100 day
200 day
The settings can be used to flexibly change this and to hide / show labels
Long Term Levels (4h, D, W, M, Q, & Y)This shows and labels the highs and lows from the previous 4h, daily, weekly, monthly, quarterly and yearly session. By default it only shows weekly, monthly and yearly. It also has an option to use small labels (M vs Monthly High) to save your eyeballs. You may need to adjust your charts right hand margin to see them properly.
Everything is shown in very tasteful shades of blue. For a faster loading version of this check my other indicators.
GDAX EMA Cross[26,12]This indicator allow to show the EMA of the price similar to GDAX user interface.
The purpose of this indicator is twice:
Allowing the user to show a double EMA with the possibility to show when a EMA crossing happens.
Showing in a more user friendly interface the GDAX ema line.
As a matter of fact is proven that those 2 EMA act as support/resistance during Bulls/Bear periods. The indicator works fine in the GDax timeframes, or rather 5m, 15m, 1h and daily excluding 3h and 6h as they're less used at the moment.
Coppock Curve with its own Moving AverageIt shows Coppock with its own moving average. (Yes, in a way, 3 moving averages.)
Advised to use :
for long term, certainly not for day-trade;
on daily charts;
not as a standalone indicator, helps to read RSI, Klinger, TSI, CCI, etc.
as momentum-signaling: crossing 0, inflection points, crossover
as a quasi-centered, quasi oscillator, but not proportional always.
Weakness: mourning period certainly not the same for everyone.
MAGNUS® CyclesThis indicator will help you if you struggle making any profit in bitcoin.
It generates very few signals with very nice profit potential ( around 100% this year ! ).
Perfect tool for longterm swing traders and new traders that need help figuring out the midterm trend.
Use it with these parameters only:
weekly: 13, 5, 12
daily: 92, 21, 96