Bitfinex Longs/Shorts Ratio AlertableThis script contains Bitfinex longs/short ratio and generates alarms with a given input .default value is 60 which means alerts when either shorts/longs reach 60:40 ratio
Cari skrip untuk "市值60亿的股票"
RSI / Stoch / SRSI / MFI / Aroon Overlay [SigmaDraconis]Combines 4 popular indicators (RSI, Stoch, SRSI, MFI) and 1 peculiar one (Aroon) in 1 for those who want to save indicators but not only.
This is an evolution of my (simpler) "RSI / Stoch / Stoch RSI (SRSI) Overlay " that you can find on my scripts.
Added bands for oversold/overbought areas (70/30 common for RSI and 80/20 for SRSI and MFI), as well as a middle 50 horizontal line.
Neutral bands around 55-45 added as well that can be hidden for less clutter. I also recommend a more transparent coloring for these since Pine script doesn't allow default transparency for horizontal lines.
By default only RSI and Stoch are activated, you can activate Aroon, MFI and SRSI on the inputs window.
Some extra notes:
* RSI, Stoch and MFI can help to strengthen one's decision as well as Aroon to predict a possible trend reversal, SRSI can show when RSI has high probability of being topped or bottomed when oversold/overbought but don't forget to look at volume and how the trend progresses that can keep SRSI above 80 or below 20 while RSI and price continues to trend, divergences are most helpful here to find possible reversal areas.
* This chart depicts some interesting divergences, as well as Stoch tops and bottoms and confluences between RSI/MFI and Stoch on some over-extended tops and bottoms that shown being good reversal zones.
RSI resistances are shown as well, failing to break above 60 or the neutral zone (this is a bearish BTC trend chart after all) or failing to gain support to break up certain levels (RSI notes a more bullish trend when consistently above 60 and more bearish below 40).
If you like it and use it to profit, please tip me below :)
Tip jars:
BTC: 15nMBiEGVrdGcu9C1h6QRcTNRvugHkqrMQ
ETH: 0xC33845946c48B61fBCbEA0367ec2238CaF2b73bc
BTS: sigma-draconis
Chop and explodeThe purpose of this script is to decipher chop zones from runs/movement/explosion
The chop is RSI movement between 40 and 60
tight chop is RSI movement between 45 and 55. There should be an explosion after RSI breaks through 60 (long) or 40 (short). Tight chop bars are colored black, a series of black bars is tight consolidation and should explode imminently. The longer the chop the longer the explosion will go for. tighter the better.
Loose chop (whip saw/yellow bars) will range between 40 and 60.
the move begins with blue bars for long and purple bars for short.
Couple it with your trading system to help stay out of chop and enter when there is movement. Use with "Simple Trender."
Best of luck in all you do. Get money.
Build A BotThis is the Robot we built during the 60 Minute Build-A-Bot webinar on September 12, 2018. We had a great time, and a lot of participation and the best part was that we finished up this robot and even ran a backtest in exactly 60 minutes! We built this robot based on recommendations and suggestions from those who were attending live. Lots of pieces in this robot, but you can always tinker with it, remove stuff, add things, whatever you want!
This version uses the CCI as a trigger for trade entry. The other version uses the Hull Moving Average as a trigger for trade entry.
Volume Zone Oscillator and Price Zone (VZO/PZO) [NeoButane]" Volume Precedes Price is the conceptual idea for the oscillator."
"The main idea of the VZO was to try to change the OBV to look like an oscillator rather than an indicator, also to include time; primarily to identify which zone the volume is located in during a specific period "
How to read this indicator:
Positive reading -> bullish
Negative reading -> bearish
-60 or 60 is seen as the limit of the oscillator range, and a pullback should be expected from there.
Plus and minus signs have been added to the top and bottom for VZO and PZO, with an adjustable threshold to trigger.
Alert conditions have been added to this indicator for ease of use.
Volume Zone Oscillator, write-up by the author (recommended reading)
http:capitalsynergy.com/resources/IFTA09VZO.pdf
Volume Zone Oscillator, uses and formula
https:www.investopedia.com/articles/active-trading/072815/how-interpret-volume-zone-oscillator.asp
Price Zone Oscillator, uses and formula
https:www.investopedia.com/terms/p/price-zone-oscillator.asp
Fib,Guppy Multiple MA(FGMMA)(A/D & Volume Weight,SMA,EMA)[cI8DH]Features:
- 3 + 12 MAs (12 is chosen because Guppy has 12 MAs)
- MA types can be set to Simple, Exponential, Weighted, and Smoothed
- Volume weight can be applied to all available MAs (the built-in VWMA uses Simple MA)
- It is possible to count in only effective portions of the volume in the equation by using Accum/Dist Volume Weight
- Secondary smoothing (useful when volume weight is enabled)
- Predefined MA sets based on Fibonacci sequence (2,3,5,8,.., 377), Guppy (3,5,8,10,12,15 &30,35,40,45,50,60), and cI8DH (2,3,5,8,12,17 & 30,34,39,45,52,60)
Recommended settings:
- hlc3 as input source captures all the essential information encapsulated in a candle. I'd use hlc3 as the default option. In uptrend, "low" and in downtrend, "high" might give more relevant results when using MAs for structural analysis of a market. For commonly used MAs (EMA20, SMA50,100,200), "close" should be used due to their self-fulfilling prophecy effect.
- When you have volume weight above 0, you may want to use secondary smoothing.
- Try not to use Simple MA for smaller lengths (below 20). Sharp changes in the past (right before the period specified by the length) will affect the current value of MA dramatically leading to confusion.
- I am using the first 3 MAs for SMA 50,100,200. You can disable them from the MA type selector all at once when using Fib or Guppy ribbons.
MA-based analysis:
There are different ways of structuring a market. Geometrical (trend lines, channels, fans, patterns, etc) and Fib retracement-based structuring is very common among traders. MAs give an alternative way of analyzing markets. MA ribbons such as Guppy (6 slow and 6 fast-moving MAs) are popular for analyzing market flow. IMO default Guppy sets are a bit random as the numbers do not have an elegant sequence. So I proposed my sets based on increasing sequene spacing (+1). These two MA ribbons are good for market flow analysis but the spacing of the MAs are not ideal for structuring a market. Ribbons based on the Fib sequence is a better choice for structuring a market. This is the equivalent of Fib channels but in a more dynamic form. Among other things, MA Fib ribbon can be used to assess market momentum and to compare different stages of a market. Here are two "educational-only" examples:
Notes:
- Smoothed MA with length L = Exponential MA with length 2*L-1
- Read the background section in my ADP indicator to understand how A/D Volume is calculated
Better RSI with bullish / bearish market cycle indicator This script improves the default RSI. First. it identifies regions of the RSI which are oversold and overbought by changing the color of RSI from white to red. Second, it adds additional reference lines at 20,40,50,60, and 80 to better gauge the RSI value. Finally, the coolest feature, the middle 50 line is used to indicate which cycle the price is currently at. A green color at the 50 line indicates a bullish cycle, a red color indicators a bearish cycle, and a white color indicates a neutral cycle.
The cycles are determined using the RSI as follows:
if RSI is overbought, cycle switches to bullish until RSI falls below 40, at which point it becomes neutral
if RSI is oversold, cycle switches bearish until RSI rises above 60, at which point it becomes neutral
a neutral cycle is exited at either overbought or oversold conditions
Very useful, please give it a try and let me know what you think
MG - Multiple time frame Stochastic RSIAllows user to view stochastic RSI from two different time frames.
Each stochastic RSI indicator is fully customizable, offering the following options:
- Timeframe
- RSI source
- RSI length
- Stochastic length
- Stochastic average length
- Stochastic smoothing length
Usage:
Comparing stochastic RSI across two different time frames can sharpen trades. For example, if you configure a 60 min and 5/15 min stochastic RSI pair, you might enter a long trade when the 60 min stoch RSI crosses up and exit / take profit when the 5 min stock RSI crosses down.
NG [Simple Harmonic Oscillator]The SHO is a bounded oscillator for the simple harmonic index that calculates the period of the market’s cycle.
The oscillator is used for short and intermediate terms and moves within a range of -100 to 100 percent.
The SHO has overbought and oversold levels at +40 and -40, respectively.
At extreme periods, the oscillator may reach the levels of +60 and -60.
The zero level demonstrates an equilibrium between the periods of bulls and bears.
The SHO oscillates between +40 and -40.
The crossover at those levels creates buy and sell signals.
In an uptrend, the SHO fluctuates between 0 and +40 where the bulls are controlling the market.
On the contrary, the SHO fluctuates between 0 and -40 during downtrends where the bears controlthe market.
Reaching the extreme level -60 in an uptrend is a sign of weakness.
Ichimoku Cloud w/SelIchimoku Cloud with selection for:
Regular:
conversionPeriods = 9,
basePeriods = 26
laggingSpan2Periods = 52,
displacement = 26
Crypto:
conversionPeriods = 10,
basePeriods = 30,
laggingSpan2Periods = 60,
displacement = 30
Crypto Doubled:
conversionPeriods = 20,
basePeriods = 60,
laggingSpan2Periods = 120,
displacement = 30
3 Linear Regression CurveFast 3LRC - 15/30/60 standard settings - 15/30 give a lot of noise, but give you a some time to prepare for the 60 to flip
DEMA Double Exponential Moving Average Strategy@Moneros 2017
Based on The DEMA is a fast-acting moving average that is more responsive to market changes than a traditional moving average
en.wikipedia.org
!!!! IN ORDER TO AVOID REPAITING ISSUES !!!!
!!!! DO NOT VIEW IN LOWER RESOLUTIONS THAN res/2 PARAMETER !!!!
for example res = 120 view >= 60m res = 60 view >= 30m
the length of the DEMA sampling shouldn't be longer than a candle
Best profits tested on BTCUSD
res = 105 slowPeriod = 2 fastPeriod = 32
res = 125 slowPeriod = 3 fastPeriod = 21
res = 120 slowPeriod = 2 fastPeriod = 32
res = 130 slowPeriod = 1 fastPeriod = 24
res = 40 slowPeriod = 4 fastPeriod = 93
res = 60 slowPeriod = 1 fastPeriod = 67
BTCUSD
RSI in Bull and Bear Market V2.0RSI oversold at 60/40 in bullish market
And Overbought at 40/60 in Bearish market
for more info of this Strategy
WaveTrend [MastroFran]Great indicator to show short term price movements. 5 day moving average oscillator. When green crosses red and under the 60 mark, buy with caution. when over the 60 mark and red crosses green sell immediately for highest profits.
Hersheys CoCo VolumeCoCo Volume shows you volume movement of your symbol after subtracting the movement from another symbol, preferrably the sector or market the stock belongs to.
My latest update to my CoCoVolume Indicator. It calculates today's volume percent over the 60 period average for both your symbol and index, and displays that difference. If the percent is over the max it highlights the color, showing BIG action for that stock.
The last version was calculating the percent volume difference from yesterday to today for the stock and index and displaying the difference. The prior method had large swings on low volume stocks... this one shows the independent volume action much better. The default values will suit most stocks.
You can set three variables...
- the index symbol, default is SPY
- the period for averaging, default is 60
- the max volume percent, default is 500
Good trading!
Brian Hershey
close-hl2 Price actionStill not tested, but looks very good ; it is the difference between EMA median price and EMA close in different time frame, I used 240, 60, and the current Time frame ,plus one more customed period ; can forcast the price movement , but it s not in scale, so it can not show how much higher or lower the price can goes but just the next direction. I think intraday on 5 ,15 ,60 better then high frame.If you need to try on Daily frame have to change the period to higher then Daily
Everyday 0002 _ MAC 1st Trading Hour WalkoverThis is the second strategy for my Everyday project.
Like I wrote the last time - my goal is to create a new strategy everyday
for the rest of 2016 and post it here on TradingView.
I'm a complete beginner so this is my way of learning about coding strategies.
I'll give myself between 15 minutes and 2 hours to complete each creation.
This is basically a repetition of the first strategy I wrote - a Moving Average Crossover,
but I added a tiny thing.
I read that "Statistics have proven that the daily high or low is established within the first hour of trading on more than 70% of the time."
(source: )
My first Moving Average Crossover strategy, tested on VOLVB daily, got stoped out by the volatility
and because of this missed one nice bull run and a very nice bear run.
So I added this single line: if time("60", "1000-1600") regarding when to take exits:
if time("60", "1000-1600")
strategy.exit("Close Long", "Long", profit=2000, loss=500)
strategy.exit("Close Short", "Short", profit=2000, loss=500)
Sweden is UTC+2 so I guess UTC 1000 equals 12.00 in Stockholm. Not sure if this is correct, actually.
Anyway, I hope this means the strategy will only take exits based on price action which occur in the afternoon, when there is a higher probability of a lower volatility.
When I ran the new modified strategy on the same VOLVB daily it didn't get stoped out so easily.
On the other hand I'll have to test this on various stocks .
Reading and learning about how to properly test strategies is on my todo list - all tips on youtube videos or blogs
to read on this topic is very welcome!
Like I said the last time, I'm posting these strategies hoping to learn from the community - so any feedback, advice, or corrections is very much welcome and appreciated!
/pbergden
Bộ lọc Stoch RSI + MACD + Volume + MFI//@version=6
indicator("Bộ lọc Stoch RSI + MACD + Volume + MFI", overlay=false)
// Input
lenStoch = input.int(14, "Stoch RSI Length")
lenMACD = input.int(12, "MACD Fast Length")
lenSignal = input.int(9, "MACD Signal Length")
lenMFI = input.int(14, "MFI Length")
minVol = input.int(1000000, "Khối lượng tối thiểu")
// Stochastic RSI
k = ta.stoch(close, high, low, lenStoch)
d = ta.sma(k, 3)
// MACD
macd = ta.ema(close, lenMACD) - ta.ema(close, 26)
signal = ta.ema(macd, lenSignal)
// ✅ MFI (chỉ cần volume và length)
mfi = ta.mfi(volume, lenMFI)
// Điều kiện lọc
buyCond = (k < 20 and macd > signal and volume > minVol and mfi > 60)
sellCond = (k > 80 and macd < signal and mfi < 40)
// Xuất tín hiệu
plotchar(buyCond, "BUY", "▲", location=location.bottom, color=color.green, size=size.large)
plotchar(sellCond, "SELL", "▼", location=location.top, color=color.red, size=size.large)
Bull/Bear Ownership — MTF Alignment (v6)Bull/Bear Ownership — MTF Alignment (v6)
Scores who “owns” the market (bulls vs bears) across multiple timeframes and rolls it into a single 0–100 alignment score (50 = neutral). Uses bullish-bar share, body dominance, and regression slope (ATR-normalized). Includes faint MTF trend lines, bar paints, mini table, badge, and 4 alert conditions.
Full description
What it does
This tool measures bull/bear ownership on up to 7 selectable timeframes and combines them into one easy alignment meter.
For each TF it computes:
Share of bullish bars over a lookback (0–1).
Body dominance (−1…+1) = avg(bull bodies) − avg(bear bodies) scaled by total bodies.
Trend slope (−1…+1) = linear regression slope normalized by ATR (dimensionless strength).
These pieces are blended into a per-TF score (−10…+10), weighted by your TF weights, and normalized to a composite 0…100:
Higher = stronger multi-TF bull ownership
Lower = stronger multi-TF bear ownership
50 = neutral / mixed
Visuals
Optional faint regression “trend lines” per TF (green/red by direction).
Bar paints on GO / NO-GO thresholds (default 70 / 30).
Floating badge with the live % and stack state.
Mini table showing each TF’s score % and notes (majority bull/bear, body Δ%, slope×ATR).
Inputs
Timeframes: 7 slots, each with enable + weight (1–5).
Ownership calc: Lookback (bars), slope length, ATR length, blend weights (body vs slope).
Display: trend lines toggle, opacity, bar paints, badge, table, table corner.
Thresholds: GO (bullish) / NO-GO (bearish).
Alerts
GO ✅ (composite ≥ threshold)
NO-GO 🛑 (composite ≤ threshold)
ALL TFs UP ✔ (every enabled TF bullish)
ALL TFs DOWN ✖ (every enabled TF bearish)
Tips
Use a ladder like 60/120/180/240/D (1h/2h/3h/4h/1D).
Give higher TFs more weight for trend trading; raise body dominance weight for “who’s in control,” or slope weight for momentum.
Set ownLen = 1 if you want “who owned the last bar” per TF.
Tune GO/NO-GO for your asset & timeframe; 70/30 is a solid start.
Notes
This is an analysis tool, not financial advice. Backtest and combine with your risk management. uwu 💜
Supertrend Alignment Score — MTF Stack (v6)Supertrend Alignment Score — MTF Stack (v6)
Aggregates up to 7 Supertrends across custom timeframes, weights them, and converts the stack into a single 0–100 alignment score (50 = neutral). Includes faint MTF ST lines, GO/NO-GO bar paints, a per-TF mini table, a live score badge, and “All TFs Up/Down” stamps. Four alert conditions included.
How it works
Pulls Supertrend from up to 7 selectable TFs (e.g., 5/15/30/60/120/240/D).
For each TF it computes:
dir = ST direction (+1 bull, −1 bear)
prox = (close − ST) / ATR (distance in ATRs)
Per-TF score = dir * (0.7 + 0.3 * clamp01(dir*prox)) * 10 → −10…+10
Scores are weighted by your TF weights (1–5), summed, then normalized to 0…100.
All TFs Up/Down triggers when every enabled TF agrees.
Visuals
Optional faint ST lines per TF (color-coded by direction).
Bar paints on GO/NO-GO thresholds (defaults: GO ≥ 70, NO-GO ≤ 30).
Badge showing live composite % and stack state.
Mini table listing each TF’s score % and note (↑/↓ plus ATR proximity).
Inputs
Supertrend: Factor & ATR Length
7 TF slots with enable toggles & weights
Display toggles: bar paints, badge, table, ST lines, line opacity
GO / NO-GO thresholds (editable)
Alerts
GO (score ≥ threshold)
NO-GO (score ≤ threshold)
ALL TFs UP
ALL TFs DOWN
(Also posts a bar-close alert message with the current %.)
Tips
Use a logical TF ladder (e.g., 5m/15m/30m/1h/2h/4h/1D).
Give higher TFs more weight if you’re trend-following.
Tune GO/NO-GO to your market & timeframe; 70/30 is a solid starting point.
Consider confluence with volume/structure before entries.
Notes
This is an analysis tool, not financial advice. Backtest & validate before live use.
Requires real-time data on higher TFs for timely MTF updates.
Weather Score 555 — 5 Families × 5 Variants (v6)Weather Score 555 — 5 Families × 5 Variants (v6)
What it is
A lightweight multi-factor “market weather” meter. It evaluates 5 indicator families, each with 5 parameter variants, normalizes them, and aggregates to a composite 0 → 555 readiness score with GO / NO-GO alerts, a draggable badge, painted bars, and a mini table.
Families (each scaled 0–111):
Trend: EMA fast/slow pairs with price-above/below, stacking, and short/long slope bonuses.
RSI: 5 lengths normalized around the 40–60 balance zone.
MACD (histogram z-score): 5 classic parameter sets, standardized by per-set stdev.
ADX strength: Wilder ADX across 5 lengths, favoring the 15–35 “power zone.”
ATR %: Current ATR vs its own range (expansion vs contraction) across 5 len/lookbacks.
Scoring
Each family builds 5 sub-scores (0–10 each) → summed and scaled to 0–111.
Composite = sum of enabled families → 0–555 max.
Signals & visuals
GO ✅ when composite ≥ your threshold (default 80% of max).
NO-GO 🛑 when composite ≤ your threshold (default 20%).
Optional painted bars (soft lime/red) during GO/NO-GO.
Badge shows per-family scores + total; Mini Table gives a color heat view.
How to use
Add WS555 to your chart; keep defaults for a few sessions to learn its rhythm.
Treat GO as “conditions are favorable,” not an auto-entry. Confirm with your own triggers (structure, S/R, pullbacks).
Use on your trading timeframe; higher TFs make the score steadier.
Tuning tips
Raise GO toward 0.90 for fewer, stronger conditions; lower toward 0.70 for more opportunities.
Lower NO-GO if you want faster exits in bad regimes.
Trend-following? Emphasize Trend + ADX + MACD. Mean-reversion? Watch ATR% behavior and RSI balance.
Why it’s robust
Multiple parameter variants per family reduce single-setting bias.
Manual MACD & Wilder ADX avoid common Pine v6 quirks.
No dependency on volume data (works on any symbol/timeframe).
Notes
Needs some history to warm up longer lookbacks (~150–200 bars recommended).
Educational tool only — not financial advice.
Weather Score 666 — 6 Families × 6 Variants (v6)Weather Score 666 (WS666)
Multi-factor market “weather” meter that blends 6 families × 6 variants into a single score from 0 → 666.
What it measures (families, each scaled 0→111):
Trend: EMA fast/slow pairs + slope/stacking (structure & momentum agreement).
RSI: 6 lengths, normalized around the 40–60 balance zone.
Stochastic %K: 6 lengths, normalized 20–80 for rotation/mean-reversion context.
MACD (hist z-score): 6 classic parameter sets, volatility-adjusted by per-set stdev.
ADX strength: Wilder ADX across 6 lengths, favoring the 15–35 “power zone.”
ATR %: ATR vs its own percentile/range (expansion vs contraction).
Score & signals
Total = sum of 6 families (max 666). Mid ~330 is neutral; higher = more aligned tailwind.
GO / NO-GO alerts: fire when composite crosses your thresholds (default 80% / 20% of max).
Optional paint bars, a badge with per-family scores, and a mini table for quick diagnostics.
Why it’s robust
Every family uses 6 time-horizon variants, reducing single-setting bias.
Custom Wilder ADX and manual MACD avoid na/assignment quirks in Pine v6.
Works on any symbol/timeframe (intraday → higher-TF).
How to use
Add WS666, keep defaults to learn its rhythm on your market.
Tune GO/NO-GO for your instrument/timeframe.
Combine with structure (S/R, trendlines) for entries/exits; WS666 is a context/confirmation tool, not a standalone trade system.
Tip: Strong trends often show high Trend + ADX + MACD; emerging expansions show rising ATR %; choppy conditions show softer, mixed family scores.
Weather Score 777 — 7 Families × 7 Variants (v6)Weather Score 777 — 7 Families × 7 Variants (v6)
What it is
A multi-factor market “weather” meter. It evaluates 7 indicator families, each with 7 parameter variants, normalizes every variant to a 0–10 score, aggregates the family to 0–111, then sums all enabled families to a composite 0–777 trend/condition score.
Families (7×):
Trend — EMA pairs (price above/below, stack, and short/long slope checks)
RSI — 7 lengths, scaled around the 40–60 balance zone
Stochastic — %K normalized in the 20–80 band
MACD — histogram z-score (per-set stdev windows)
BB Width — volatility via Bollinger Band width percentile
ADX — directional strength, sweet spot 15–35
ATR % — current ATR vs its own lookback range (expansion/contraction)
How scoring works
Each family builds 7 sub-scores → summed to 0–70, then linearly rescaled to 0–111.
Composite = sum of enabled families → 0..777 max.
Defaults: GO ≥ 80% of max, NO-GO ≤ 20% of max (tweak in Alerts).
Why 777?
It’s an “alignment detector.” Multiple families must agree (and with robust parameter spreads) before the score climbs. That reduces single-indicator bias and helps classify regime quality (tailwind vs headwind) rather than raw entries.
On-chart features
Badge: shows each family’s 0–111 plus the composite and % of max (purple/pink heat theme).
Mini Table: quick view of family scores and notes.
Paint Bars (optional): soft lime/red during GO/NO-GO regimes.
Alerts:
GO ✅ when composite ≥ threshold
NO-GO 🛑 when composite ≤ threshold
Quick start
Add to chart, keep the default 7 families on.
Use on your main trading timeframe; higher timeframes make the score steadier.
Treat GO as conditions are favorable and NO-GO as conditions are hostile.
Combine with your own triggers (structure breaks, pullbacks, risk model). The score is a regime filter, not a standalone signal generator.
Tuning tips
Uncheck families you don’t care about (e.g., turn off BBW if you trade only trending conditions).
Raise GO toward 0.9 for stricter filters; lower it toward 0.7 for more frequency.
Lower NO-GO if you want to exit faster in bad regimes.
For mean-reversion styles, emphasize BBW and ATR%; for trend-following, emphasize Trend/ADX/MACD.
Notes
Built with Pine Script® v6.
Works on assets with or without native volume (this 777 build doesn’t rely on volume).
Educational tool only — not financial advice.
have fun and may your skies stay purple-pink and sunny ☀️🌈 uwu