Cari dalam skrip untuk "bitcoin"
Custom Time ranges
Description:
This script colours the background of any time range you specify, including weekend periods.
It can be useful for spotting patterns on Bitcoin (recurring times of buying or selling).
Checkboxes to switch on and off. Inputs to specify time and day of week.
Monday = 2
Tuesday = 3
Wednesday = 4
Thursday = 5
Friday = 6
Saturday = 7
Sunday = 1
Example 1:
1500-1800:2
This will colour the background between 3pm and 6pm on Mondays.
Example 2:
0000-0600:247
This will colour the background between midnight and 6am on Mondays, Wednesdays, and Saturdays.
Any questions you may have, please leave in comments below and I'll respond when I have time.
Estimate exchange/broker fee commission from trade volumeThis script is used to estimate how much an exchange/broker makes off a particular pair/symbol. If Coinbase(GDAX) has a 0.25% taker fee and a 0.15% maker fee per trade and you estimate the average commission fee at 0.19% then you simple input that, and how many periods you'd like to know the total fee for (30 periods on the 1 day chart = last 30 days, 28 periods on 4 hour chart = last 7 days, etc).
This is for broad estimates of a single pair and only works well on exchanges that show only the volume on that exchange (stock markets may be less useful for this tool).
THIS TOOL IS TO PROVIDE A BROAD ESTIMATE , NOT AN EXACT FIGURE!
// percentage fee rate is entered as a percent: 3.5=3.5%, not 350%.
// pbtc , the one for calculating the USD value of fees that are in bitcoin, uses the price at time fees were realized. IE chart is on
// 1 day interval and XBARFEE is set at 4, then PBTC gives the USD value as if the exchange sold all btc at the end of each day for
// 4 days. i.e.:
// Day 1: BTCUSD= $5000 fees=1.5, Day 2: BTCUSD = $5000 fees=3.0, Day 3 BTCUSD = $10,000 fees=1.0, Day 4 BTCUSD = $20,000 fees=1.0
// PBTC would NOT show (1.5+ 3 + 1 + 1) = 6.5 * $20k = $130,000. It would do: (1.5*5000)+(3*5000)... = $52,500.
MayerMultiple StochasticThis is an stochastic chart of Price adjusted Mayer Multiple Average Delta.
Moving Average Function can be selected from a list with standard functions and following experimental extras:
- Volume Weighted Exponential Moving Average
- Volume Weighted Time Decayed Moving Average // similar to vwema, but alpha is calculated from length as half-life decay function (not sure if I got that right...)
Default MA function is sma, to keep it true to the original MM indicator, but I think VWEMA and VWTDMA may perform better with exponential nature of Bitcoin .
See also:
Suggestions and bug reports are welcome =)
MayerMultiple Price BBThis charts an indicator created by Trace Mayer with some extras.
Plots:
- Mayer Multiple (may be hard to notice, since it overlays by default and stay at the bottom...)
- Price adjusted by Mayer Multiple Average with Bollinger Bands
Moving Average Function can be selected from a list with standard functions and following experimental extras:
- Volume Weighted Exponential Moving Average
- Volume Weighted Time Decayed Moving Average // similar to vwema, but alpha is calculated from length as half-life decay function (not sure if I got that right...)
Default MA function is sma, to keep it true to the original MM indicator, but I think VWEMA and VWTDMA may perform better with exponential nature of Bitcoin .
Suggestions and bug reports are welcome =)
MayerMultiple Price BBThis charts an indicator created by Trace Mayer with some extras.
Plots:
- Mayer Multiple
- Price adjusted by Mayer Multiple Average with Bollinger Bands
Moving Average Function can be selected from a list with standard functions and following experimental extras:
- Volume Weighted Exponential Moving Average
- Volume Weighted Time Decayed Moving Average // similar to vwema, but alpha is calculated from length as half-life decay function (not sure if I got that right...)
Default MA function is sma, to keep it true to the original MM indicator, but I think VWEMA and VWTDMA may perform better with exponential nature of Bitcoin .
Suggestions and bug reports are welcome =)
RSI+BSIThis script simply plots the current instruments RSI as well as Bitcoin's RSI from bitfinex. Helpful to identify when an alt is performing stronger than BTC or if BTC is dragging the alt down.
BFXLS - BitFinex Long/Shorts
Small improvement upon the above script - all credit should really go to pigloo
Auto-detects ticker and automatically loads the long/shorts for it - so works on more than just BTC
Note - only works on BitFinex and only works for tickers which have long and short data available!
Green area = Longs
Red area = Shorts
Lighter area = Longs - Shorts
Bitfinex Bitcoin Short/Long PercentageShows the percentage of longs vs shorts. Red area means more shorts than longs and the other way around.
Bitfinex (BFX) - Longs and Shorts for BitcoinGreen area = Longs
Red area = Shorts
Lighter area = Longs - Shorts
The data only started recently which is why there is not much history, also I have marked a period of missing data between the vertical lines.
Volume Conversion IndicatorVolume Conversion Indicator
The volume conversion indicator is much like the in-built volume indicator. This particular volume indicator allows you to find out how much of something has been traded in a given timeframe.
This is done by multiplying volume by the average price at that point.
What does this mean?
Well, say, for example, you were watching DGB/BTC (DigiByte/Bitcoin). Instead of the volume being displayed in the amount of DGB traded, the amount of BTC traded is displayed instead.
Feel free to comment... Hope this helps :D
WhenWasThePriceAction
Bars of largest range (volatility)
* see moments of strongest price action immediately
* colored & upDown by candle color
* amplifier: you see only the bull runs, and subsequent dumps
Very nice on the 5 years scale of BITSTAMP:BTCUSD - nothing comparable to 2013 has happened yet.
Internals:
squared_range = pow(high-low, 2)
That is essentially it already. The rest are details:
* gauge with (in case of Bitcoin exponentially rising) price
* show in red for negative candles
* take even higher polynomial (than 2) to show only the very largest values
* allow some user input (but there is not much more that can be chosen here.)
Sorry for such a simple formula - but sometimes the easiest things are powerful.
Please give feedback. www.tradingview.com and/or in the cryptocurrency chat. Thanks.
Alert GetTrendStrategy BTCUSDAlerta para la estrategia "GetTrendStrategy 370 30 min" optimizada para Bitcoin
Puedes programar alarmas para que envié mensajes al móvil o al correo electrónico. Para ello observa la siguiente imagen:
mejorestraders.ml
Pip Foundry - BitMEX BVOL7D IndexMy premium indicators are available for monthly lease at www.tradingview.com
A quick indicator in response to the product released this month from BitMEX - a Weekly settled volatility index for bitcoin!
www.bitmex.com
uses BVOL calculation from www.bitmex.com
[LAVA] Early Warning IndicatorCombined the RSI inverse of gold to USD with the Dollar index (or whatever stock symbol that may be inverted/complementary) with another asset/currency, like bitcoin, you can basically be well informed when a potential move is on the horizon. Settings allow for inverse settings and de-combining the two pairs as well as a nice cloud look if all the lines get annoying.
Event-Based Multi MA v1.1📈 Event-Based Multi MA v1.1 — Smart Trading with Dynamic MA Updates
Overview
In a world where most moving averages blindly follow every candle, Event-Based Multi MA v1.1 introduces a smarter logic:
➡️ Update moving averages only when significant price movements occur.
Forget the noise. Focus on what's important.
This indicator recalculates your moving averages only after meaningful price shifts, allowing you to spot true trends and avoid market whipsaws.
Key Features
✅ Event-Driven Logic
Set events based on:
Points: Absolute price change
Percent: Relative price movement
ATR: Volatility-adjusted dynamic movement
✅ Seven Fully Customizable Moving Averages (MA1–MA7)
Each MA offers:
Custom timeframe
Selection of types (EMA, SMA, WMA, VWMA, HMA, LSMA, DEMA, TEMA, ALMA, RMA)
Adjustable lengths and colors
✅ Reduced Market Noise
MAs adjust only after important price actions — cutting down lag and false signals.
✅ Multi-Timeframe Analysis
You can blend moving averages from different timeframes (e.g., 15m, 1H, Daily) into a single chart — perfect for professional multi-frame strategy building.
Settings Explained
Event Trigger Type: Select Points, Percent, or ATR-based movement.
Event Threshold: The amount of price movement needed to trigger a new calculation.
ATR Length: If ATR mode is selected, this controls the sensitivity.
Each Moving Average (MA1 to MA7) has:
MA Type: Choose the smoothing method that suits your trading style.
Length: The number of bars used in the calculation.
Color: Customize visual styling.
Timeframe: Load MAs from different timeframes into your current chart.
How to Use It in Trading
🔹 Trend Confirmation
Wait for event-triggered updates. Fresh MAs after a significant move are much stronger signals than constantly refreshing MAs.
🔹 Momentum Breakouts
Combine short-term (e.g., MA1, MA2) and long-term (e.g., MA5, MA6) MAs. When short-term MAs cross above/below long-term after an event, it's a powerful breakout cue.
🔹 Dynamic Support/Resistance
Use slow-moving MAs like 100-200 length across different timeframes.
The event-based recalculation keeps them relevant to recent major price moves.
🔹 Volatility Filters
Switch to ATR-based events to adapt moving average updates during volatile periods and calm markets.
Why It Beats Traditional Moving Averages
🚀 No More Overfitting to Every Candle
You focus only on impactful price changes.
🚀 Multi-Timeframe Flexibility
Blend micro and macro views seamlessly in one chart.
🚀 Cleaner Signals, Less Noise
Event-triggered recalculations filter out useless minor price wobbles.
🚀 Customization Beyond Standard MAs
TEMA, HMA, ALMA, DEMA, VWMA — all included for ultra-fine-tuned strategies.
✨ Ready to Upgrade Your Trading?
Forget the old, slow MAs.
Use intelligence. Trade events, not noise.
→ Add Event-Based Multi MA v1.1 to your chart and experience true precision!
RSI Alligator StrategyHello trading family! Just wanted to give a quick write up and share the new code for the RSI Alligator Strategy. I amended it to show every crossover signal, weak and strong, so we can accurately gauge its effectiveness.
Having played with this for a couple hours now I have learned a few things
-Using Heikin Ashi seems to smooth it out a bit and provides about 20% fewer signals, leading to overall more accuracy. However, it can be misleading as the Heikin Ashi opening price doesn't always line up with the market price, especially in cases of large moves. Overall though it didn't seem too far off except for a few instances.
-Also, using the Heikin Ashi gives you a better idea of the trend, which this indicator is primarily used to detect and exploit.
-Having tested on TF of 1H-1D, overall profitability is found to be highest between 4H-12H, with 1D giving the "safest" longer term signals, and lower TF's generating many more signals due to volatility.
-Instead of waiting for the next signal in order to close, you can often use a crossover/crossunder of the 5 and 13 to close the previous trade, especially if paired with a Heikin Ashi of opposite color (green to close a short, red to close a long)
-You will also notice several instances where the Green 5 period show divergences that aren't visible on the regular RSI, another handy little feature
So far I have still only tested this on BTCUSD. Feel free to apply it to any coin and let me know what you find.
Here is the script. If you have any ideas or suggestions please let me know!
Realized PriceBitcoin Realized Price is a metric that determines the value of all bitcoins in circulation by dividing the total purchase price by the number of bitcoins. This provides traders with the average cost basis for all bitcoins in circulation, which is also known as Realized Price.
Unlike the current Market Price that reflects the current value of CRYPTOCAP:BTC , Realized Price shows the average purchase price of all bitcoins in circulation. It is essential to note that Realized Price values each UTXO based on the value when it last moved from one wallet to another, assuming that the movement represents the purchase of the bitcoins.
The significance of Bitcoin Realized Price lies in its ability to provide traders with an overall economic perspective of the Bitcoin market. When the CRYPTOCAP:BTC Market Price exceeds the Realized Price, the market participants are making a profit on average. Conversely, when the CRYPTOCAP:BTC Market Price is lower than the Realized Price, traders are incurring paper losses on average.
It's worth noting that Realized Price is a modification of Realized Cap, created in 2018 by Antoine Le Calvez.
In addition to BTC I have added LTC and ETH
NB!
Script is history data depended - use on charts with most history data
BTC -> BNC:BLX
ETH -> BITSTAMP:ETHUSD
LTC -> BITFINEX:LTCUSD
it plots realized price and its deviation - when price break out from these bands it explodes hard - near the realized price is good to accumulate the coin - it is fair price
Examples
BTC
ETH
LTC
Engulfing Detector (Supply and Demand)Bullish and bearish engulfing candles marked with horizontal lines around engulfed candle.
This indicator can be used to assist in locating potential supply and demand zones.
The fresh zones will be of green and red line colors and the tested zone lines are grey in color.
Incremental Lines Above and BelowPut lines above and below current price by a specified value. The step value refers to the mintick value of the symbol. (e.g. BTCUSD has a mintick value of 0.01 so if you wanted an increment of $12.50 you would use 1250 for the number of steps between value)
Gap DetectorArrow at candle where bullish or bearish gap occurred by a configurable minimum pip distance