Candle Size Alerts (Manual size)This TradingView Pine Script (v6) is an indicator that triggers alerts based on the size of the previous candle. Here's a breakdown of how it works:
1. Indicator Definition
//version=6
indicator('Candle Size Alerts (Manual size)', overlay = true)
The script is written in Pine Script v6.
indicator('Candle Size Alerts (Manual size)', overlay = true):
Defines the indicator name as "Candle Size Alerts (Manual size)".
overlay = true means it runs directly on the price chart (not as a separate panel).
2. Calculate the Previous Candle's Body Size
candleSize = math.abs(close - open )
close and open refer to the previous candle’s closing and opening prices.
math.abs(...) ensures that the size is always a positive value, regardless of whether it's a green or red candle.
3. Define a User-Adjustable Candle Size Threshold
candleThreshold = input(500, title = 'Fixed Candle Size Threshold')
input(500, title = 'Fixed Candle Size Threshold'):
Allows users to set a custom threshold (default is 500 points).
If the previous candle's body size exceeds or equals this threshold, an alert is triggered.
4. Check if the Candle Size Meets the Condition
sizeCondition = candleSize >= candleThreshold
This evaluates whether the previous candle's size is greater than or equal to the threshold.
If true, an alert will be generated.
5. Determine Candle Color
isRedCandle = close < open
isGreenCandle = close > open
isRedCandle: The candle is red if the closing price is lower than the opening price.
isGreenCandle: The candle is green if the closing price is higher than the opening price.
6. Generate Alerts Based on Candle Color
if sizeCondition
if isRedCandle
alert('SHORT SIGNAL: Previous candle is RED, body size = ' + str.tostring(candleSize) + ' points (Threshold: ' + str.tostring(candleThreshold) + ')', alert.freq_once_per_bar)
else if isGreenCandle
alert('LONG SIGNAL: Previous candle is GREEN, body size = ' + str.tostring(candleSize) + ' points (Threshold: ' + str.tostring(candleThreshold) + ')', alert.freq_once_per_bar)
If the candle size meets the threshold (sizeCondition == true):
If red, a SHORT SIGNAL alert is triggered.
If green, a LONG SIGNAL alert is triggered.
alert.freq_once_per_bar ensures that alerts are sent only once per candle (avoiding repeated notifications).
How It Works in TradingView:
The script does not plot anything on the chart.
It monitors the previous candle’s body size.
If the size exceeds the threshold, an alert is generated.
Alerts can be used to notify the trader when big candles appear.
How to set Alerts in Trading View
1. Select Indicator – Ensure the indicator is added and properly configured.
2. Set Time Frame – Make sure it's appropriate for your trading strategy.
3. Open Alerts Panel – Click the "Alerts" tab or use the shortcut (Alt + A on Windows).
4. Create a New Alert – Click "+" or "Create Alert."
5. Select Condition – Pick the relevant indicator condition (e.g., "Candle Size Alerts(Manual size)").
6. Choose Alert Function – Default is "Any Alert() Function Call".
7. Set Expiration & Name – Define how long the alert remains active.
8. Configure Notifications – Choose between pop-up, email, webhook, or app notifications.
9. Create Alert – Click "Create" to finalize.
How to set the size manually:
Add the "Candle Size Alerts (Manual size)" Indicator to your chart.
Open Indicator Settings – Click on the indicator and go to the "Inputs" tab.
Set Fixed Size Threshold – Adjust the "Fixed Size Candle Threshold" to your desired value.
Click OK – This applies the changes.
Reset Alerts – Delete and recreate alerts to reflect the new threshold.
Happy Trading !!!!
KOLA CHIRANJEEVI
Bitcoinusd
[blackcat] L1 Bitcoin Guppy Whale Pump Dump OscillatorLevel: 1
Background
The Guppy Multiple Moving Average (GMMA) is a technical indicator that identifies changing trends, breakouts, and trading opportunities in the price of an asset by combining two sets of moving averages (MA) with different time periods. There is a short term group of MAs and a long term group of MAs.
One of the biggest differences between cryptocurrency and traditional financial markets is that cryptocurrency is based on blockchain technology. Individual investors can discover the direction of the flow of large funds through on-chain transfers. These large funds are often referred to as Whale. Whale can have a significant impact on the price movements of cryptocurrencies, especially Bitcoin . Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
Function
L1 Bitcoin Guppy Whale Pump Dump Oscillator is innovative because it was moved from main chart to aux chart and the input source of Guppy moving average was changed in to bias rate of key EMAs. This makes it work as a Guppy oscillator. This Guppy oscillator was designed and optimized to detect whale pump and dump behavior for BTCUSD or BTCUSDT trading pairs. When whale pump is detected, yellow candles appear; when whale dump is detected, fuchsia candles appear.
Key Signal
di,d1~d8 ---> Guppy oscillator lines
pump --> whale pump detector
dump --> whale dump detector
Pros and Cons
Pros:
1. easy observe price trend
2. it detects whale pump and dump
Cons:
1. no explicit entries are disclosed
2. only optimized for Bitcoin usd/usdt trading pairs
Remarks
Courtesy of @LunaOwl " Rainbow Color Gradient" for colorful Guppy oscillator lines in this script
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
BTC Fibonacci DMA350 TrendlinesAdapted from Tim Graham's Code.
See Original Inspiring Article from Phillip Swift at: @positivecrypto
When looking into BITSTAMP:BTCUSD 1D data in spreadsheet. Historically, BTC Highs Hit (Simple Daily Moving Average 350 Days) DMA350 in reverse Fibonacci Sequence Order
2013 Hit DMA350*8 before All Time High (ATH)
2017 Hit DMA350*5 before ATH
I expect 2021 to hit DMA350*3 ATH. When BTC hits DMA350*3 ATH, I suggest selling!
Multiple BTC RSIs in a single indicatorPlots in a single indicator the Bitcoin RSI of multiple exchanges. The selected exchanges are Bitmex, Binance and Coinbase. The reason is that these are the ones with the highest 24h volume (coinmarketcap) and have a ticker available in Trading View.
One drawback with this indicator is that it doesn't automatically adjusts its resolution when the Bitcoin chart is rendered across timeframes. You have to manually update the time resolution in the settings window for the indicator.
Foreign Currency Psychological ResistanceThought it would be interesting to look into psychological barriers (round numbers) denominated in foreign currencies and see where those barriers show up on a USD chart.
I did a couple of quick and superficial Internet searches to get an idea of which USD pairs are being used the most to trade Bitcoin. My conclusion is that the most relevant currencies are the Chinese Renminbi and the Brazilian Real.
Based on that, I wrote this little indicator that uses the exchange rate from the USD pairs (USDCNY, USDBLR) and the round number targets to come up with the corresponding USD price levels.