Medium Term Weighted Stochastic (STPMT) by DGTLa Stochastique Pondérée Moyen Terme (STPMT) , or Mᴇᴅɪᴜᴍ Tᴇʀᴍ Wᴇɪɢʜᴛᴇᴅ Sᴛᴏᴄʜᴀꜱᴛɪᴄꜱ created by Eric Lefort in 1999, a French trader and author of trading books
█ The STPMT indicator is a tool which concerns itself with both the direction and the timing of the market. The STPMT indicator helps the trader with:
The general trend by observing the level around which the indicator oscillates
The changes of direction in the market
The timing to open or close a position by observing the oscillations and by observing the relative position of the STPMT versus its moving average
STPMT Calculation
stpmt = (4,1 * stoch(5, 3) + 2,5 * stoch(14, 3) + stoch(45, 14) + 4 * stoch(75, 20)) / 11.6
Where the first argument of the stoch function representation above is period (length) of K and second argument smoothing period of K. The result series is then plotted as red line and its moving average as blue line. By default disabled gray lines are the components of the STPMT
The oscillations of the STPMT around its moving average define the timing to open a position as crossing of STMP line and moving average line in case when both trends have same direction. The moving average determines the direction.
Long examples
█ Tʜᴇ CYCLE Iɴᴅɪᴄᴀᴛᴏʀ is derived from the STPMT. It is
cycle = stpmt – stpmt moving average
It is indicates more clearly all buy and sell opportunities. On the other hand it does not give any information on market direction. The Cycle indicator is a great help in timing as it allows the trader to more easily see the median length of an oscillation around the average point. In this way the traders can simply use the time axis to identify both a favorable price and a favorable moment. The Cycle Indicator is presented as histogram
The Lefort indicators are not a trading strategy. They are tools for different purposes which can be combined and which can serve for trading all instruments (stocks, market indices, forex, commodities…) in a variety of time frames. Hence they can be used for both day trading and swing trading.
👉 For whom that would like simple version of the Cycle indicator on top of the main price chart with signals as presented below.
Please note that in the following code STMP moving average direction is not considered and will plot signals regardless of the direction of STMP moving average. It is not a non-repainting version too.
here is pine code for the overlay version
// © dgtrd
//@version=4
study("Medium Term Weighted Stochastic (STPMT) by DGT", "STPMT ʙʏ DGT ☼☾", true, format.price, 2, resolution="")
i_maLen = input(9 , "Stoch MA Length", minval=1)
i_periodK1 = input(5 , "K1" , minval=1)
i_smoothK1 = input(3 , "Smooth K1", minval=1)
i_weightK1 = input(4.1 , "Weight K1", minval=1, step=.1)
i_periodK2 = input(14 , "K2" , minval=1)
i_smoothK2 = input(3 , "Smooth K2", minval=1)
i_weightK2 = input(2.5 , "Weight K2", minval=1, step=.1)
i_periodK3 = input(45 , "K3" , minval=1)
i_smoothK3 = input(14 , "Smooth K3", minval=1)
i_weightK3 = input(1. , "Weight K3", minval=1, step=.1)
i_periodK4 = input(75 , "K4" , minval=1)
i_smoothK4 = input(20 , "Smooth K4", minval=1)
i_weightK4 = input(4. , "Weight K4", minval=1, step=.1)
i_data = input(false, "Components of the STPMT")
//------------------------------------------------------------------------------
// stochastic function
f_stoch(_periodK, _smoothK) => sma(stoch(close, high, low, _periodK), _smoothK)
//------------------------------------------------------------------------------
// calculations
// La Stochastique Pondérée Moyen Terme (STPMT) or Medium Term Weighted Stochastics calculation
stpmt = (i_weightK1 * f_stoch(i_periodK1, i_smoothK1) + i_weightK2 * f_stoch(i_periodK2, i_smoothK2) + i_weightK3 * f_stoch(i_periodK3, i_smoothK3) + i_weightK4 * f_stoch(i_periodK4, i_smoothK4)) / (i_weightK1 + i_weightK2 + i_weightK3 + i_weightK4)
stpmt_ma = sma(stpmt, i_maLen) // STPMT Moving Average
cycle = stpmt - stpmt_ma // Cycle Indicator
//------------------------------------------------------------------------------
// plotting
plotarrow(change(sign(cycle)), "STPMT Signals", color.green, color.red, 0, maxheight=41)
alertcondition(cross(cycle, 0), title="Trading Opportunity", message="STPMT Cycle : Probable Trade Opportunity\n{{exchange}}:{{ticker}}->\nPrice = {{close}},\nTime = {{time}}")
Tìm kiếm tập lệnh với "swing trading"
Swing Reversal IndicatorSwing Reversal Indicator was meant to help identify pivot points on the chart which indicate momentum to buy and sell. The indicator uses 3 main questions to help plot the points:
Criteria
Did price take out yesterday's high or low?
Is today's range bigger than yesterday? (Indicates activity in price)
Is the close in the upper/lower portion of the candle? Thus, indicating momentum in that direction
This indicator was built to help me find pivot points for directional options trading however can be used for equities and forex swing trading and other strategies. Used in conjunction with a BB extreme can provide good setups.
Alerts are available for both the long and the short positions and the indicator will repaint as price moves.
The character Plotted can be changed in the settings
The size of the candle area can be changed as well if you want to tighten/loosen the trigger points based on the third question above.
Parabolic SAR Swing strategy GBP JPY Daily timeframeToday I bring you a new strategy thats made of parabolic sar. It has optmized values for GBPJPY Daily timeframe chart.
It also has a time period selection, in order to see how it behave between selected years.
The strategy behind it is simple :
We have an uptrend , (the psar is below our candles) we go long. We exit when our candle crosses the psar value.
The same applies for downtrend(the psar is above our candles), where we go short. We exit when our candle cross the psar value.
Among the basic indicators, it looks like PSAR is one of the best canditates for swing trading.
If you have any questions, please let me know.
Ultimate VWAP Bands- Ultimate VWAP Bands is a script that helps to decide and further clarify areas of oversold and overbought conditions.
- For example, when the price is in the lowest band it is extremely oversold relative to the VWAP . Hence it should be considered a good place to buy with a high risk to reward payoff.
- Each band is set at a fixed offset away from the VWAP . The "VWAP Band Multiplier" adjusts this and is a key part of the script. This allows the indicator to be adjusted based on the assets volatility . For example, with Crypto. A multiplier of 1 would be strongly advised. Whilst a multiplier of 0.1-0.25 would be useful for currency pairs.
- This indicator can be used for all manners of trading. However, it is most effective when used for scalping and swing trading.
[blackcat] L2 Swing Oscillator Swing MeterLevel: 2
Background
Swing trading is a type of trading aimed at making short to medium term profits from a trading pair over a period of a few days to several weeks. Swing traders mainly use technical analysis to look for trading opportunities. In addition to analyzing price trends and patterns, these traders can also use fundamental analysis.
Function
L2 Swing Oscillator Swing Meter is an oscillator based on breakouts. Another important feature of it is the swing meter, which confirms the top or bottom's confidence level with different color candles. The higher of the candles stack up, the higher confidence level is indicated.
Key Signal
absolutebot ---> absolute bottom with very high confidence level
ltbot ---> long term bottom with high confidence level
mtbot ---> middle term bottom with moderate confidence level
stbot ---> short term bottom with low confidence level
absolutetop ---> absolute top with very high confidence level
lttop ---> long term top with high confidence level
mttop ---> middle term top with moderate confidence level
sttop ---> short term top with low confidence level
fastline ---> oscillator fast line
slowline ---> oscillator slow line
Pros and Cons
Pros:
1. reconfigurable swing oscillator based on breakouts
2. swing meter can confirm/validate the bottom and top signal
Cons:
1. not appliable with trading pairs without volume information
2. small time frame may not trigger swing meter function
Remarks
This is a simple but very comprehensive technical indicator
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
L1 Mid-Term Swing Oscillator v1Level: 1
Background
Oscillators are widely used set of technical analysis indicators. They are popular primarily for their ability to alert of a possible trend change before that change manifests itself in price and volume . They should work best in times of sideways markets.
Function
L1 Short-Mid-Long-Term Swing Oscillator puts three terms of oscillators to cover short-term, middle-term and long-term oscillators at the same time. By resonating all these three oscillators, short-term scalping signal and middle term swing signal are disclosed. You can see both short and mid term signal under one indicator which give you more confidence to follow the trend.
Key Signal
I didn't handle the key signals well. I piled up all the useful signals I found, and it is really difficult to classify them one by one. I feel tired when I think about this problem. Therefore, the code of the overall signal is rather confusing, sorry.
Pros and Cons
Pros:
1. Three oscillators are used to cover short, mid, long term oscillations.
2. Short-Mid term resonance can be observed to have higher confidence level.
3. Use single indicator for scalping and swing trading is possible.
Cons:
1. No deep dive into very accurate long and short entries.
2. A trade off between sensitivity and stability may be needed by traders' subjective judge.
Remarks
I enjoyed the fun of put three different oscillator together to cover short, mid, long terms. But how to use them perfectly is really more brainstorming.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Why is it ok to backtest on TradingView from now on!TradingView backtester has bad reputation. For a good reason - it was producing wrong results, and it was clear at first sight how bad they were.
But this has changed. Along with many other improvements in its PineScript coding capabilities, TradingView fixed important bug, which was the main reason for miscalculations. TradingView didn't really speak out about this fix, so let me try :)
Have a look at this short code of a swing trading strategy (PLEASE DON'T FOCUS ON BACKTEST RESULTS ATTACHED HERE - THEY DO NOT MATTER). Sometimes entry condition happens together with closing condition for the already ongoing trade. Example: the condition to close Long entry is the same as a condition to enter Short. And when these two aligned, not only a Long was closed and Short was entered (as intended), but also a second Short was entered, too!!! What's even worse, that second short was not controlled with closing conditions inside strategy.exit() function and it very often lead to losses exceeding whatever was declared in "loss=" parameter. This could not have worked well...
But HOORAY!!! - it has been fixed and won't happen anymore. So together with other improvements - TradingView's backtester and PineScript is now ok to work with on standard candlesticks :)
Yep, no need to code strategies and backtest them on other platforms anymore.
----------------
Having said the above, there are still some pitfalls remaining, which you need to be aware of and avoid:
Don't backtest on HeikenAshi, Renko, Kagi candlesticks. They were not invented with backtesting in mind. There are still using wrong price levels for entries and therefore producing always too good backtesting results. Only standard candlesticks are reliable to backtest on.
Don't use Trailing Stop in your code. TradingView operates only on closed candlesticks, not on tick data and because of that, backtester will always assume price has first reached its favourable extreme (so 'high' when you are in Long trade and 'low' when you are in Short trade) before it starts to pull back. Which is rarely the truth in reality. Therefore strategies using Trailing Stop are also producing too good backtesting results. It is especially well visible on higher timeframe strategies - for some reason your strategy manages to make gains on those huge, fat candlesticks :) But that's not reality.
"when=" inside strategy.exit() does not work as you would intuitively expect. If you want to have logical condition to close your trade (for example - crossover(rsi(close,14),20)) you need to place it inside strategy.close() function. And leave StopLoss + TakeProfit conditions inside strategy.exit() function. Just as in attached code.
If you're working with pyramiding, add "process_orders_on_close=ANY" to your strategy() script header. Default setting ("=FIFO") will first close the trade, which was opened first, not the one which was hit by Stop-Loss condidtion.
----------------
That's it, I guess :) If you are noticing other issues with backtester and would like to share, let everyone know in comments. If the issue is indeed a bug, there is a chance TradingView dev team will hear your voice and take it into account when working on other improvements. Just like they heard about the bug I described above.
P.S. I know for a fact that more improvements in the backtesting area are coming. Some will change the game even for non-coding traders. If you want to be notified quickly and with my comment - gimme "follow".
Complete Trend Trading System [Fhenry0331]This system was designed for the beginner trader to make money swing trading. Your losses will be small and your gains will be mostly large. You will show consistent profit. Period.
The system works on any security you like to trade. I used GBPUSD as an example because of the up swing and down swing it had recently. I tried to put as much information of how the system works in the chart. Hope it helps and is not to cluttered.
I will reiterate how the system works here: Everything is based off of closed price.
Legend
Uptrend: Buy
Green bar: initial start of an uptrend or uptrend continuing. Place order above that bar. If the initial bar does not stray too far from the MVWAP , I will place orders above subsequent bars if no filled occurred.
If initial start of the trend is missed, I will wait for the pullback. A pullback is a close below the MVWAP, and a close above the EMA (Low), RSI is above 50. Orders are placed above the pullback bars with plotted char "B" and also plotted green triangle up. Again orders are placed above those bars. the bars do not notate automatic buys. Don't chase anything. You will miss the initial bar on something because of news or earnings and it rocket up. Just wait, it will pullback. If it doesn't, to hell with it, on to the next.
Take profits: In the indicator you will see "T." That notates to take some profits. It is a suggestion. I was always told to take profits into spikes, as well as you can never lose money if you take profits. Up to you if you want to scale out and take the suggested profits or not.
Exit Completely: In an uptrend, close your entire position on bars colored yellow or red. (Again, closed bars)
In uptrend bars colored orange and black, do nothing, they are just pullback bars. Look for the buy pullback signal, then follow pullback buy rules for an uptrend.
Downtrend: Short
Red bar: initial start of a downtrend or downtrend continuing. Place order below the bar. If the initial bar does not stray too far fro the MVWAP, place orders below subsequent bars.
If initial start on the downtrend is missed, wait for the pullback. A pullback is a close above the MVWAP, and close below the EMA(Low). RSI is below 50. Orders are placed below the pullback bars with the plotted char "S" and also plotted red triangle. Again those bars are not automatic shorts, orders are placed below them. Don't chase anything. Wait for price to come into your plan. The idea FOMO is the stupidest thing ever, how can you miss out on something when it is always there. The market is always there and something will come into your zone. Chill.
"T": same as in uptrend, suggestion to take some profits.
Exit Completely: In a downtrend, close your entire position on bars colored orange or green.
In downtrend you will see bars colored yellow and black, do nothing, they are pullback bars. Look for the pullback short signal and follow pullback short rules.
If you have any questions get at me. Take a look at it on what you trade. Flip it through different securities.
Best of luck in all you do.
P.S. You should not take a trade right before earnings. You should also exit a trade right before earnings.
Binque's Multi-Moving Average Binque's Multi-Moving Average - One indicator with four simple moving average and four exponential moving averages, plus as a bonus a Day High moving average and a Day Low Moving Average.
Simple Moving Average or MA(14), MA(50), MA(100) and MA(200) all in one indicator
Exponential Moving Average or EMA(8), EMA(14), EMA(20) and EMA(33) all in one indicator
Day High Moving Average - Tracks the Daily High versus most moving averages track the daily close.
Day Low Moving Average - Tracks the Daily Low versus most moving average track the daily close.
To Disable moving averages, Set the color to the chart background and then set the length to 1 and uncheck.
I Use the Daily High Moving Average to track upward resistance in a stock movement for Swing Trading.
I Use the Daily Low Moving Average to track my trailing stop in a stock movement for Swing Trading.
Big Snapper Alerts R2.0 by JustUncleLThis is a diversified Binary Option or Scalping Alert indicator originally designed for lower Time Frame Trend or Swing trading. Although you will find it a useful tool for higher time frames as well.
The Alerts are generated by the changing direction of the ColouredMA (HullMA by default), you then have the choice of selecting the Directional filtering on these signals or a Bollinger swing reversal filter.
The filters include:
Type 1 - The three MAs (EMAs 21,55,89 by default) in various combinations or by themselves. When only one directional MA selected then direction filter is given by ColouredMA above(up)/below(down) selected MA. If more than one MA selected the direction is given by MAs being in correct order for trend direction.
Type 2 - The SuperTrend direction is used to filter ColouredMA signals.
Type 3 - Bollinger Band Outside In is used to filter ColouredMA for swing reversals.
Type 4 - No directional filtering, all signals from the ColouredMA are shown.
Notes:
Each Type can be combined with another type to form more complex filtration.
Alerts can also be disabled completely if you just want one indicator with one colouredMA and/or 3xMAs and/or Bollinger Bands and/or SuperTrend painted on the chart.
Warning:
Be aware that combining Bollinger OutsideIn swing filter and a directional filter can be counter productive as they are opposites. So careful consideration is needed when combining Bollinger OutsideIn with any of the directional filters.
Hints:
For Binary Options try ColouredMA = HullMA(13) or HullMA(8) with Type 2 or 3 Filter.
When using Trend filters SuperTrend and/or 3xMA Trend, you will find if price reverses and breaks back through the Big Fat Signal line, then this can be a good reversal trade.
Some explanation about the what Hull Moving average and ideas of how the generated in Big Snapper can be used:
tradingsim.com
forextradingstrategies4u.com
Inspiration from @vdubus
Big Snapper's Bollinger OutsideIn Swing filter in Action:
Colored Volume Bars [LazyBear]Edgar Kraut proposed this simple colored volume bars strategy for swing trading.
This is how the colors are determined:
- If today’s closing price and volume are greater than 'n' days ago, color today’s volume bar green.
- If today’s closing price is greater than 'n' days ago but volume is not, color today’s volume bar blue.
- Similarly, if today’s closing price and volume is less than 'n' days ago, color today’s volume bar orange.
- If today’s closing price is less than 'n' days ago but volume is not, color today’s volume bar red.
Buy the green or blue volume bars, use a 1% trailing stop, and stand aside on red or orange bars.
As you see, this is more for entry confirmation. I have not tested this on any instrument.
You may have to tune the lookback period for your instrument. Default is 10.
More info:
"A color-based system for short-term trading" - www.traders.com
List of all my indicators:
Swing Point PnL PressureThis indicator visualizes the cumulative profit potential of bulls and bears based on recent swing highs and lows — offering a unique lens into trend maturity, sentiment imbalance, and exhaustion risk.
🟢 Bull PnL rises as price moves above prior swing lows — reflecting unrealized gains for long positions
🔴 Bear PnL rises as price drops below prior swing highs — capturing short-side profitability
Over time, these curves diverge during strong trends, revealing which side is in control. But when they converge, it often signals that the dominant side is losing steam — a potential turning point where profit-taking, traps, or reversals may emerge.
This tool doesn’t predict tops or bottoms — it tracks the emotional and financial pressure building on each side of the market. Use it to:
Spot trend exhaustion before price confirms it
Identify profit parity zones where sentiment may flip
Time accumulation or distribution phases with greater confidence
Whether you’re swing trading or analyzing macro structure, this indicator helps you see what price alone can’t: who’s winning, who’s trapped, and who’s about to give up.
Candle 2 Closure📌 Indicator Presentation – Candle 2 Closure
" Candle 2 Closure "s is an indicator designed to identify three types of price–action-based signals in real time: Long, Short, and Generic.
The goal is to visually highlight moments when the market breaks a key level of the previous candle but rejects that break, closing on the opposite side.
The idea was inspired by the study of pure price action and specifically by the following video:
👉 www.youtube.com
🎯 How the Indicator Works
The indicator generates signals on bar close (barstate.isconfirmed), making them reliable and free from repainting.
🔵 LONG Signal
A long signal is triggered when:
The current candle breaks the low of the previous candle
But then closes back above that low
→ This is often a sign of a bear trap or a liquidity rejection to the downside.
🔴 SHORT Signal
A short signal is triggered when:
The current candle breaks the high of the previous candle
But then closes back below that high
→ This may indicate a bull trap or a liquidity rejection to the upside.
⚪ GENERIC Signal
A generic signal is triggered when:
A high or low is broken,
But neither the long nor short conditions are met,
Resulting in a simple unconfirmed break.
📍 Operational Advantages
Highlights liquidity absorption zones
Works on all timeframes (1m → 1D)
Useful for scalping, intraday, or swing trading
Clear and immediate visual signals on the chart
Zero repainting
✨ Visual Style
LONG displayed below the candle, white color
SHORT displayed above the candle, white color
Generic signal shown with a neutral label
J&C Indicator 20/40 MA4H SMA Signal Map (20/40) Strategy
Timeframe: 4-Hour
Overview:
This is a momentum-based trend confirmation system using dual moving averages. The strategy identifies potential entry points when price action aligns with moving average positioning.
LONG Signal:
Triggers when the market demonstrates bullish momentum with price confirming an upside breakout while both moving averages are in a favorable uptrend alignment.
SHORT Signal:
Triggers when the market demonstrates bearish momentum with price confirming a downside breakdown while both moving averages are in a favorable downtrend alignment.
Key Features:
Uses a 20-period and 40-period simple moving average on the 4-hour timeframe
Filters out false signals by requiring multi-factor confirmation
Generates clear visual alerts with background highlighting
Real-time dashboard showing current MA values and trend direction
Sound/notification alerts for immediate signal awareness
Best Used For:
Swing trading on higher timeframes with proper risk management and support from additional confluence factors on your trading setup.
Pivot crossThis script is simple way of seeing the trend using two pivots, one with lower time frame and other with higher timeframe. When the lower crosses above higher, its bullish, when lower crosses below higher pivot then bearish. Works on any timeframes for intraday and swing trading.
Volume Peak Box📄 English Description
Overview
The Volume Peak Box indicator highlights periods of unusually high volume by identifying volume spikes using Bollinger Bands on volume and drawing a price-range box around each spike window. This provides traders with a clear visual representation of supply/demand imbalances, absorption zones, and breakout/false-break areas.
All calculations come from one unified concept: detecting statistically significant volume peaks on a locked timeframe and mapping them onto the chart.
Concept & Logic
1. Locked Timeframe Volume Analysis
Instead of using the current chart timeframe, this script allows users to lock volume analysis to any timeframe (e.g., 60m, 4H, 1D).
The script retrieves from the chosen timeframe:
Volume
High price
Low price
This allows volume structure from higher timeframes to be used while trading lower timeframes.
2. Bollinger Bands on Volume
Volume volatility is analyzed using a standard Bollinger Band model:
Basis = SMA(volume, BB length)
Upper Band = Basis + (mult × standard deviation)
When:
Volume > Upper Band
→ This bar is classified as a Volume Peak.
This approach makes the peak detection statistically meaningful, instead of simply comparing raw volume to previous bars.
3. Peak Session Detection (Continuous Peaks Form One Box)
The script tracks continuous volume peaks:
When a peak starts → begin a session
While peaks continue → extend the session
When peaks end → session closes and a box is created
For each peak session, the script records:
Start bar index
End bar index
Highest high within the session
Lowest low within the session
These values determine the box boundaries.
This allows the indicator to group related peaks into a single price zone, instead of drawing a box for every bar.
4. Drawing the Volume Peak Box
When a session ends, the script draws:
A filled box covering the full price range
From startBar → endBar
Using user-defined:
Box fill color
Border color
Each box visually marks a region where strong participation entered the market, often signaling:
Breakout validation
Absorption zones
Supply/demand imbalance
High-activity trading decisions
How to Use
Use the boxes to identify high-volume reaction zones.
When price revisits a box:
Expect strong reactions (bounce, rejection, or absorption).
When price breaks out from a box:
Can signal continuation with momentum.
Lower-timeframe entry signals become more reliable when aligned with high-timeframe volume boxes.
Recommended to lock the TF to:
60m for intraday
4H or 1D for swing trading
Why This Script Is Original
It uses Bollinger Bands on volume, not price — a less common volatility-based method for detecting volume anomalies.
It groups continuous peaks into unified zones instead of treating each spike separately.
The ability to lock the volume analysis to a higher timeframe allows multi-timeframe volume interpretation without cluttering the chart.
Boxes give traders a clean and intuitive view of volume-based “decision zones”.
🇹🇭 Thai Description — คำอธิบายภาษาไทย
ภาพรวม
อินดิเคเตอร์ Volume Peak Box ใช้การตรวจจับ “Volume Peak” โดยใช้ Bollinger Band บน Volume แล้วสร้าง “กล่องช่วงราคา” ครอบช่วงที่มี Volume สูงผิดปกติ ทำให้เห็นบริเวณที่มีแรงซื้อขายเข้ามาอย่างชัดเจน เช่น จุด Breakout, จุด Absorption, หรือเขต Supply/Demand
แนวคิดและหลักการทำงาน
1. วิเคราะห์ Volume จาก Timeframe ที่ล็อกไว้
คุณสามารถเลือก TF ที่ต้องการให้ Volume ถูกนำมาคำนวณ เช่น 60 นาที, 4 ชั่วโมง, 1 วัน
แม้คุณจะเปิดกราฟ TF เล็ก เช่น 5m แต่กล่องยังอิง volume จาก TF ที่เลือกไว้ ทำให้ได้ “โซน Volume ใหญ่” ที่แม่นยำขึ้น
2. Bollinger Band บน Volume
ใช้ SMA + ส่วนเบี่ยงเบนมาตรฐานของ Volume เพื่อหา “จุดที่ Volume สูงกว่าปกติอย่างมีนัยสำคัญ”
เงื่อนไข Peak:
Volume > Upper Bollinger Band
นี่เป็นวิธีที่ดีกว่า “เทียบกับแท่งก่อนหน้า” เพราะคิดจากสถิติของทั้งช่วง
3. รวม Peak ต่อเนื่องเป็นกล่องเดียว
ถ้า Volume Peak เกิดต่อเนื่องหลายแท่ง:
จะถูกจับรวมเป็น Peak session เดียว
ใช้ High สูงสุด และ Low ต่ำสุดของทั้ง session
เมื่อ Peak จบ → วาดกล่องช่วงราคา
เหมาะกับการหาจุดที่ตลาดมีแรงเข้าซื้อ/ขายหนักในช่วงเวลาเดียวกัน
4. วาดกล่อง Volume Peak
กล่องจะครอบ:
ช่วงแท่งเริ่มต้น → แท่งสุดท้ายของ Peak
ความสูงของกล่อง = ช่วงราคาที่มี Volume สูงผิดปกติ
กล่องสามารถใช้เป็น:
โซน Breakout/Breakdown
โซน Supply/Demand
เขตที่ราคามักมี reaction
วิธีใช้งาน
ใช้กล่องเป็น “เขตการตัดสินใจ” (Decision Zone)
ราคาแตะซ้ำมักเกิดการกลับตัวหรือความผันผวนสูง
การทะลุกล่องบ่อยครั้งนำไปสู่ขาเทรนด์ใหญ่
เหมาะกับการใช้ร่วมกับ Price Action และโครงสร้างราคา
จุดเด่น / ความเป็น Original
ใช้ Bollinger Band บน Volume (น้อยอินดี้ทำ)
รวม Peak ต่อเนื่องเป็น session เดียว
วิเคราะห์ Volume ข้าม TF ได้ โดยไม่ต้องเปลี่ยน TF บนกราฟ
ได้ “โซน Volume สำคัญ” แบบชัดเจน อ่านง่าย ไม่รกจอ
Haut & Bas Semaine Précédente – Depuis lundi (paramétrable)Clean and precise indicator that draws:
• The previous week’s high
• The previous week’s low
Lines start exactly on the Monday of the previous week and extend to the right (auto-updated every Monday).
Works perfectly on all timeframes (1 min, 5 min, 1H, 4H, daily…).
Fully customizable:
Colors
Style: Solid / Dashed / Dotted
Line width (1–5)
Perfect for intraday, swing trading or scalping — these levels are often strong support/resistance or breakout zones.
No labels, no plots, just the two clean lines. Lightweight and professional.
Frequency Momentum Oscillator [QuantAlgo]🟢 Overview
The Frequency Momentum Oscillator applies Fourier-based spectral analysis principles to price action to identify regime shifts and directional momentum. It calculates Fourier coefficients for selected harmonic frequencies on detrended price data, then measures the distribution of power across low, mid, and high frequency bands to distinguish between persistent directional trends and transient market noise. This approach provides traders with a quantitative framework for assessing whether current price action represents meaningful momentum or merely random fluctuations, enabling more informed entry and exit decisions across various asset classes and timeframes.
🟢 How It Works
The calculation process removes the dominant trend from price data by subtracting a simple moving average, isolating cyclical components for frequency analysis:
detrendedPrice = close - ta.sma(close , frequencyPeriod)
The detrended price series undergoes frequency decomposition through Fourier coefficient calculation across the first 8 harmonics. For each harmonic frequency, the algorithm computes sine and cosine components across the lookback window, then derives power as the sum of squared coefficients:
for k = 1 to 8
cosSum = 0.0
sinSum = 0.0
for n = 0 to frequencyPeriod - 1
angle = 2 * math.pi * k * n / frequencyPeriod
cosSum := cosSum + detrendedPrice * math.cos(angle)
sinSum := sinSum + detrendedPrice * math.sin(angle)
power = (cosSum * cosSum + sinSum * sinSum) / frequencyPeriod
Power measurements are aggregated into three frequency bands: low frequencies (harmonics 1-2) capturing persistent cycles, mid frequencies (harmonics 3-4), and high frequencies (harmonics 5-8) representing noise. Each band's power normalizes against total spectral power to create percentage distributions:
lowFreqNorm = totalPower > 0 ? (lowFreqPower / totalPower) * 100 : 33.33
highFreqNorm = totalPower > 0 ? (highFreqPower / totalPower) * 100 : 33.33
The normalized frequency components undergo exponential smoothing before calculating spectral balance as the difference between low and high frequency power:
smoothLow = ta.ema(lowFreqNorm, smoothingPeriod)
smoothHigh = ta.ema(highFreqNorm, smoothingPeriod)
spectralBalance = smoothLow - smoothHigh
Spectral balance combines with price momentum through directional multiplication, producing a composite signal that integrates frequency characteristics with price direction:
momentum = ta.change(close , frequencyPeriod/2)
compositeSignal = spectralBalance * math.sign(momentum)
finalSignal = ta.ema(compositeSignal, smoothingPeriod)
The final signal oscillates around zero, with positive values indicating low-frequency dominance coupled with upward momentum (trending up), and negative values indicating either high-frequency dominance (choppy market) or downward momentum (trending down).
🟢 How to Use This Indicator
→ Long/Short Signals: the indicator generates long signals when the smoothed composite signal crosses above zero (indicating low-frequency directional strength dominates) and short signals when it crosses below zero (indicating bearish momentum persistence).
→ Upper and Lower Reference Lines: the +25 and -25 reference lines serve as threshold markers for momentum strength. Readings beyond these levels indicate strong directional conviction, while oscillations between them suggest consolidation or weakening momentum. These references help traders distinguish between strong trending regimes and choppy transitional periods.
→ Preconfigured Presets: three optimized configurations are available with Default (32, 3) offering balanced responsiveness, Fast Response (24, 2) designed for scalping and intraday trading, and Smooth Trend (40, 5) calibrated for swing trading and position trading with enhanced noise filtration.
→ Built-in Alerts: the indicator includes three alert conditions for automated monitoring - Long Signal (momentum shifts bullish), Short Signal (momentum shifts bearish), and Signal Change (any directional transition). These alerts enable traders to receive real-time notifications without continuous chart monitoring.
→ Color Customization: four visual themes (Classic green/red, Aqua blue/orange, Cosmic aqua/purple, Custom) allow chart customization for different display environments and personal preferences.
FX Swing — Compact Auto-Sizing (Fixed)A compact Forex swing-trading strategy that combines higher-timeframe EMA trend bias, EMA pullback confirmation, and RSI momentum filtering. It automatically sizes positions using either risk-percentage or fixed-risk, adapts pip values for JPY and non-JPY pairs, and generates clear SL/TP levels with partial take-profit exits. The script also sends structured JSON alerts for webhooks or WhatsApp automation, making it ideal for fast, disciplined, and risk-controlled swing entries.
Vertical Lines: 5, 20, 50, 200 Days Back - 30 minutesVerticals lines to indicate 5, 20, 50, and 200 day marks on a 30 minute chart. Used in Swing trading with multi-timeframe approach to mark the levels.
Generated using Claude.
Futures EMA 9×20 Scanner (Daily + 4H + 15m)This script is to facilitate the swing trading in 15min TF using the Daily and 4H.
Impulse Trend Suite (LITE) source🚀 Impulse Trend Suite (LITE version) — Simple, Accurate, Powerful
A lightweight yet precise trend suite for any symbol and any timeframe. Designed to keep your chart clean while giving you what matters: direction, timing, and confidence. Great for intraday scalping, swing trading, or longer holds.
✨ What You Get in LITE
Clear Entry Points — single arrow printed only at trend change (no spam).
Background Zones — continuous, gap-free trend shading (green = uptrend, red = downtrend).
ATR Bands + Adaptive Baseline — contextual volatility & mean reference.
Trend Panel — “CURRENT TREND DIRECTION” banner (UPTREND / DOWNTREND / NEUTRAL).
Minimal Noise — arrows only when trend flips; no clutter, no repeated shapes.
Inputs: Baseline length, ATR length & multiplier, RSI & MACD lengths, show/hide bands, shading, and arrows.
Under the hood: LITE blends ATR, an adaptive baseline, and momentum filters (RSI + MACD histogram) to confirm thrust and suppress weak moves. Signals trigger only on state change to keep focus on quality over quantity.
🛠️ How to Use
When the background turns green and a BUY arrow appears, you have a potential long setup.
Stay in the trade while the background remains green and price respects the baseline/ATR context.
When a SELL arrow prints and the background flips red, consider exiting or reversing.
Tip: For short-term trading, start with ATR Multiplier = 2.0 and Baseline = 50. Increase the baseline length for smoother trend following; decrease it to react faster.
👉 In the screenshots we used the default settings on the EUR/USD M15 timeframe to demonstrate how the tool looks and works right out of the box.
🧩 Inputs Explained
Adaptive Baseline Length — EMA that anchors the trend.
ATR Length & Multiplier — volatility channel; helps avoid chasing noise.
RSI/MACD Lengths — momentum confirmation to filter weak impulses.
Show ATR Bands — visualize volatility envelope for context.
Background Shading — always-on fill (no black gaps) to read trend at a glance.
Show Entry Arrows — single arrow on the exact trend flip bar.
🆚 LITE vs PRO
Feature comparison:
Trend shading + panel: LITE ✅ | PRO ✅
Entry arrows (de-duplicated): LITE ✅ | PRO ✅ + more filters
Visual & audio alerts: LITE — | PRO ✅
Graphical Reversal Zones (with suggested SL context): LITE — | PRO ✅
HTF confirmation & noise filters: LITE — | PRO ✅
Ready-made strategies (detailed docs): LITE — | PRO ✅
PRO strategies included:
Trend Continuation — follow the impulse + HTF confirm.
Reversal Zones — timing turns with visual boxes & suggested stop areas.
Hybrid — enter with continuation logic, manage with reversal zones.
Upgrade to the full professional toolkit (+ PDF on price patterns & candlesticks):
fxsharerobots.com
📈 Works On
Forex, Indices, Commodities, Crypto, Stocks
Scalping (1–5m), Intraday (15m–1h), Swing (4h–D1+)
Note: Volatility differs by market. If you see too many flips, raise the Baseline length or ATR multiplier; if it reacts too slowly, lower them.
✅ Best Practices
Trade in the direction of the active background.
Use ATR bands / structure to define risk and place stops logically.
Avoid over-fitting — start with defaults, then tune slightly for your market/timeframe.
Add session/time filters or HTF bias (available in PRO) for extra selectivity.
📚 Documentation & More Tools
PRO version & user guide: fxsharerobots.com
All downloads (indicators, EAs, toolkits): fxsharerobots.com
⚠️ Disclaimer
Trading involves risk. This script is for educational purposes and does not constitute financial advice. Past performance does not guarantee future results. Always test and manage risk responsibly.
Happy trading & many pips!
— FxShareRobots Team 🌟
Volume Orderblock Breakout — Naaganeunja Lite v3.5Pre signal update for volume orderblock breakout
THIS IS 4 HOUR SIGNAL FOR SWING TRADING, WIINNING RATE IS 80~90%






















