Fair Value Strategy UltimateThis is a strategy using an index's (SPX, NDX, RUT) Fair Value derived from Net Liquidity.
Net Liquidity function is simply: Fed Balance Sheet - Treasury General Account - Reverse Repo Balance
Formula for calculating the fair value of and Index using Net Liquidity looks like this: net_liquidity/1000000000/scalar - subtractor
The Index Fair Value is then subtracted from the Index value which creates an oscillating diff value.
When diff is greater than the overbought threshold, Index is considered overbought and we go short/sell.
When diff is less than the oversold signal, Index is considered oversold and we cover/buy.
The net liquidity values I calculate outside of TradingView. If you'd like the strategy to work for future dates, you'll need to update the reference to my NetLiquidityLibrary , which I update daily.
Parameters:
Index: SPX, NDX, RUT
Strategy: Short Only, Long Only, Long/Short
Inverse (bool): check if using an inverse ETF to go long instead of short.
Scalar (float)
Subtractor (int)
Overbought Threshold (int)
Oversold Threshold (int)
Start After Date: When the strategy should start trading
Close Date: Day to close open trades. I just like it to get complete results rather than the strategy ending with open trades.
Optimal Parameters:
I've optimized the parameters for each index using the python backtesting library and they are as follows =>
SPX
Scalar: 1.1
Subtractor: 1425
OB Threshold: 0
OS Threshold: -175
NDX
Scalar: 0.5
Subtractor: 250
OB Threshold: 0
OS Threshold: -25
RUT
Scalar: 3.2
Subtractor: 50
OB Threshold: 25
OS Threshold: -25
Tìm kiếm tập lệnh với "daily"
Kalman Gain Parameter MechanicsFrequently asked question is to explain how Gain parameter works in kalman funtion. This script serves as a visual representation of Gain parameter of Kalman function used in HMA-Kalman & Trendlines script. (The function creator's name was misspeled in that script as Kahlman)
To see better results set your Chart's timeframe to Daily.
Heikin Ashi Smoothed Buy Sell (Sunseeder) I like to use it on the daily. This helps with indicating buy signals on the DXY, BITCOIN and ETH charts. You're able to customize the colors of the buy signals etc. Enjoy!
Three Golden By Moonalert =========================
English
=========================
Three Golden By Moonalert
(Green Bar) BUY = All three conditions are agree uptrend.
1 candlestick is on the middle line of Bollinger Bands
2 RSI is more than 50
3 MACD cross up Zero Line
(Red Bar) SELL = All three conditions are agree downtrend
1 candlestick is under the middle line of Bollinger Bands
2 RSI is less than 50
3 MACD cross down Zero Line
(Yello Bar) Wait and see = some candition are agree uptrend or downtrend
Basic logic is
Green = Buy
Red = Sell
Yello = wait and see
Working Good for TF Daily.
=========================
THAI
=========================
เขียว = ซื้อ ( Bollinger bands , Rsi , Macd บอกขึ้นทั้งหมด )
เเดง = ขาย ( Bollinger bands , Rsi , Macd บอกลงทั้งหมด )
เหลือง = นั่งนิ่งๆ ( Bollinger bands , Rsi , Macd บอกขั้นหรือลงบางตัว )
สามารถปรับMACD ระหว่าง
Cross Signal กับ Cross Zeroได้ เเนะนำอย่างหลัง
สามารถปรับ EMA 20 50 200 เปิดปิดได้ที่ตั้งค่า
Multi-timeframe MAs + Stoch RSI SignalsHello traders,
I welcome you to my first published script on TradingView: “Multi-timeframe Moving Averages + Stochastic RSI”.
The script is based on a simple formula: Buy signals are generated when a fast moving average is above a slower moving average (uptrend) and the Stochastic RSI K line is crossing above the oversold level (entry).
Sell signals are generated when a fast moving average is below a slower moving average (downtrend) and the Stochastic RSI K line is crossing below the overbought level (entry).
This indicator works best in strong trends!
**Please note the above example has repainting turned on which may produce unrealistic results when viewing historical data. See below for more information regarding this and how you can turn it off.**
The user has the following inputs:
- Option to change the Stochastic RSI settings, including the oversold and overbought levels.
- Option to enter any value for both the Fast Moving Average and the Slow Moving Average.
- Option to change between EMA or SMA for each moving average.
- Multiple time frames to choose from, as well as the ability to selectively turn off individual time frames (both plots and alerts).
(Default time frames are 1 hour, 4 hour, and Daily. You can have a 4th time frame by changing your current time frame to something lower than the other 3 time frames)
- Turn on/off repainting: If repainting is turned on you will get an alert and buy/sell signal on chart immediately when condition is met, however the signal may disappear from chart if the condition reverses during the same candle.
If repainting is turned off, the indicator will wait for the candle to close before issuing the alert and painting the signal on chart.
For higher time frames, the indicator will wait for the candle in the higher time frame to close before issuing a signal if repaint is turned off. Default is set to Repaint on, so please be aware of this if you do not want repainting.
How to use alerts:
- Before you do anything, make sure your current time frame is the lowest time frame you’d like alerts on, as you will still receive alerts for the higher time frames you selected in settings.
- Once you have all the settings changed to how you like, save your chart first. Then right click on any of the indicator’s buy/sell signals on the chart and click “Add Alert on MAs + Stoch RSI”.
- Make sure “Any alert() function call” is selected under the Condition.
- You can delete or change the text in “Alert name” if you want as the alert message is already built into the indicator, and it will tell you in the alert message which asset and time frame to buy or sell.
Other things to note:
- The indicator will not display the buy/sell signals of lower time frames when you are on a higher time frame. This was done purposely to reduce clutter on the chart when you switch to higher time frames.
- While the alert message will tell you which time frame a signal was generated, the plots on the chart will instead show “Buy/Sell TF1, or TF2, or TF3”.
If the signal is from the current time frame that the alert was created on, then it will simply show “Buy” or “Sell”.
Hope you guys enjoy using this one, please drop a like if you found it useful. If anyone wants to modify my script in any way, please just credit me for the original work when you publish the script. Good luck!
Momentum Performance This Indicator displays the momentum (performance) of the symbol in percent.
You can compare the performance with other symbols.
The default benchmarks are the S&P 500, the MSCI World and the FTSE All World EX US.
The default length corresponds to one year in the timeframes monthly, weekly and daily.
In intraday the default length is 200, but you can also set your own setting.
You have also the opportunity to display a average momentum performance of the main symbol.
Webby's RSI (Really Simple Indicator) [LevelUp] Webby's RSI (Really Simple Indicator) is a technical indicator designed to gauge the health of an uptrend. The concept and original implementation was created by Mike Webster, previously a portfolio manager for William O'Neil, founder of Investor's Business Daily.
Most often used with the Nasdaq Composite (IXIC), Webby's RSI is the percentage of the low versus the 21-day moving average. At the beginning of a bull market, the higher the value, the better, as we want to see power.
Using the zones shown on the chart:
0.5% and 2.0% - Ideal
2.0% to 4.0% - Caution
4.0%+ - Warning
Trading With Colors7 hours ago
Hello friends. This is simply a moving average ribbon, per se. The values for the colored ribbon can have their length calculated to fit their chosen resolution on the current one. This solved problems for me, but it was my own solution. Maybe I'll learn something new from sharing this.
To everybody else who is learning as well, this script essentially serves to introduce other time-frame moving averages. This intends to helps traders find the scope of relevance and not get lost in the current time-frame.
Besides the colored moving averages (2 sets, different resolutions, great zoomed in our out), I included optional check-boxes to allow comparison of sets of moving averages at will, so that the most important to the individual trader can be compared and selected specifically.
I kept the default options set to keep it clean. It likely won't be the only indicator on one's chart, so it's naturally best to reduce indicator noise from one, as to not subtract from the benefit of the other indicators.
I integrated tons of acquired knowledge into this, so I hope somebody finds a missing piece to their collection or a solution to a coding problem within. I also hope this provides a new insight and helps others on their path to financial freedom.
Best wishes.
PS: I left some old code in comments in case it helps to understand the evolution of my code. I'll update this again once it works on the Daily. You might figure it out before I do, in wish case, do share :)
Linear Regression Pearson's R - Trend Channel StrategyThis script takes advantage of the Pearson's R attribute of the data set you provide.
Pearson's R attempts to find how correlated data is with a potential pattern. If the number is negative the correlation is upwards . If it's positive the correlation is downwards . Pearson's R can only be a number between -1 and 1. It should be impossible to ever reach -1 or 1 as that would be a perfect correlation.
This particular strategy involves using linear regression and Pearson's R to keep recalculating steps back from the current position until the Pearson's R reaches the desired amount. For example, in my experience I have found that 0.85 for as a buy point is very good as it means the trend is very reliable and solid. When the market tends to be bullish it tends to do so longer then when it's bearish.
Likewise when a downtrend is more real, I found that 0.71 for the negative Pearson's R value is ideal and gives the best results.
These can all be changed in the settings section (with the gear icon) next to when you set your results.
This strategy is really fun/useful to watch if you have the replay bar mode enabled for TradingView. This script supports this and all you have to do is go into the settings and enable realtime mode . Doing this you can actually see the trend lines change in realtime and comes in very handy for seeing long term reversals as you will see the Pearson's R value start to go down or up indicating the path it's going on.
WARNING: This script is very intensive on the processing power of your machine. If you find that it's to slow you may have to go into the settings of the script and adjust the 'step by' parameter so that it calculates a little faster. It won't be as accurate but it will be good enough. I feel I've optimized it with it's current setting as an example of what you want to aim for.
If there are any questions do no hesitate to message or ask me. I love feedback on the community for new features and ideas!
This works best with with XBTUSD on the 4 hourly chart . It does not seem to work well if you go below hourly or go above daily.
GBTC/BTC MACDGBTC created BTC's leading indicator theory.
GBTC / BTC (market capitalization) MACD is calculated.
It seems to be good to see more than daily.
GBTCはBTCの先行指標説を信じて作成しました。
GBTC/BTC(時価総額)のMACDを計算しています。
日足以上で見るのが良いと思われます。
ft.se.zero_crossingTurns zero crossings into a simple long/short signal (-1,0,1). Can be added to any suitable third party indicator. Example shows how the extractor can be used to analyse the performance of WolfPack ID on the daily.
Note: this script is part of FalkorTools, a suite of composable tools to build and analyse strategies on trading view.
Traded Range & True ATRBlack line = Trade Range from the last X periods.
Red Line = 61.8% of black line value.
Green bar = The current trade period range.
Default Value = 21 (21 days = I business month)
Generally speaking, a stock moves approximately the same value daily. Knowing the approximate value it likes to stay within calms the nerves when you see retracement of price occuring.
IE. Price average = 1.00 in a day. It move .75 within first hour then retraces in the opposite direction. There are still hours left in the trade day, so it is trading in its value range in order to not over extend itself.
This differs in calculation from the Wells Wilder version as it smooths out jumps and only examines the ranges between high and low.
A good rule of thumb is.
Stop Loss = Entry Price +/- (ATR * 1.5)
Take Profit = (1) Entry Price +/- ATR - 50% exit (Set Trailing Stop @ Entry Value), (2) Entry Price +/- ATR * 2 (50% of remaining).
Parabolic SAR Strategy w/ EMA AlertsLong green arrow.
Short red arrow.
White bars = no trade zone.
Updating trailing stop daily.
Bitcoin Stock to Flow Multiple (fixed)This is a fixed version of the original script by yomofoV:
I fixed the variable assignments and added switching of timeframes over indicator inputs.
To switch timeframes click on the indicator, open its settings and switch the timeframe to either monthly, weekly or daily.
Multi Timeframe EMAs (Fib@MWD)plot fibonacci EMAs 21,55,233 on the timeframes monthly, weekly and daily.
Multi Timeframe EMAs (Round@MWD)plot round number EMAs 20,50,200 on the timeframes monthly, weekly and daily.
RSI Multi Time Frame - Spot Panic Sell Moments and profit!Union of three RSI indicators: 1h, 4h and daily. In order to show 1h RSI, you have to set it as active time frame on the chart.
Purpose: spot "triple oversold" moments, where all the three RSI are under the threshold, which is 30 by default but editable.
Target Market: Cryptocurrencies. Didn't try it on other ones, may work as well. Fits Crypto well as, by experience, I can tell it usually doesn't stay oversold for long.
When the market panics and triple oversold occurs, the spot is highlighted by a green vertical bar on the indicator.
The indicator highlights triple overbought conditions as well (usually indicating strong FOMO), but I usually don't use it as a signal.
I suggest to edit the oversold threshold in order to make it fit the coin you're studying, minimizing false positives.
Special thanks to Heavy91, a Discord user, for inspiring me in this indicator.
Any editing proposal is welcome!
I reposted this script, as the first time I wrote it in Italian. Sorry for that.
Percent Difference Between VWAP and Price MTFShows the difference between vwap and price in percent.
You can can choose between multiple timeframe vwap. Default is normal daily.
The levels on the indicator can be changed to whatever you want to.
In the chart above we can see eurusd reverting up at 3% below monthly vwap, after the brexit dip, It then turns down again at 1% from monthly and lastly it turns up again at 2% from monthly.
Script is a small modification of this:
Oracle Pivot Engine (OPE) — @darshaksscThe Oracle Pivot Engine (OPE) is a market-structure visualization tool that derives all its levels exclusively from historical price data — specifically, the previous day’s high, low, and mid-range.
It does not provide signals, alerts, entries, exits, predictions, or trade recommendations.
Instead, it creates a non-repainting reference framework that helps users observe how the current session interacts with the prior session’s completed price structure.
All calculations are analytical, static, and based on fully closed candles.
🧠 How It Works (Core Logic Explained)
OPE computes the following values from the completed prior daily candle:
Prior-Day High
Prior-Day Low
Prior-Day Midpoint
Displacement Range = High − Low
This displacement range is used to generate symmetrical upward and downward reference zones.
These levels do not update during the session.
They refresh only once per day when a new daily candle closes.
This ensures the indicator remains fully non-repainting and stable on every intraday chart.
📐 Reference Levels Generated
Using the fixed prior-day displacement range, OPE plots:
1. BUY-Side Reference Map (Upward Bias)
BUY Reference Entry
BUY Reference Stop
BUY T1
BUY T2
BUY T3
BUY T4
BUY T5
BUY T6
These are not trade signals — they are mathematical extensions above the prior-day midpoint for structural interpretation only.
2. SELL-Side Reference Map (Downward Bias)
SELL Reference Entry
SELL Reference Stop
SELL T1
SELL T2
SELL T3
SELL T4
SELL T5
SELL T6
Again, these levels are not directives.
They are mirrored displacement extensions below the prior-day midpoint.
📊 Pivot Zone & Bands
The indicator includes optional visual layers derived from the same prior-day pivots:
Pivot High–Low Zone Shading → shows the prior-day full range
Pivot Midline → prior-day mid-price
Outer Displacement Bands → extended contextual boundaries
These are purely visual boundaries meant to improve market context.
🧾 Dashboard / HUD Explanation
A compact on-chart HUD summarizes all values.
It displays:
Section | Information (All Historical)
Prior-Day Pivots | High, Low, Mid, Range
BUY Map | Entry, Stop, T1–T6
SELL Map | Entry, Stop, T1–T6
The HUD allows you to quickly review:
Where the current price is relative to the previous day’s structure
How far price is from each level
Whether the session is operating inside or outside the prior-day displacement zones
Everything shown is static, non-repainting , and for reference only .
📊 How to Analyze It
✔ 1. Contextual Awareness
OPE helps users visually compare current intraday price to prior daily structure.
You can observe whether price is:
Inside yesterday’s high/low zone
Above the prior-day displacement
Below the prior-day displacement
This offers a clearer understanding of daily context and volatility.
✔ 2. Structural Symmetry
The BUY-side and SELL-side maps extend from the same pivot logic.
This can help visualize:
Expansion away from the prior-day midpoint
Compression within the prior-day range
Symmetrical displacement around key reference levels
Again — these are observational insights , not signals.
✔ 3. Range Interaction
As the session unfolds, users often study:
How price reacts around prior-day midpoint
Whether price is gravitating toward or away from the displacement levels
How intraday swings behave within these historical boundaries
This type of analysis is contextual , not predictive.
⚠️ Important Disclosures
This script does NOT generate trading signals.
It does NOT predict future price movement.
It does NOT contain advice, instructions, recommendations, or strategies.
All levels are derived exclusively from historical daily candle data .
This is strictly an informational visualization tool meant to support chart analysis.
Past price levels do not guarantee any future price behavior.
🛑 Disclaimer
This indicator is provided solely for educational and informational purposes.
It should not be interpreted as financial advice or a call to action of any kind.
Users should apply independent judgment and discretion when analyzing markets.
The Strat Lite [rdjxyz]◆ OVERVIEW
The Strat Lite is a stripped down version of the Strat Assistant indicator by rickyzcarroll—focusing on visual simplicity and script performance. If you're new to The Strat, you may prefer the Strat Assistant as a learning aid.
◇ FEATURES REMOVED FROM THE ORIGINAL SCRIPT
Candle Numbering & Up/Down Arrows
Previous Week High & Low Lines
Previous Day High & Low Lines
Action Wick Percentage
Actionable Signals Plot
Strat Combo Plots
Extensive Alerts
◇ FEATURES KEPT FROM THE ORIGINAL SCRIPT
Full Timeframe Continuity
Candle Coloring
◇ FEATURES ADDED TO THE ORIGINAL SCRIPT
Failed 2 Down Classification
Failed 2 Up Classification
◆ DETAILS
The Strat is a trading methodology developed by Rob Smith that offers an objective approach to trading by focusing on the 3 universal scenarios regarding candle behavior:
SCENARIO ONE
The 1 Bar - Inside Bar: A candle that doesn't take out the highs or the lows of the previous candle; aka consolidation.
These are shown as gray candles by default.
SCENARIO TWO
The 2 Bar - Directional Bar: A candle that takes out one side of the previous candle; aka trending (or at least attempting to trend).
SCENARIO THREE
The 3 Bar - Outside Bar: A candle that takes out both sides of the previous candle; aka broadening formation.
In addition to Rob's 3 universal scenarios, this indicator identifies two variations of 2 bars:
Failed 2 up: A candle that takes out the high of the previous candle but closes bearish.
Failed 2 down: A candle that takes out the low of the previous candle but closes bullish.
◆ SETTINGS
◇ INPUTS
FTC (FULL TIMEFRAME CONTINUITY)
Show/hide FTC plots
Offset FTC plots from current bar
◇ STYLE
STRAT COLORS
Color 0 (Failed 2 Up) - Default is fuchsia
Color 1 (Failed 2 Down) - Default is teal
Color 2 (Inside 1) - Default is gray
Color 3 (Outside 3) - Default is dark purple
Color 4 (2 up) - Default is aqua
Color 5 (2 down) - Default is white
◆ USAGE
It's recommended to use The Strat Lite with a top down analysis so you can find lower timeframe positions with higher timeframe context.
◇ TOP DOWN ANALYSIS
MONTHLY LEVELS
Starting on a monthly chart, the previous month's high and low are manually plotted.
WEEKLY LEVELS
Dropping down to a weekly chart, the previous week's high and low are manually plotted.
DAILY LEVELS
Dropping down to a daily chart, the previous day's high and low are manually plotted.
12H LEVELS
Dropping down to a 12h chart, the previous 12h's high and low are manually plotted.
ANALYSIS
The monthly low was broken, creating a lower low (aka a broadening formation), signalling potential exhaustion risk, which can be a catalyst for reversals. The daily candle that tested the monthly low closed as a Failed 2 Down—potentially an early sign of a reversal. With these 2 confluences, it's reasonable to expect the next daily candle to be a 2 Up. Now it's time to look for a lower timeframe entry.
◇ LOWER TIMEFRAME POSITION
HOURLY PRICE ACTION
Dropping down to an hourly chart, we're anticipating a 2 Up on the daily timeframe, so we're looking for a bullish pattern to enter a position long. I personally like the 6:00 AM UTC-5 hourly candle, as it's the midpoint of the day (for futures).
In this specific example, we see the opening gap was filled and there's a potential 2-1-2 bullish reversal set up.
At this point, price can either do one of 5 things:
Form another 1 (inside) candle
Form a 2 up (directional) candle
Form a 2 down (directional) candle
Form a 2 up, fail, and potentially flip to form a bearish 3 (outside) candle
Form a 2 down, fail, and potentially flip to form a bullish 3 (outside) candle
Knowing the finite potential outcomes helps us set up our positions, manage them accordingly, and flip bias if needed.
POSITION SETUP
Here we can set up a position long AND short. To go long, we set a buy stop at the 1h high and stop loss just below the 50% level of the inside candle; to go short, we set a sell stop at 1h low and stop loss just above the 50% level of the inside candle.
If the short gets triggered first, we can wait for price to move in our favor before cancelling the buy order. If the short becomes a failed 2 down, potentially reversing to become a bullish 3, we can either wait for the stop loss to trigger and for the long position to trigger OR we can move the buy stop to our short stop loss and move the long stop loss to the low of the 1h candle.
POSITION REFINEMENT
For an even tighter risk-to-reward, we can drop to a lower timeframe and look for setups that would be an early trigger of the 1h entry. Just know, the lower you go the more noise there is—increasing risk of getting stopped out before the 1h trigger.
Above are 30m refined entries.
In this example, the long buy stop was triggered. It closed bullish, so the sell stop order can be cancelled.
◇ TARGETS & POSITION MANAGEMENT
TARGETS
These depend on whether you intend to scalp, day trade, or swing trade, but targets are typically the highs of previous candles (when bullish) and lows of previous candles (when bearish). It's advised to be cautious of swing pivots as there's a risk of exhaustion and reversal at these levels.
In this example, the nearest target was the previous 12h high and the next target was the previous day high; if you're a swing trader, you could target previous week's high and previous month's high.
POSITION MANAGEMENT
This largely depends on your risk tolerance, but it's common to either:
Move stop loss slightly into profit
Trail stop loss behind higher highs (bullish) or lower lows (bearish)
Scale out of positions at potential pivot points, leaving a runner
Scale into positions on pullbacks on the way to target
◆ WRAP UP
As demonstrated, The Strat Lite offers a stripped down version of the Strat Assistant—making it visually simple for more experienced Strat traders. By following a top-down approach with The Strat methodology, you can find high probability setups and manage risk with relative ease.
◆ DISCLAIMER
This indicator is a tool for visual analysis and is intended to assist traders who follow The Strat methodology. As with any trading methodology, there's no guarantee of profits; trading involves a high degree of risk and you could lose all of your invested capital. The example shown is of past performance and is not indicative of future results and does not constitute and should not be construed as investment advice. All trading decisions and investments made by you are at your own discretion and risk. Under no circumstances shall the author be liable for any direct, indirect, or incidental damages. You should only risk capital you can afford to lose.






















