Simple Portfolio TrackerThis is just a simple portfolio tracker that i started to play around with - i'm sure there are smarter ways to do this, but i chose the simpler way :) -- please feel free to use this, or consider it as a starting point to your own indicator.
i will come back later and add some more stuff once i get time. for example, show the total value, recent change, P&L % ..etc
So the simple idea is to track a portfolio of few positions and watch how the total portfolio and the PnL changes over time as the price of the individual holdings move up and down. it can be added to any chart.
The code is currently set to track 5 positions - settings allow to enter if the positions is used or not, symbol, amount and cost price..
** note: more positions can be added by editing the code and copying and pasting the marked "position block" that contains the input statements and the calculations, then changing/replacing the position identifier (_1, _2, ..etc) in all variables with new number..
--- don't forget to add these extra positions you insert in the code to the formula lines that calculate the totals
i tried to make this as easy as possible in the code. the code includes a sample portfolio as default values just to help "demo" how this works
the input is made easy, thanks to the recent addition of the "inline" feature in the input() statement
i don't know if some traders will find this useful ?? or if more about how to use it is needed.. let me know in the comments.. as i mentioned, i was just playing with the idea over the weekend so didn't really put a lot of work into it.
Credits and thanks to @boji1 for inspiring this :)
Cerca negli script per "smart"
VPA ANALYSIS VPA Analysis provide the indications for various conditions as per the Volume Spread Analysis concept. The various legends are provided below
LEGEND DETAILS
UT1 - Upthrust Bar: This will be widespread Bar on high Volume closing on the low. This normally happens after an up move. Here the smart money move the price to the High and then quickly brings to the Low trapping many retail trader who rushed into in order not to miss the bullish move. This is a bearish Signal
UT2 -Upthrust Bar Confirmation: A widespread Down Bar following a Upthrust Bar. This confirms the weakness of the Upthrust Bar. Expect the stock to move down
Confirms . This is a Bearish Signal
PUT - Pseudo Upthrust: An Upthrust Bar in bar action but the volume remains average. This still indicates weakness. Indicate Possible Bearishness
PUC -Pseudo Upthrust Confirmation: widespread Bar after a pseudo–Upthrust Bar confirms the weakness of the Pseudo Upthrust Bar
Confirms Bearishness
BC - Buying Climax: A very wide Spread bar on ultra-High Volume closing at the top. Such a Bar indicates the climatic move in an uptrend. This Bar traps many retailers as the uptrend ends and reverses quickly. Confirms Bearishness
TC - Trend Change: This Indicates a possible Trend Change in an uptrend. Indicates Weakness
SEC- Sell Condition: This bar indicates confluence of some bearish signals. Possible end of Uptrend and start of Downtrend soon. Bearish Signal
UT - Upthrust Condition: When multiple bearish signals occur, the legend is printed in two lines. The Legend “UT” indicates that an upthrust condition is present. Bearish Signal
ND - No demand in uptrend: This bar indicates that there is no demand. In an uptrend this indicates weakness. Bearish Signal
ND - No Demand: This bar indicates that there is no demand. This can occur in any part of the Trend. In all place other than in an uptrend this just indicates just weakness
ED - Effort to Move Down: Widespread Bar closing down on High volume or above average volume . The smart money is pushing the prices down. Bearish Signal
EDF - Effort to Move Down Failed: Widespread / above average spread Bar closing up on High volume or above average volume appearing after ‘Effort to move down” bar.
This indicates that the Effort to move the pries down has failed. Bullish signal
SV - Stopping Volume: A high volume medium to widespread Bar closing in the upper middle part in a down trend indicates that smart money is buying. This is an indication that the down trend is likely to end soon. Indicates strength
ST1 - Strength Returning 1: Strength seen returning after a down trend. High volume adds to strength. Indicates Strength
ST2 - Strength Returning 2: Strength seen returning after a down trend. High volume adds to strength.
BYC - Buy Condition: This bar indicates confluence of some bullish signals Possible end of downtrend and start of uptrend soon. Indicates Strength
EU - Effort to Move Up: Widespread Bar closing up on High volume or above average volume . The smart money is pushing the prices up. Bullish Signal
EUF - Effort to Move Up Failed: Widespread / above average spread Bar closing down on High volume or above average volume appearing after ‘Effort to move up” bar.
This indicates that the Effort to move the pries up has failed. Bearish Signal
LVT- Low Volume Test: A low volume bar dipping into previous supply area and closing in the upper part of the Bar. A successful test is a positive sign. Indicates Strength
ST(after a LVT ) - Strength after Successful Low Volume Test: An up Bar closing near High after a Test confirms strength. Bullish Signal
RUT - Reverse Upthrust Bar: This will be a widespread Bar on high Volume closing on the high is a Down Trend. Here the buyers have become active and move the prices from the low to High. The down Move is likely to end and up trend likely to start soon. indicates Strength
NS - No supply Bar: This bar indicates that there is no supply. This is a sign of strength especially in a down trend. Indicates strength
ST - Strength Returns: When multiple bullish signals occur, the legend is printed in two lines. The Legend “ST” indicates that an condition of strength other than the condition mentioned in the second line is present. Bullish Signals
BAR COLORS
Green- Bullish / Strength
Red - Bearish / weakness
Blue / White - Sentiment Changing from bullish to Bearish and Vice Versa
Pinescript v4 - The Holy Grail (Trailing Stop)After studying several other scripts, I believe I have found the Holy Grail! (Or perhaps I've just found a bug with Tradingview's Pinescript v4 language) Anyhow, I'm publishing this script in the hope that someone smarter than myself could shed some light on the fact that adding a trailing stop to any strategy seems to make it miraculously...no that's an understatement...incredulously, stupendously, mind-bendingly profitable. I'm talking about INSANE profit factors, higher than 200x, with drawdowns of <10%. Sounds too good to be true? Maybe it is...or you could hook it up to your LIVE broker, and pray it doesn't explode. This is an upgraded version of my original Pin Bar Strategy.
Recommended Chart Settings:
Asset Class: Forex
Time Frame: H1
Long Entry Conditions:
a) Exponential Moving Average Fan up trend
b) Presence of a Bullish Pin Bar
c) Pin Bar pierces the Exponential Moving Average Fan
Short Entry Conditions:
a) Exponential Moving Average down trend
b) Presence of a Bearish Pin Bar
c) Pin Bar pierces the Exponential Moving Average Fan
Exit Conditions:
a) Trailing stop is hit
b) Moving Averages cross-back (optional)
c) It's the weekend
Default Robot Settings:
Equity Risk (%): 3 //how much account balance to risk per trade
Stop Loss (x*ATR, Float): 0.5 //stoploss = x * ATR, you can change x
Stop Loss Trail Points (Pips): 1 //the magic sauce, not sure how this works
Stop Loss Trail Offset (Pips): 1 //the magic sauce, not sure how this works
Slow SMA (Period): 50 //slow moving average period
Medium EMA (Period): 18 //medium exponential moving average period
Fast EMA (Period): 6 //fast exponential moving average period
ATR (Period): 14 // average true range period
Cancel Entry After X Bars (Period): 3 //cancel the order after x bars not triggered, you can change x
Backtest Results (2019 to 2020, H1, Default Settings):
AUDUSD - 1604% profit, 239.6 profit factor, 4.9% drawdown (INSANE)
NZDUSD - 1688.7% profit, 100.3 profit factor, 2.5% drawdown
GBPUSD - 1168.8% profit, 98.7 profit factor, 0% drawdown
USDJPY - 900.7% profit, 93.7 profit factor, 4.9% drawdown
USDCAD - 819% profit, 31.7 profit factor, 8.1% drawdown
EURUSD - 685.6% profit, 26.8 profit factor, 5.9% drawdown
USDCHF - 1008% profit, 18.7 profit factor, 8.6% drawdown
GBPJPY - 1173.4% profit, 16.1 profit factor, 7.9% drawdown
EURAUD - 613.3% profit, 14.4 profit factor, 9.8% drawdown
AUDJPY - 1619% profit, 11.26 profit factor, 9.1% drawdown
EURJPY - 897.2% profit, 6 profit factor, 13.8% drawdown
EURGBP - 608.9% profit, 5.3 profit factor, 9.8% drawdown (NOT TOO SHABBY)
As you can clearly see above, this forex robot is projected by the Tradingview backtester to be INSANELY profitable for all common forex pairs. So what was the difference between this strategy and my previous strategies? Check my code and look for "trail_points" and "trail_offset"; you can even look them up in the PineScript v4 documentation. They specify a trailing stop as the exit condition, which automatically closes the trade if price reverses against you.
I however suspect that the backtester is not properly calculating intra-bar price movement, and is using a simplified model. With this simplfied approach, the trailing stop code becomes some sort of "holy grail" generator, making every trade entered profitable.
Risk Warning:
This is a forex trading strategy that involves high risk of equity loss, and backtest performance will not equal future results. You agree to use this script at your own risk.
Hint:
To get more realistic results, and *maybe* overcome the intrabar simulation error, change the settings to: "Stop Loss Trail Points (pips)": 100
I am not sure if this eradicates the bug, but the entries and exits look more proper, and the profit factors are more believable.
Trend M ver1this simple tool a helper for trader in order to put your target at the correct places:)
so script based on Trend M (open script in my page)
the script based on non security MTF that allow us to detect the M = mean average of resistance and support by MTF
best setting is either monthly or weekly
when you go on lower chart just put in the min the exact TF that you on. 60 min =60
2 hour 120
5 min =5
etc
when ever the trend is above the mean or M then it bullish =lime color. bellow the M is bearish =red color
the R1 and S level are % from the mean . so it can act for us either target or as stop loss
you can set the R1 or S1 as you like by % ratio . so 0.01 is 1%
0.1 is 10 % etc
all you need to find is the weekly or monthly range of the asset then put the % ratio that you wish up or down
you can use it with trend lines or other method .it just another tool to make you trade smarter
Resampling Reverse Engineering Bands [DW]This is an experimental study designed to reverse engineer price levels from centered oscillators at user defined sample rates.
This study aims to educate users on the process of oscillator reverse engineering, and to give users an alternative perspective on some of the most commonly used oscillators in the trading game.
Reverse engineering price levels from an oscillator is actually a rather simple, straightforward process.
Rather than plugging price values into a function to solve for oscillator values, we rearrange the function using some basic algebraic operations and plug in a specified oscillator value to solve for price values instead.
This process tells us what price value is needed in order for the oscillator to equal a certain value.
For example, if you wanted to know what price value would be considered “overbought” or “oversold” according to your oscillator, you can do that using this process.
In this study, the reverse engineering functions are used to calculate the price values of user defined high and low oscillator thresholds, and the price values for the oscillator center.
This allows you to visualize what prices will trigger thresholds as a sort of confidence interval, which is information that isn't inherently available when simply analyzing the oscillator directly.
This script is equipped with three reverse engineering functions to choose from for calculating the band values:
-> Reverse Relative Strength Index (RRSI)
-> Reverse Stochastic Oscillator (RStoch)
-> Reverse Commodity Channel Index (RCCI)
You can easily select the function you want to utilize from the "Band Calculation Type" dropdown tab.
These functions are specially designed to calculate at any sample rate (up to 1 bar per sample) utilizing the process of downsampling that I introduced in my Resampling Filter Pack.
The sample rate can be determined with any of these three methods:
-> BPS - Resamples based on the number of bars.
-> Interval - Resamples based on time in multiples of current charting timeframe.
-> PA - Resamples based on changes in price action by a specified size. The PA algorithm in this script is derived from my Range Filter algorithm.
The range for PA method can be sized in points, pips, ticks, % of price, ATR, average change, and absolute quantity.
Utilizing downsampled rates allows you to visualize the reverse engineered values of an oscillator calculated at larger sample scales.
This can be rather beneficial for trend analysis since lower sample rates completely remove certain levels of noise.
By default, the sample rate is set to 1 BPS, which is the same as bar-to-bar calculation. Feel free to experiment with the sample rate parameters and configure them how you like.
Custom bar colors are included as well. The color scheme is based on disparity between sources and the reverse engineered center level.
In addition, background highlights are included to indicate when price is outside the bands, thus indicating "overbought" and "oversold" conditions according to the thresholds you set.
I also included four external output variables for easy integration of signals with other scripts:
-> Trend Signals (Current Resolution Prices) - Outputs 1 for bullish and -1 for bearish based on disparity between current resolution source and the central level output.
-> Trend Signals (Resampled Prices) - Outputs 1 for bullish and -1 for bearish based on disparity between resampled source and the central level output.
-> Outside Band Signal (Current Resolution Prices) - Outputs 1 for overbought and -1 for oversold based on current resolution source being outside the bands. Returns 0 otherwise.
-> Outside Band Signal (Resampled Prices) - Outputs 1 for overbought and -1 for oversold based on resampled source being outside the bands. Returns 0 otherwise.
To use these signals with another script, simply select the corresponding external output you want to use from your script's source input dropdown tab.
Reverse engineering oscillators is a simple, yet powerful approach to incorporate into your momentum or trend analysis setup.
By incorporating projected price levels from oscillators into our analysis setups, we are able to gain valuable insights, make (potentially) smarter trading decisions, and visualize the oscillators we know and love in a totally different way.
I hope you all find this script useful and enjoyable!
Linear Regression AnalysisJust another linear regression tool to play with :)
I have to say that linear regression is one of my favorite indictor so i just try to play to show
how its we can make it smarter:)
the dashed lines are represent linear regression clone with high low and mid level shown.
the blue thin line show longer trend projection
the trend is option that can use for shorter trend
Hyper Frame Fibo MA RibbonsIntroduction
Moving averages are an integral part of the TA world. There are different types of moving averages and each person uses them depending on their strategy and market conditions.
Meanwhile, the main variable in calculating the averages is their LENGTH. This value is optional, but not every value is applicable.
After much experience in the world of financial markets, I came to the conclusion that although the most popular length values are 20, 50, 100, and 200, the Fibonacci number come with surprising results .
Description
The following script calculates seven averages with the length of Fibonacci numbers (34, 55, 89, 144, 233, 377 and 610) with the formula of your choice (SMA, EMA, WMA, HMA) and shows that we named it FiboMa .
You can also have Bollinger Bands with the desired frame at the same time.
This is not the whole story...
You can see the same values from smaller or larger frames at the same time!
We named this feature Hyper Frame Vision .
It is possible to display values for FiboMa up to three hyper frames (with the main frame a total of 4 levels) and in the Bollinger Bands one hyper frame (with the main frame a total of 2 levels).
By default, the display of FiboMa hyper frame values is limited to the last 10 bars, which you can change to an arbitrary value by changing the source code.
The display of hyper frame values is not limited for Bollinger Band.
What is its use? What is it good for?
Support and Resistance
Using dynamic support / resistance is much smarter than static! This protects you from the risk of many fake breaks, and your profit and loss limits will be more flexible and more efficient.
The intersection of FiboMa ribbons are potential points of support / resistance.
We use colors to easily identify supports / resistances.
Any average lower than the price is assumed as support and displayed in green, and any average above the price is assumed as resistance so displayed in red.
So the color of the averages is dynamic.
The color of FiboMa is a range from red to green. Whatever colors get saturated , the lenght is longer and the more power it has as support / resistance.
Volatility
With this script, you also have the ability to monitor the amount of market volatility ! The combination of Bollinger Bands and FiboMa provides a clear view of the market volatility.
The decrease and compression of the FiboMa width is a sign of a decrease in volatility and vice versa.
Trend
I don't see the need for additional explanation, only whenever the price is higher than the middle band , the BB cloud is green , and whenever it is lower , is red .
The wider FiboMa means the stronger trend.
How to use
In the script settings you have the ability to enable or disable anything except.
---------------------------------------------
Similar scripts have been published before and we were inspired by them and tried to improve idea and code uniqe one.
I hope it will be useful .. Support us with your likes and comments .. We have anothers great script .. Just started.
BitMEX Liquidation LevelsThis indicator plots BitMEX liquidation levels:
- 25x
- 50x
- 100x
The indicator works as following:
The underlying assumption (as with all liquidation calculations) obviously is that traders used fixed margin or go "all in" on their cross-margin account.
You then can configure a minimum trade volume and a minimum price change in percent for a candle to start computing liquidation levels from that candle
Additionally: configure the price base for the liqudation level: Candle high or low (default) works well, but you can also set "candle close" or "median high/low"
The indicator will then plot horizontal lines on the main chart showing price levels where many positions opened at the configured "start candle" will likely get liquidated.
It works for all BitMEX contracts and while it has been optimized for BitMEX, it will work on other exchanges with the same leverage levels (25x, 50x, 100x) and maintenance margin requirements too.
This indicator uses the Smart Volume indicator to compute the volume at the "start volume candle" setting where the liquidation level starts. This indicator can be found here: Smart Volume:
Price-Line Channel - A Friendly Support And Resistance IndicatorIntroduction
Lines are the most widely used figures in technical analysis, this is due to the linear trends that some securities posses (daily log SP500 for example), support and resistances are also responsible for the uses of lines, basically linear support and resistances are made with the assumption that the line connecting two local maximas or minimas will help the user detect a new local maxima or minima when the price will cross the line.
Technical indicators attempting to output lines have always been a concern in technical analysis, the mostly know certainly being the linear regression, however any linear models would fit in this category. In general those indicators always reevaluate their outputs values (repainting), others non repainting indicators returning lines are sometimes to impractical to set-up. This is what has encouraged me to make a simpler indicator based on the framework used in the recursive bands indicator that i published.
The proposed indicator aim to be extremely flexible and easy to use while returning linear support and resistances, an option that allow readjustment is also introduced, thus allowing for a "smarter" indicator.
The Indicator
The indicator return two extremities, the upper one aim to detect resistance points while the lower one aim to detect support points. The length setting control the steepness of the line, with higher values of length involving a lower slope, this make the indicator less reactive and interact with the price less often.
The name "price-line" comes from the fact that the channel is dependent on its own interaction with the price, therefore a breakout methodology can also be used, where price is up-trending when crossing with the upper extremity and down trending when crossing with the lower one.
Readjusted Option
The line steepness can be readjusted based on the market volatility, it make more sense for the line to be more steep when the market is more volatile, thus making it converge faster toward the price, this of course is done at the cost of some linearity. This is achieved by checking the "readjustment" option. The effects can be shown on BTCUSD, below the indicator without the readjusted option :
when the "readjustment" option is checked we have the following results :
The volatile down movement on BTCUSd make the upper extremity converge faster toward the price, this option can be great for volatile markets.
Conclusion
The recursive bands indicator prove to be an excellent framework that allow for the creation of lots of indicators, the proposed indicator is extremely efficient and provide an easy solution for returning linear support and resistances without much drawbacks, the readjusted option allow the indicator to adapt to the market volatility at the cost of linearity.
The performance of the indicator is relative to the motion of the price, however the indicator show signs of returning accurate support and resistances points. I hope the indicator find its use in the community.
Thanks for reading !
Note
Respect the house rules, always request permission before publishing open source code. This is an original work, requesting permission is the least you can do.
T-Step LSMAIntroduction
The trend step indicator family has produced much interest in the community, those indicators showed in certain cases robustness and reactivity. Their ease of use/interpretation is also a major advantage. Although those indicators have a relatively good fit with the input price, they can still be improved by introducing least-squares fitting on their calculations. This is why i propose a new indicator (T-Step LSMA) which aim to gather all the components of the trend-step indicator family (including the auto-line family).
The indicator will use as a threshold the mean absolute error between the input and the output (T-Channel) scaled with the efficiency ratio (Efficient Trend Step) while using least squares in order to provide a better fit with the price (Auto-Filter).
The Indicator
The interpretation of the indicator is easy, the indicator estimate an up-trending market when in blue, down-trending when in orange, the signal only depend on the trend-step part ( b in the code).
length control the period of the efficiency ratio as well as any components in the lsma calculation. The efficiency ratio allow to provide adaptivity, therefore the threshold will be lower when market is trending and higher when market is ranging.
Sc control the amount of feedback of the indicator, a value of 1 will use only the closing price as input, a value of 0.5 will use 50% of the closing price/indicator output as input, this allow to get smoother results.
It is possible to get the non-smooth version of the indicator by checking "No Smoothing".
This allow the indicator to filter more information.
Least Squares Smoothing - Benefits
One could ask why introducing least squares smoothing, there are several reasons to this choice, we have seen that trend-step indicators are boxy, they filter most of the variational information in the price, introducing least squares smoothing allow to gain back some of this variational information while providing a better fit with the price, the indicator is more noisy but also more practical in certain situations.
For example the indicator in its boxy form can't really be useful as input for other indicators, which is not the case with this version.
Relative strength index of period 14 using the proposed indicator as input.
Down-Sides
The indicator is dependent on the time frame used, larger time frames resulting in an indicator overfitting, sticking with lower time frames might be ideal. The indicator behavior might also change depending on the market in which it is applied.
Setting Up Alerts For The Indicator
Alerts conditions are already set, in order to create an alert based on the indicator follow these steps :
Go to the alert section (the alarm clock) -> create new alert -> select T-Step LSMA in condition -> Below select Up or Dn (Up for a up-trending alert and Dn for a down-trending alert)
In option select "once per bar close", change the message if you want a personalized message.
Conclusion
I don't think i'll post other indicators related to the trend-step framework for the time to comes, nonetheless the ones posted proven to have interesting results as well as many upsides. Although i don't think they would generate positive long-terms returns they could still be of use when using smarter volatility metrics as threshold. The proposed indicator conserve more information than its relatives and might find some use as input for other indicators.
Recommended Use Of The Code
Although i don't put restrictions on the code usage, i still recommend creative and pertinent changes to be made, graphical changes or any minor changes are not necessary, remember that such practice is disrespectful toward the author, you don't want to load up the tradingview servers for nothing right ?
Support Me
Making indicators sure is hard, it takes time and it can be quite lonely to, so i would love talking with you guys while making them :) There isn't better support than the one provided by your friends so drop me a message.
Kaufman Adaptive Least Squares Moving AverageIntroduction
It is possible to use a wide variety of filters for the estimation of a least squares moving average, one of the them being the Kaufman adaptive moving average (KAMA) which adapt to the market trend strength, by using KAMA in an lsma we therefore allow for an adaptive low lag filter which might provide a smarter way to remove noise while preserving reactivity.
The Indicator
The lsma aim to minimize the sum of the squared residuals, paired with KAMA we obtain a great adaptive solution for smoothing while conserving reactivity. Length control the period of the efficiency ratio used in KAMA, higher values of length allow for overall smoother results. The pre-filtering option allow for even smoother results by using KAMA as input instead of the raw price.
The proposed indicator without pre-filtering in green, a simple moving average in orange, and a lsma with all of them length = 200. The proposed filter allow for fast and precise crosses with the moving average while eliminating major whipsaws.
Same setup with the pre-filtering option, the result are overall smoother.
Conclusion
The provided code allow for the implementation of any filter instead of KAMA, try using your own filters. Thanks for reading :)
Kaufman Adaptive Moving AverageKaufman Adaptive Moving Average script.
This indicator was originally developed by Perry J. Kaufman (`Smarter Trading: Improving Performance in Changing Markets`, 1995).
Candle CountingI was talking with one of the biggest hedge fund traders in the world the other day. He goes to me, "Brian, why don't you come and work for us, since you're a better trader than anyone at our firm?" Well I said I would, but there's no one there with an iq as high as mine, so I'd have no one to talk to when I'm eatin my sammiches. Man I'm a savant mate, I'm a f***ing CANDLE COUNTER. I tell people all the time, know your market. And that's your tip of the day really, I mean nobody out there knows Yen better than me. I mean the other day I was 70,000 in the hole, but I didn't get out, I was balls deep making a cheese sammich on the George Forman. Now I mean you can try and do what I'm doing, but understand something, I am 100% smarter than you, and your machines. In the industry, they call me Mr. Yen, I touch the sun, and my d*ck, regularly.
XAUUSD SMC Strategy (FVG + BoS)This advanced TradingView strategy is built for serious traders who follow Smart Money Concepts (SMC), with a special focus on Fair Value Gaps (FVG) and Break of Structure (BoS). The script automates trade entries and visual signals based on clean price action, while also allowing for performance backtesting through the built-in Strategy Tester.
The purpose of this script is to combine high-probability SMC signals with a clear and flexible backtest engine. Traders can visually confirm institutional moves (like imbalances and structure breaks) while simultaneously analyzing strategy performance, risk-reward, and execution logic — all from one chart.
⚙️ Key Features
FVG Detection: Automatically identifies bullish and bearish fair value gaps, highlighting imbalance zones between institutional buying and selling activity.
Break of Structure (BoS): Clearly shows bullish and bearish structure breaks, helping traders confirm directional bias and spot trend shifts with clarity.
Trade Execution Logic: Designed with actual strategy.entry() and strategy.exit() functions, this script simulates trades using risk-controlled logic with stop loss and take profit targeting.
Spaced Signal Visualization: Avoids chart clutter by spacing FVG and BoS signals, making the visual output clean and readable — even on fast-moving charts like XAUUSD.
Risk-Reward Customization: Easily set your own risk:reward ratio and stop-loss buffer, ensuring each trade is simulated according to your personal strategy or trading plan.
Cool-Down System: Add a delay between trades using the “Bars Between Trades” setting to prevent overtrading during volatile periods.
Live and Historical Insights: Signals appear in real-time, while also being plotted historically — making it easy to scroll back and study how the market behaved under this logic.
Fully Editable Parameters: Customize FVG size, structure lookback, spacing intervals, and more to fit your unique interpretation of SMC methodology.
🧠 How It Works
This strategy combines two key concepts:
FVG (Fair Value Gaps): Price zones where the market moved too quickly and left an imbalance between buyers and sellers. These gaps often act as magnets for price or areas of reversal.
BoS (Break of Structure): Points where the price breaks through a significant high or low, indicating a potential shift in market direction.
When both FVG and BoS align under certain conditions — and the cooldown requirement is satisfied — the strategy places a trade. A take profit and stop loss are automatically applied based on your inputs.
📈 Practical Use Cases
Trend Confirmation: Use BoS signals to validate trend continuation trades, especially when FVG confirms the imbalance.
Reversal Zones: Spot potential turning points when price fills an FVG and breaks previous structure in the opposite direction.
Backtest SMC Logic: Validate your theory by testing this strategy over historical XAUUSD data using real stop loss / take profit logic.
Refine Entry Timing: Study how structure breaks and FVGs align in different timeframes to improve entry precision.
💡 Best For
Traders learning or mastering Smart Money Concepts
Price action purists who avoid indicators
XAUUSD scalpers, day traders, or swing traders
Strategy developers who want visual + backtested confirmation
📌 Notes
The default strategy places trades every 10 candles to ensure the engine runs — replace this with your refined FVG + BoS logic as needed.
Works best on Gold (XAUUSD) 4H, 1H, or 15m timeframes depending on volatility and structure spacing.
🔒 Disclaimer
This strategy is for educational purposes only. It does not constitute financial advice. Always test and validate any trading logic before applying it to a live market. Trading carries risk — use proper risk management.
Kimchi Premium Dashboard (Final)📜 Kimchi Premium Dashboard (Live & Daily Log)
🚀 Summary
This indicator is an all-in-one dashboard that tracks the real-time price difference of USDT (Tether) between a Korean exchange (Upbit) and a global exchange (Coinbase). This difference is commonly known as the "Kimchi Premium" (Kimp) or "Reverse Premium."
Going beyond a simple premium display, this tool is designed to assist with arbitrage and swing trading strategies by providing intuitive visualizations, a smart multi-tier alert system, and a daily data logging feature.
✨ Key Features
Real-time Premium Calculation: Accurately calculates the premium in percentage (%) based on the USDT prices from Upbit and Coinbase, and the live USD/KRW exchange rate.
Intuitive Zone Visualization: Instantly identify whether the premium is in a Buy, Sell, or Neutral zone through dynamic background coloring.
Smart Alert System: Delivers systematic alerts for key events like the initial -2.0% entry, a critical -2.5% breach, and subsequent new lows, all without unnecessary spam. (Can be toggled ON/OFF in settings).
Hybrid Dashboard: Features both a real-time status label and a daily log that records the day's significant low points.
📊 Visual Components Explained
Lines
🔵 Blue Line (Premium Line): This is the core real-time premium value (%). The position of this line is most important.
🟠 Orange Line (SMA Line): This is the moving average of the premium. It helps identify the overall trend beyond short-term volatility.
Zones
🟩 Green Zone (Buy Zone): This area, typically below -2.0%, indicates a "Reverse Premium" where the Korean price is significantly lower than the global price. It represents a potential buying opportunity for arbitrage.
🟥 Red Zone (Kimp Zone): This area, typically above 0%, indicates a "Kimchi Premium" where the Korean price is higher. This represents a potential selling or profit-taking opportunity.
Dashboard
Live Status Label: Located on the right, this label displays the precise premium value, the current zone status (Buy/Sell/Neutral), and the SMA value in real-time.
Today's Lows Log: Located on the left, this table records the time and level of significant lows (below -2.5%) broken during the day. It resets automatically at midnight (UTC).
🔔 Alerts & How to Use
This indicator provides a systematic 3-tier alert system designed for arbitrage strategies. (Must be enabled via "Enable Real-time Alerts?" in settings).
✅ Good Opportunity (-2.0%): A one-time alert triggers upon the first entry into the initial buying zone.
🚨 BIG Opportunity (-2.5%): A distinct, high-priority alert triggers when this more critical level is breached.
📞 Granular Tracking (Below -2.5%): Receive alerts for each new low in -0.1% increments for precise tracking during the best opportunities.
A recommended hybrid strategy is to keep alerts off for daily review using the "Today's Lows Log," and turn them on only during critical periods for real-time action.
Disclaimer: The information provided by this indicator is for reference purposes only and does not constitute financial advice. All investment decisions and risks are the sole responsibility of the user.
Time Range Marker By BCB ElevateThe Time Range Marker is a simple yet powerful visual tool for traders who want to focus on specific time intervals within the trading day. This indicator highlights a custom time range on your chart using a background color, helping you visually isolate key trading sessions or event windows such as:
Market open/close hours
News release periods
High-volatility trading zones
Personal strategy testing windows
⚙️ Key Features:
Customizable start and end time (hour & minute)
Works across all intraday timeframes
Adjustable highlight color to match your chart theme
Built using Pine Script v5 for speed and flexibility
🔧 Settings:
Start Hour / Minute – Set the beginning of the time range (in 24-hour format)
End Hour / Minute – Define when the range ends
Highlight Color – Choose the background color for better visibility
🕒 Timezone Note:
The indicator uses UTC time by default to ensure accuracy across markets. If your broker uses a different timezone (like EST, IST, etc.), the script can be adjusted to reflect your local market hours.
✅ How to Use the Time Range Marker Indicator
This indicator is used to visually highlight a specific time window each trading day, such as:
Market open or close sessions (e.g., NYSE, London, Tokyo)
High-impact news release periods
Custom time slots for strategy testing or scalping
🛠️ Installation Steps
Open TradingView and go to any chart.
Click on Pine Editor at the bottom of the screen.
Copy and paste the full Pine Script (shared above) into the editor.
Click the “Add to Chart” ▶️ button.
The indicator will appear on the chart with a highlighted background during the time range you set.
⚙️ How to Customize the Time Range
After adding the indicator:
Click the gear icon ⚙️ next to the indicator’s name on the chart.
Adjust the following settings:
Start Hour / Start Minute: The beginning of your time range (in 24-hour format).
End Hour / End Minute: When the highlight should stop.
Highlight Color: Pick a color and transparency for visual clarity.
Click OK to apply changes.
🕒 Timezone Consideration
By default, the indicator uses UTC (Coordinated Universal Time).
To match your broker’s timezone (e.g., EST, IST, etc.), you'll need to adjust the script by changing:
sessStart = timestamp("Etc/UTC", ...)
sessEnd = timestamp("Etc/UTC", ...)
to your correct timezone, like "Asia/Kolkata" for IST or "America/New_York" for EST.
Let me know your broker or local timezone, and I’ll update it for you.
📈 Tips for Traders
Combine this with volume, price action, or breakout indicators to focus your strategy on high-probability time windows.
Use multiple versions of this script if you want to highlight more than one time range in a day.
Sessions with timeframe filter🕒 Smart Timeframe Filtering
This session indicator includes an automatic filter that disables all session boxes when the chart timeframe is greater than the user-defined input. This helps keep higher-timeframe charts clean and focused by hiding intraday sessions when they’re no longer relevant — especially helpful for multi-timeframe traders.
🔍 Features:
📦 Draws up to 3 customizable session boxes with dynamic high/low tracking.
⏱️ Auto-disables on higher timeframes (Smart Timeframe Filter).
🌍 Fully customizable session times, box colors, and time zone (GMT-based).
⚡ Optimized for performance using lightweight, non-overlapping box logic.
👨🍳 UI is organized like a chef’s kitchen: clean, intuitive, and easy to navigate. Settings are grouped and filtered to avoid clutter.
✅ Best Use:
This indicator is most useful for intraday traders on 1m–15m charts.
It’s designed to keep your workspace clean on 30m+ charts or whatever threshold you define.
Choch Pattern Levels [BigBeluga]🔵 OVERVIEW
The Choch Pattern Levels indicator automatically detects Change of Character (CHoCH) shifts in market structure — crucial moments that often signal early trend reversals or major directional transitions. It plots the structural break level, visualizes the pattern zone with triangle overlays, and tracks delta volume to help traders assess the strength behind each move.
🔵 CONCEPTS
CHoCH Pattern: A bullish CHoCH forms when price breaks a previous swing high after a swing low, while a bearish CHoCH appears when price breaks a swing low after a prior swing high.
Break Level Mapping: The indicator identifies the highest or lowest point between the pivot and the breakout, marking it with a clean horizontal level where price often reacts.
Delta Volume Tracking: Net bullish or bearish volume is accumulated between the pivot and the breakout, revealing the momentum and conviction behind each CHoCH.
Chart Clean-Up: If price later closes through the CHoCH level, the zone is automatically removed to maintain clarity and focus on active setups only.
🔵 FEATURES
Automatic CHoCH pattern detection using pivot-based logic.
Triangle shapes show structure break: pivot → breakout → internal high/low.
Horizontal level marks the structural zone with a ◯ symbol.
Optional delta volume label with directional sign (+/−).
Green visuals for bullish CHoCHs, red for bearish.
Fully auto-cleaning invalidated levels to reduce clutter.
Clean organization of all lines, labels, and overlays.
User-defined Length input to adjust pivot sensitivity.
🔵 HOW TO USE
Use CHoCH levels as early trend reversal zones or confirmation signals.
Treat bullish CHoCHs as support zones, bearish CHoCHs as resistance.
Look for high delta volume to validate the strength behind each CHoCH.
Combine with other BigBeluga tools like supply/demand, FVGs, or liquidity maps for confluence.
Adjust pivot Length based on your strategy — shorter for intraday, longer for swing trading.
🔵 CONCLUSION
Choch Pattern Levels highlights key structural breaks that can mark the start of new trends. By combining precise break detection with volume analytics and automatic cleanup, it provides actionable insights into the true intent behind price moves — giving traders a clean edge in spotting early reversals and key reaction zones.
Advanced DMA Pattern Detection SystemAdvanced DMA Pattern Detection System with Smart Intelligence
Professional-grade moving average indicator that combines traditional DMA analysis with advanced pattern recognition and probabilistic forecasting.
Core Features:
6 Key DMAs (5, 10, 20, 50, 100, 200) with descriptive labels showing trading purpose
Advanced Pattern Recognition - Detects Institutional Accumulation, Distribution Phases, Bull/Bear Transitions, and Choppy Markets
Probability Engine - Assigns confidence scores (0-100%) with Low/Medium/High classifications
Historical Validation - Tracks success rate of last 20 pattern signals for real performance data
Smart Alert System - Only triggers on significant pattern changes (20%+ probability shifts)
Dual Display System:
Movable Information Table - Shows current pattern, probability, confidence level, success rate, and recommended action
Chart Alerts & Background Colors - Visual confirmation of high-confidence setups (80%+ patterns)
Traditional DMA Labels - Clear identification of each average's trading significance
Complete Customization:
Master on/off controls for entire system
Individual toggles for all components (DMAs, table, alerts, colors)
Adjustable alert sensitivity (Conservative/Medium/Aggressive)
6 table positions to fit any chart layout
Perfect For: Swing traders, position traders, and anyone wanting systematic trend analysis with quantified probability scores rather than subjective interpretation.
Bottom Line: Transforms basic moving averages into an intelligent trading system that tells you exactly what the market structure means and what to do about it.
Common DMAs with LabelsHere's a short description for publishing:
Common Daily Moving Averages (DMA) Indicator with Smart Labels
Displays the most widely-used moving averages that professional traders watch: 5, 10, 20, 50, 100, and 200 DMAs with clear color-coding and descriptive labels.
Key Features:
Smart Labels - Each DMA shows its trading purpose (Day Trading, Swing Trading, Bull/Bear Line, etc.)
Customizable Display - Toggle any DMA on/off individually
Golden/Death Cross Alerts - Optional 50/200 crossover signals
Live Status Table - Shows current DMA values vs price with up/down arrows
Professional Styling - Color-coded lines with appropriate thickness (200 DMA emphasized)
Perfect for:
Multi-timeframe trend analysis
Support/resistance identification
Bull/bear market confirmation
Entry/exit timing
Usage: Add to chart, customize which DMAs to display in settings. Labels appear on the right showing each average's trading significance. Enable the status table for quick price-vs-DMA reference.
Ideal for both beginners learning key moving averages and experienced traders wanting a clean, informative DMA setup.
ICT Concepts Toolkit [TWS]
ICT Concepts Toolkit – by Trade With Stevie
Unlock the full power of Inner Circle Trader (ICT) concepts with this all-in-one indicator built for serious traders.
The ICT Concepts Toolkit combines the most powerful price action tools into one clean, efficient, and highly customizable interface — perfect for mastering market structure and timing precision entries.
✅ Features Included:
🟩 Order Blocks – Automatically detect key institutional levels for potential reversals and entries.
📉 Fair Value Gaps (FVGs) – Visualize imbalances in price action to spot high-probability targets and mitigation zones.
📊 Support & Resistance – Dynamically plotted levels to track market structure and trend shifts in real-time.
📅 Previous Daily Highs/Lows – Key liquidity zones marked for precision scalping and swing setups.
🕒 Session Zones – Clearly defined Asian, London, and New York sessions with customizable times and colors.
📌 Extension Lines – Extends each session’s high and low to the current candle for ongoing bias and liquidity mapping.
🚦ICT Morning Signal – Your personal directional bias assistant: smart signals showing when to Buy or Sell based on ICT’s powerful Morning Model logic.
Whether you're trading Forex, Futures, or Crypto — this toolkit gives you a cleaner chart, clearer bias, and more confidence in your setups.
💡 Created by Trade With Stevie — follow for more smart tools and signal insights.
KusKus Starlight Strategy📌 Gabriel's KusKus Starlight Strategy – Adaptive Volume-Based Momentum System
Description:
Gabriel’s KusKus Starlight Strategy is a high-precision, volume-driven trading system designed for short- to medium-term intraday setups. By combining Cumulative Volume Delta (CVD) with Fisher Transform logic, Z-Score anomaly detection, and adaptive moving averages (like Jurik MA and Super Smoother), the strategy seeks to capture early trend shifts, continuation breakouts, and statistically favorable reversals.
🧠 How It Works
CVD-Based Fisher Oscillator
Transforms volume delta imbalances into clean trend signals using a Fisher Transform with dual-stage smoothing.
Jurik Signal Line & Super Smoother
Provides confirmation filters that reduce whipsaw trades by identifying prevailing trend direction.
Z-Score & Velocity Boosters
Highlight when momentum is accelerating with statistical outliers, improving early entry timing.
ATR-Driven Trade Management
All entries use dynamically calculated Stop Loss and Take Profit levels based on ATR, with optional hour-specific overrides.
🎯 Strategy Entry Conditions
🔼 Long Entry:
A long trade is entered when all the following are true:
Fisher (smoothedFish) crosses above 0
Z-Score (ZKusKus) is rising or Z-Score velocity is rising
Fisher is above the Jurik MA (signal)
Price (src) is above the Super Smoother MA (ma)
Time filter is allowed (optional setting)
🔽 Short Entry:
A short trade is entered when all the following are true:
Fisher (smoothedFish) crosses below 0
Z-Score (ZKusKus) is falling or Z-Score velocity is rising
Fisher is still above the Jurik MA (signal) (anticipating exhaustion)
Price (src) is below the Super Smoother MA (ma)
Time filter is allowed (optional setting)
📤 Strategy Exit Conditions
Take Profit (TP) and Stop Loss (SL) levels are based on the ATR multiplied by dynamic multipliers.
Both TP and SL can be adjusted per hour using tp_hour_* and risk_hour_* settings to reflect optimal market behavior during different sessions.
⏰ Smart Hour-Based Filters
Use include Hours to restrict trading to 3 specific hours (e.g., 7, 8, 9). Each hour has its own:
Risk % Allocation
TP Multiplier
This adds fine-tuned control over position sizing and target reachability.
📈 Recommended Timeframes:
Optimized for 30-minute ~ 1 Hour charts, but adaptable to 1m–15m with parameter tuning.
Use hourly filters to target only statistically profitable hours, London ~ New York Afterhours.
📌 Ideal Use Case:
For traders looking to fade weak volume reversals or ride volume-supported breakouts with smart, auto-adjusting position sizing—this strategy offers a refined and flexible framework grounded in real-time order flow behavior.
Impulse Alert - Supply (Sell) [Fixed]🟥 Supply Zone (Sell) – Institutional Order Block Detector
This custom indicator automatically detects valid Supply Zones (Sell Zones) based on Smart Money Concepts and institutional trading behavior.
🔍 How It Works:
Identifies strong bearish impulsive moves after price forms a potential Order Block
Valid supply zones are plotted after:
A valid rally–base–drop or drop–base–drop structure
A shift in structure or clear imbalance is detected
The zone is created from the last bullish candle before a strong bearish engulfing move
Zones remain on chart until price revisits and reacts
📊 Use Case:
Ideal for traders using Smart Money Concepts (SMC), Supply & Demand, or ICT-inspired strategies
Perfect for scalping, day trading, or swing setups
Designed for confluence with HTF bias and LTF execution
⚙️ Features:
Supply Zone auto-plotting
Customizable zone color and opacity
Alerts when price returns to the zone (retest entry opportunity)
🧠 Tip for Best Use:
Use in confluence with:
HTF Supply zones (manual or other indicator)
Market Structure breaks
Fair Value Gaps or Imbalance zones
Strong impulsive moves from HTF to LTF
🔁 Future Additions (Coming Soon):
Demand Zone detection
Zone strength rating system
Refined zone filters (volume, candle size, etc.)
Alerts for mitigation or invalidation
📌 Created by: Rohit Jadhav | Real-time market trader | YT/Insta - @GrowthByTrading
💬 Feedback? Drop a comment or connect via profile for updates and tutorials!