Intraday Long Stoploss DistanceWhile working on intraday 1-minute charts i found it distracting to calculate the stoploss distance from the current price so i created an overlay indicator that plots the values of the last 15 minute and 30 minutes low for safe SL placement so you can get a rough idea of Risk management and lot size to use.
Still in early phases. Few more updates coming soon .stay updated.
*Not a financial advice.
Statistics
BotBeans Optimizer - MA CrosserBotBeans Optimizer - MA Crosser
This script allows you to:
1. Select up to 12 types of Moving Averages (MA)
2. Backtest 7 combinations of MA crossover strategy at a time with key metrics such as Net Profit%, Profit Factor, Win Rate%, Total Trades and Maximum Drowdown (Max DD)
3. Easy to define slow MA length by using SlowMultiplier. Slow MA length is calculated by fast MA length multiplied by SlowMultipleir.
4. Ability to plot MA lines, trading signals, slop loss and take profit levels for clarification
5. Risk Management is implemented. By default, risk only 2% for each trade.
6. The script uses 14 Average True Range (ATR) multiplied by ATRMultiplier to determine stop loss level
7. Take profit level is calculated by stop loss level multiplied by RiskRewardRatio.
8. Implemented with trading fee for more accurate backtest result
MTFThis is a variation of the denosied MFI ma cross script that allows for reductionist trend following memeing, but taking it to the next level. This combines multiple ma's and finds local bottoms and tops to find the optimum trend to catch and ride along. PM for access.
Global M2 sandboxThis indicator aggregates global sources of liquidity to use as a proxy for the global money supply and allows an offsetting number of days to be implemented to use as a leading indicator.
// EUROZONE Data
EUM2D = request.security("ECONOMICS:EUM2*FX:EURUSD", "D", close, lookahead=barmerge.lookahead_on)
// North America Data
USM2D = request.security("ECONOMICS:USM2", "D", close, lookahead=barmerge.lookahead_on)
CAM2D = request.security("ECONOMICS:CAM2*FX_IDC:CADUSD", "D", close, lookahead=barmerge.lookahead_on)
// Non-EU Europe Data
CHM2D = request.security("ECONOMICS:CHM2*FX_IDC:CHFUSD", "D", close, lookahead=barmerge.lookahead_on)
GBM2D = request.security("ECONOMICS:GBM2*FX:GBPUSD", "D", close, lookahead=barmerge.lookahead_on)
FIPOP = request.security("ECONOMICS:FIM2/FX_IDC:USDFIM", "D", close, lookahead=barmerge.lookahead_on)
RUM2D = request.security("ECONOMICS:RUM2*FX_IDC:RUBUSD", "D", close, lookahead=barmerge.lookahead_on)
// Pacific Data
NZM2D = request.security("ECONOMICS:NZM2*FX_IDC:NZDUSD", "D", close, lookahead=barmerge.lookahead_on)
// Asia Data
CNM2D = request.security("ECONOMICS:CNM2*FX_IDC:CNYUSD", "D", close, lookahead=barmerge.lookahead_on)
TWM2D = request.security("ECONOMICS:TWM2*FX_IDC:TWDUSD", "D", close, lookahead=barmerge.lookahead_on)
HKM2D = request.security("ECONOMICS:HKM2*FX_IDC:HKDUSD", "D", close, lookahead=barmerge.lookahead_on)
INM2D = request.security("ECONOMICS:INM2*FX_IDC:INRUSD", "D", close, lookahead=barmerge.lookahead_on)
JPM2D = request.security("ECONOMICS:JPM2*FX_IDC:JPYUSD", "D", close, lookahead=barmerge.lookahead_on)
PHM2D = request.security("ECONOMICS:PHM2*FX_IDC:PHPUSD", "D", close, lookahead=barmerge.lookahead_on)
SGM2D = request.security("ECONOMICS:SGM2*FX_IDC:SGDUSD", "D", close, lookahead=barmerge.lookahead_on)
// Latin America Data
BRM2D = request.security("ECONOMICS:BRM2*FX_IDC:BRLUSD", "D", close, lookahead=barmerge.lookahead_on)
COM2D = request.security("ECONOMICS:COM2*FX_IDC:COPUSD", "D", close, lookahead=barmerge.lookahead_on)
MXM2D = request.security("ECONOMICS:MXM2*FX_IDC:MXNUSD", "D", close, lookahead=barmerge.lookahead_on)
// Middle East Data
AEM2D = request.security("ECONOMICS:AEM2*FX_IDC:AEDUSD", "D", close, lookahead=barmerge.lookahead_on)
TRM2D = request.security("ECONOMICS:TRM2*FX_IDC:TRYUSD", "D", close, lookahead=barmerge.lookahead_on)
// Africa Data
ZAM2D = request.security("ECONOMICS:ZAM2*FX_IDC:ZARUSD", "D", close, lookahead=barmerge.lookahead_on)
// Calculate Global Money Supply M2
total = (EUM2D + USM2D + CAM2D + CHM2D + GBM2D + FIPOP + RUM2D + NZM2D + CNM2D + TWM2D + HKM2D + INM2D + JPM2D + PHM2D + SGM2D + BRM2D + COM2D + MXM2D + AEM2D + TRM2D + ZAM2D) / 1000000000000
Multi-Token Analysis TableIntroduction
The "Multi-Token Analysis Table" is an advanced TradingView indicator designed for cryptocurrency traders managing multiple tokens simultaneously. It dynamically analyzes up to 39 cryptocurrencies, evaluating their performance across various metrics to identify the best trading opportunities. The indicator presents a comprehensive ranking system in a clean, organized table format, allowing traders to make data-driven decisions based on market conditions, trend strength, and relative performance.
Key Features
Multi-Token Analysis: Simultaneously analyzes up to 39 different cryptocurrencies, with customizable token selection.
Dynamic Scoring System: Evaluates tokens across multiple performance metrics and assigns weighted scores to determine the best opportunities.
Market Regime Detection: Identifies whether tokens are in trending or mean-reverting states to optimize strategy selection.
Adaptive Recommendation Engine: Provides clear "best token" recommendations based on overall scores and trending conditions.
Score Threshold Filter: Allows setting minimum score requirements for recommendations, defaulting to cash positions when criteria aren't met.
Previous Signal Tracking: Displays the previous bar's recommendation to help track changes in market conditions.
Visual Performance Indicators: Uses color-coding to instantly identify relative strength and weakness among tokens.
Customizable Weighting: Fine-tune the importance of different metrics to match your trading strategy.
How It Works
The indicator employs a sophisticated analysis methodology across multiple dimensions:
Token Selection: Up to 39 tokens can be monitored simultaneously, organized in four separate groups for easier management. Each token is automatically assigned a color for visual distinction.
Metric Calculation: For each selected token, the indicator calculates several key metrics:
Market Regime: Determines if a token is in a trending or mean-reverting state using specialized market regime algorithms.
Performance Metrics: Calculates momentum, volatility, relative strength, and other custom metrics.
Composite Scoring: Combines individual metrics weighted according to user preferences to generate a total score for each token.
Recommendation Engine:
The highest-scoring token is identified as the "best token" candidate.
If trending filters are enabled, the system prioritizes tokens in trending regimes.
When no tokens meet the score threshold, a "Cash" recommendation is generated.
Previous recommendations are tracked and displayed for comparison.
Table Display:
Token Table: Lists all selected tokens with their individual metric scores and total scores.
Summary Table: Provides an overview with the current best token recommendation, previous signal, and critical performance data.
Ratio Analysis: Shows comparative performance between tokens for deeper market insights.
Backtest Summary: Tracks hypothetical performance based on the recommendations.
Signal Logic: When a bar is confirmed, the system stores the current recommendation to be displayed as the previous signal on the next bar, ensuring accurate tracking of changing market conditions.
Conclusion
The "Multi-Token Analysis Table" is an essential tool for cryptocurrency traders managing diverse portfolios. By quantifying and ranking multiple tokens simultaneously, it eliminates guesswork and brings data-driven clarity to the decision-making process. The indicator is particularly valuable during volatile market conditions, helping traders identify which tokens are showing relative strength and are best positioned for potential gains. Its flexible configuration makes it suitable for various trading styles, from day trading to longer-term position management.
Disclaimer
This indicator is provided for informational and educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves substantial risk, and users should perform their own analysis before making trading decisions. The creator is not liable for any financial outcomes resulting from its use.
Prop Firm Business SimulatorThe prop firm business simulator is exactly what it sounds like. It's a plug and play tool to test out any tradingview strategy and simulate hypothetical performance on CFD Prop Firms.
Now what is a modern day CFD Prop Firm?
These companies sell simulated trading challenges for a challenge fee. If you complete the challenge you get access to simulated capital and you get a portion of the profits you make on those accounts payed out.
I've included some popular firms in the code as presets so it's easy to simulate them. Take into account that this info will likely be out of date soon as these prices and challenge conditions change.
Also, this tool will never be able to 100% simulate prop firm conditions and all their rules. All I aim to do with this tool is provide estimations.
Now why is this tool helpful?
Most traders on here want to turn their passion into their full-time career, prop firms have lately been the buzz in the trading community and market themselves as a faster way to reach that goal.
While this all sounds great on paper, it is sometimes hard to estimate how much money you will have to burn on challenge fees and set realistic monthly payout expectations for yourself and your trading. This is where this tool comes in.
I've specifically developed this for traders that want to treat prop firms as a business. And as a business you want to know your monthly costs and income depending on the trading strategy and prop firm challenge you are using.
How to use this tool
It's quite simple you remove the top part of the script and replace it with your own strategy. Make sure it's written in same version of pinescript before you do that.
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
//--$$$$$--Strategy-- --$$$$$$--// ******************************************************************************************************************************
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
length = input.int(20, minval=1, group="Keltner Channel Breakout")
mult = input(2.0, "Multiplier", group="Keltner Channel Breakout")
src = input(close, title="Source", group="Keltner Channel Breakout")
exp = input(true, "Use Exponential MA", display = display.data_window, group="Keltner Channel Breakout")
BandsStyle = input.string("Average True Range", options = , title="Bands Style", display = display.data_window, group="Keltner Channel Breakout")
atrlength = input(10, "ATR Length", display = display.data_window, group="Keltner Channel Breakout")
esma(source, length)=>
s = ta.sma(source, length)
e = ta.ema(source, length)
exp ? e : s
ma = esma(src, length)
rangema = BandsStyle == "True Range" ? ta.tr(true) : BandsStyle == "Average True Range" ? ta.atr(atrlength) : ta.rma(high - low, length)
upper = ma + rangema * mult
lower = ma - rangema * mult
//--Graphical Display--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
u = plot(upper, color=#2962FF, title="Upper", force_overlay=true)
plot(ma, color=#2962FF, title="Basis", force_overlay=true)
l = plot(lower, color=#2962FF, title="Lower", force_overlay=true)
fill(u, l, color=color.rgb(33, 150, 243, 95), title="Background")
//--Risk Management--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
riskPerTradePerc = input.float(1, title="Risk per trade (%)", group="Keltner Channel Breakout")
le = high>upper ? false : true
se = lowlower
strategy.entry('PivRevLE', strategy.long, comment = 'PivRevLE', stop = upper, qty=riskToLots)
if se and upper>lower
strategy.entry('PivRevSE', strategy.short, comment = 'PivRevSE', stop = lower, qty=riskToLots)
The tool will then use the strategy equity of your own strategy and use this to simulat prop firms. Since these CFD prop firms work with different phases and payouts the indicator will simulate the gains until target or max drawdown / daily drawdown limit gets reached. If it reaches target it will go to the next phase and keep on doing that until it fails a challenge.
If in one of the phases there is a reward for completing, like a payout, refund, extra it will add this to the gains.
If you fail the challenge by reaching max drawdown or daily drawdown limit it will substract the challenge fee from the gains.
These gains are then visualised in the calendar so you can get an idea of yearly / monthly gains of the backtest. Remember, it is just a backtest so no guarantees of future income.
The bottom pane (non-overlay) is visualising the performance of the backtest during the phases. This way u can check if it is realistic. For instance if it only takes 1 bar on chart to reach target you are probably risking more than the firm wants you to risk. Also, it becomes much less clear if daily drawdown got hit in those high risk strategies, the results will be less accurate.
The daily drawdown limit get's reset every time there is a new dayofweek on chart.
If you set your prop firm preset setting to "'custom" the settings below that are applied as your prop firm settings. Otherwise it will use one of the template by default it's FTMO 100K.
The strategy I'm using as an example in this script is a simple Keltner Channel breakout strategy. I'm using a 0.05% commission per trade as that is what I found most common on crypto exchanges and it's close to the commissions+spread you get on a cfd prop firm. I'm targeting a 1% risk per trade in the backtest to try and stay within prop firm boundaries of max 1% risk per trade.
Lastly, the original yearly and monthly performance table was developed by Quantnomad and I've build ontop of that code. Here's a link to the original publication:
That's everything for now, hope this indicator helps people visualise the potential of prop firms better or to understand that they are not a good fit for their current financial situation.
Average pips in a time range ( pbalbisFX )This indicator show how much pips the price moved in a especific period of time.
volatilityThis indicator indicates whether volatility is sufficient for trading. It works on time frames from 1 minute to 2 hours. The redder the indicator, the less volatility there is, and the greener the indicator, the more volatility there is.
CandlestickUtilitiesThis library provides essential functions for candlestick chart analysis and pattern recognition in Pine Script®.
It includes:
• Candle structure analysis (bodies, shadows, lengths)
• Trend detection using EMAs
• Common candlestick pattern recognition
This library is under construction.
Designed to support strategy development and improve signal accuracy for traders.
Created by @xprophetx — under MPL-2.0 license.
calculator by Azamat Anuarbeklot calculator that will calculate with what lot you can enter a position in order to comply with risk management
DECODE M2 Global Liquidity IndexThe BEST Global Liquidity Index indicator!
- Custom Lead Period
- Automatic Multi-Timeframe Recalculation
Bar Painting [iFarsheed]
Bar Painting
Overview:
The "Bar Painting " indicator is designed for traders who follow price action strategies inspired by Al Brooks.
This tool colors candles on your chart, making it easy to identify different candle types like trend bars, dojis, and pin bars without complex calculations. By simply observing the colors, you can quickly understand market dynamics.
Features:
Candle Coloring:
Bullish (up) and bearish (down) trend bars are highlighted in distinct colors for easy recognition.
Candles that do not fit these patterns appear in the default chart color, indicating they do not represent significant moves.
Visual Clarity:
The color coding provides a quick visual reference, allowing you to grasp market conditions at a glance.
No Calculations Required:
You don’t need to perform any calculations; just look at the colors to understand the strength of the market.
How to Use:
Customize Settings:
Adjust the colors of trend bars to ensure they contrast well with your chart background for improved visibility.
Use the settings to choose which candle types you want to highlight based on your trading preferences.
Analyze Candle Patterns:
Look at the colored candles to quickly identify trend bars, dojis, and pin bars that may signal potential market movements.
Informed Decision Making:
Use the highlighted candle patterns to assist in making trading decisions, such as identifying possible entry and exit points.
Important Note:
This coloring scheme is optimized for light mode charts. In dark mode, the colors may not display correctly.
To ensure proper color display, please set the visual order of the indicator to "Bring to Front."
Future Updates:
This indicator is an initial version, and more features will be added in the future.
If you have any suggestions or feedback, please feel free to share your thoughts in the comments section of the indicator.
Good luck with your trading!
-iFarsheed-
M2 Global Liquidity Index with Custom LagThe ONLY Global Liquidity Index indicator that allows you to set a custom offset in days, but that ALSO recalculates and displays that offset correctly on ANY timeframe.
订单流轨迹自动交易脚本《订单流交易》一书系统性地介绍了订单流(Order Flow)这一市场分析方法,强调通过分析市场中每一价位的主动买卖单量,捕捉供需力量的变化,从而预判价格趋势的延续或反转。以下是核心内容提炼:
1. 订单流的核心概念
订单流定义:通过实时追踪每个价位的主动买单和卖单成交量,揭示市场供需力量的动态平衡。与传统K线图(仅显示开盘、收盘、最高、最低价)不同,订单流深入价格内部,展示买卖双方的博弈细节。
关键指标:
Delta:单根K线内主动买单总量减去主动卖单总量的差值,反映多空力量强弱。
POC(成交量最大价位):K线内部成交量最大的价格点,揭示多空争夺的核心区域。
失衡现象:当某一价位的主动买单量显著高于卖单(需求失衡)或反之(供应失衡),阈值通常设为3:1。
堆积失衡:连续多个价位出现供需失衡,形成支撑/阻力带。
2. 订单流的优势
实时性:直接反映市场当下行为,而非滞后指标(如MACD、RSI)。
识别主力动向:通过大单、微单、被套交易者等信号,捕捉机构或主力资金的痕迹。
大单:顶部/底部成交量显著高于相邻价位,表明主力介入。
微单:顶部/底部成交量骤减,显示趋势末端力量衰竭。
被套交易者:趋势末端大量反向成交,导致价格反转(如顶部放量却无法突破)。
3. 订单流的分析方法
价格与成交量结合:
健康上涨:伴随主动买单递增,Delta为正且放大。
弱势反转:顶部出现需求失衡但价格回落,或底部供应失衡却未创新低。
关键价位的应用:
支撑/阻力:通过前日高低点、VWAP(成交量加权平均价)、月线级别高低点等判断。
突破与回踩:价格突破关键位后回踩确认,结合订单流验证有效性。
4. 交易策略与实战应用
高胜率信号:
顶部/底部微单:趋势末端成交量萎缩,预示反转(如顶部主动买单骤减)。
失衡堆积:连续失衡形成支撑/阻力带,回踩时入场。
吸收与主动出击:价格在区间内震荡(吸收)后突破,伴随成交量放大。
资金管理与心理:
止损设置:基于失衡区间或关键价位,控制单笔亏损(如1-2跳)。
空仓纪律:无明确信号时保持观望,避免过度交易。
5. 与传统技术的对比
K线图的局限:无法展示价格内部成交细节,仅依赖形态(如十字星、吞噬)易被误导。
订单流的独特性:通过微观成交数据,识别市场情绪(如恐慌性抛售或贪婪追涨),避免“看图说话”的滞后性。
6. 适用场景与市场
高流动性市场:期货、股指、外汇等,需足够成交量支撑订单流分析。
日内与波段交易:短周期(如15分钟)捕捉供需突变,长周期验证趋势强度。
总结
订单流的核心在于通过实时成交数据,理解市场参与者的行为逻辑,从而在趋势启动初期或反转前捕捉机会。它并非预测工具,而是通过供需力量对比,为交易决策提供客观依据。结合严格的资金管理和心理纪律,订单流能显著提升交易的胜率与盈亏比。
**"Order Flow Trading"** systematically introduces the market analysis method of **Order Flow**, emphasizing the capture of supply-demand dynamics by analyzing active buy/sell volumes at each price level to anticipate trend continuations or reversals. Below is a distilled summary of the core concepts:
---
### **1. Core Concepts of Order Flow**
- **Definition**:
Order Flow tracks real-time active buy/sell volumes at each price level, revealing the dynamic balance between supply and demand. Unlike traditional candlestick charts (which only show open, close, high, and low prices), Order Flow dives into price internals, exposing the battle between buyers and sellers.
- **Key Metrics**:
- **Delta**: The difference between total active buy volume and sell volume within a single candlestick, reflecting bullish/bearish strength.
- **POC (Point of Control)**: The price level with the highest volume in a candlestick, indicating the focal point of buyer-seller conflict.
- **Imbalance**: Occurs when buy volume significantly exceeds sell volume (**demand imbalance**, threshold ~3:1) or vice versa (**supply imbalance**).
- **Cumulative Imbalance**: Consecutive price levels with imbalances, forming support/resistance zones.
---
### **2. Advantages of Order Flow**
- **Real-Time Insight**: Reflects immediate market behavior, unlike lagging indicators (e.g., MACD, RSI).
- **Identifying Institutional Activity**: Detects "smart money" footprints through signals like:
- **Large Orders**: Unusually high volume at tops/bottoms, signaling institutional participation.
- **Micro Orders**: Abrupt volume drops at trend extremes, indicating exhaustion.
- **Trapped Traders**: Reversals triggered by countertrend volume surges (e.g., failed breakouts with high sell volume).
---
### **3. Analytical Techniques**
- **Price-Volume Integration**:
- **Healthy Rally**: Rising buy volume with expanding positive Delta.
- **Weak Reversal**: Demand imbalance at tops with price rejection, or supply imbalance at bottoms without new lows.
- **Key Price Levels**:
- **Support/Resistance**: Identified via prior highs/lows, VWAP (Volume-Weighted Average Price), or monthly levels.
- **Breakout & Retest**: Validate breakouts using Order Flow after price retests key levels.
---
### **4. Trading Strategies & Execution**
- **High-Probability Signals**:
- **Micro Orders at Extremes**: Volume drying up at tops/bottoms signals reversals.
- **Cumulative Imbalance Zones**: Enter on pullbacks to stacked imbalance areas.
- **Absorption & Breakouts**: Post-consolidation breakouts with volume expansion.
- **Risk & Psychology**:
- **Stop Loss**: Set 1-2 ticks outside imbalance zones or key levels.
- **Flat Discipline**: Avoid overtrading; act only on clear signals.
---
### **5. Order Flow vs. Traditional Analysis**
- **Candlestick Limitations**: Reliance on patterns (e.g., doji, engulfing) often leads to false signals due to missing internal price data.
- **Order Flow Edge**: Leverages granular trade data to detect market sentiment (e.g., panic selling or FOMO buying), avoiding lagging "chart storytelling."
---
### **6. Applicable Markets & Timeframes**
- **High-Liquidity Markets**: Futures, indices, forex (sufficient volume for Order Flow analysis).
- **Timeframes**:
- **Intraday/Swing**: Short-term (e.g., 15min) for sudden supply-demand shifts.
- **Long-Term**: Validate trend strength on higher timeframes (e.g., daily).
---
### **Summary**
Order Flow focuses on interpreting real-time transactional data to decode market participant behavior, capturing opportunities at trend inception or reversal points. It is not a predictive tool but a framework for objective decision-making through supply-demand analysis. Combined with strict risk management and psychological discipline, Order Flow enhances trade accuracy and profit potential.
CVD (Cumulative Volume Delta)
Cumulative Volume Delta
Use a moving average with three different
I thought about determining the volatility and direction of the price of the stock price and finding a place to break through.
I made some Mistake coz I'm new corder
I'm reposting this simple script due to house rule violation. (Whatever can haha) 😁
I'm erasing all the comments in my native language that I had in my script... I thought it would make the User uncomfortable, so I locked the code, and I thought maybe that's the problem
Anyway, I'm sorry 😅
RSI STRATEGYThis Pine Script code is a complex trading strategy that combines multiple technical indicators including RSI, Cyclic RSI, CCI, Choppiness Index, and Bollinger Bands. Here's a breakdown of what it does:
Main Components:
Uses both standard RSI and Cyclic RSI (a modified version of RSI)
Implements pivot point trend lines (support/resistance)
Includes a "MOST" indicator (similar to SuperTrend) for trend following
Adds additional indicators like CCI, Choppiness Index, and Bollinger Bands %B
Key Features:
Plots RSI with a WMA (Weighted Moving Average) line
Identifies trend lines automatically based on pivot points
Generates buy/sell signals based on crossovers between RSI and its moving average
Includes noise filtering options for the RSI values
Has alert conditions for buy/sell signals
Visual Elements:
Stepped RSI line that changes color based on its position relative to the WMA
Trend lines (support/resistance) in different colors
Signal labels with emojis (🐻 for sell, 🚀 for buy)
A midline at 50 for reference
Custom Calculations:
Special VAR (Variable Index Dynamic Average) moving average type
Cyclic RSI calculation with vibration and torque parameters
Zigzag pattern detection for identifying swing highs/lows
Input Options:
Multiple choices for RSI type (standard or cyclic)
Different noise filtering options
Various moving average types (SMA, EMA, WMA, etc.)
Adjustable lengths for all indicators
The strategy appears to be designed for mean-reversion trading using RSI, with additional trend-following elements from the MOST indicator. The combination of multiple indicators suggests it's looking for confluence between different technical factors before generating signals.
Note that this is quite a complex script with many components, which could lead to overfitting if not properly tested. The effectiveness would depend heavily on the chosen parameters and market conditions.
M-SPOT
The M-SPOT Indicator is a sophisticated tool of technical analysis, meticulously designed to identify pivotal market entry and exit levels, with particular emphasis on dollar-cost averaging (DCA) strategies. While its core computations are based on daily chart data, the indicator is versatile, presenting actionable signals across all timeframes.
The indicator delineates two principal zones: a green buy zone and a red sell zone. The green zone emerges when the price falls below a specified threshold relative to time, signaling an opportunity for gradual position accumulation—an archetypal DCA approach. Conversely, the red sell zone is triggered when the price exceeds a defined value over time, suggesting the market is significantly overbought and that a systematic, phased exit (DCA selling) should be considered.
Beyond these zones, the M-SPOT Indicator employs advanced algorithms to detect potential market peaks and troughs. When price action breaches certain levels, the indicator generates clear signals such as:
“SELL ALL” — displayed as labels with a vertical yellow line,
“Strong BUY” — marked by colored dots on the chart.
Users may tailor the calculation methodology to the asset class in question, whether Bitcoin (BTC), Ethereum (ETH), or Solana (SOL). The indicator automatically highlights the chart background in the respective buy and sell zones, thereby facilitating swift and informed decision-making.
Furthermore, the M-SPOT Indicator is equipped with an alert system that notifies users of:
“DCA Buy Area” — when the price enters the accumulation zone,
“DCA Sell Area” — when the price enters the distribution zone,
“PEAK” — signaling an impending market top,
“Strong BUY” — denoting a robust buy signal.
Thanks to its transparent zones and unambiguous signals, the M-SPOT Indicator empowers both novice and experienced investors to make judicious decisions in financial markets.
Directional Predictor (Responsive)Directional Predictor (Responsive)
The Directional Predictor (Responsive) is a comprehensive, multi-indicator based tool designed to provide a potential directional bias for the market. It synthesizes signals from several popular technical indicators, including Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Volume Weighted Average Price (VWAP), and Volume, to generate a directional forecast (UP, DOWN, or NEUTRAL).
The indicator employs a weighted scoring system, allowing users to adjust the influence of each component indicator based on their trading preferences and market analysis. A higher score, indicating agreement across multiple weighted signals, contributes to a higher confidence level in the predicted direction.
Key Features:
Multi-Indicator Analysis: Combines signals from EMAs (9, 21, 50), RSI (14), MACD (12, 26, 9), VWAP, and Volume for a robust directional assessment.
Customizable Weights: Users can adjust the importance (weight) of Trend (EMAs), RSI, MACD, VWAP, and Volume signals to tailor the indicator to different trading styles or market conditions.
Confidence Score: Calculates a confidence percentage based on the agreement of weighted signals, providing an additional layer of insight into the strength of the predicted direction. A base confidence level can also be set.
VWAP Integration: Includes VWAP analysis specifically for intraday timeframes, automatically disabling this component on daily or higher charts.
Optional Volatility Filter: Incorporates an Average True Range (ATR) based filter to potentially help users avoid signals during periods of low volatility, which can sometimes lead to false signals. Users can enable or disable this filter and adjust its period and threshold.
Clear Signal Output: Displays a prominent text label on the last bar indicating the predicted direction (UP, DOWN, or NEUTRAL) along with the calculated confidence percentage.
EMA Visualization: Plots the 9, 21, and 50 EMAs on the chart for visual reference to the prevailing trend.
How to Interpret:
The indicator provides a directional bias (UP or DOWN) when a sufficient number of weighted signals align, reaching a predefined threshold (currently set to 4 components agreeing in the direction of the trend). A NEUTRAL signal is displayed when there is no clear directional consensus based on the indicator's criteria. The accompanying confidence percentage reflects the overall strength of the signals supporting the predicted direction, taking into account the user-defined weights. Higher confidence suggests stronger alignment among the chosen indicators.
Note: This indicator is intended as a supplementary tool for analysis and does not provide financial advice. Always conduct your own research and consider multiple factors before making trading decisions.
Source Code: The source code for this indicator is closed and not publicly available.
[Kpt-Ahab] PnL-calculatorThe PnL-Cal shows how much you’re up or down in your own currency, based on the current exchange rate.
Let’s say your home currency is EUR.
On October 10, 2022, you bought 10 Tesla stocks at $219 apiece.
Back then, with an exchange rate of 0.9701, you spent €2,257.40.
If you sold the 10 Tesla shares on April 17, 2025 for $241.37 each, that’s around a 10% gain in USD.
But if you converted the USD back to EUR on the same day at an exchange rate of 1.1398, you’d actually end up with an overall loss of about 6.2%.
Right now, only a single entry point is supported.
If you bought shares on different days with different exchange rates, you’ll unfortunately have to enter an average for now.
For viewing on a phone, the table can be simplified.
Institutional MACD (Z-Score Edition) [VolumeVigilante]📈 Institutional MACD (Z-Score Edition) — Professional-Grade Momentum Signal
This is not your average MACD .
The Institutional MACD (Z-Score Edition) is a statistically enhanced momentum tool, purpose-built for serious traders and breakout hunters . By applying Z-Score normalization to the classic MACD structure, this indicator uncovers statistically significant momentum shifts , enabling cleaner reads on price extremes, trend continuation, and potential reversals.
💡 Why It Matters
The classic MACD is powerful — but raw momentum values can be noisy and relative , especially on volatile assets like BTC/USD . By transforming the MACD line, signal line, and histogram into Z-scores , we anchor these signals in statistical context . This makes the Institutional MACD:
✔️ Timeframe-agnostic and asset-normalized
✔️ Ideal for spotting true breakouts , not false flags
✔️ A reliable tool for detecting momentum divergence and exhaustion
🧪 Key Features
✅ Full Z-Score normalization (MACD, Signal, Histogram)
✅ Highlighted ±Z threshold bands for overbought/oversold zones
✅ Customizable histogram coloring for visual momentum shifts
✅ Built-in alerts for zero-crosses and Z-threshold breaks
✅ Clean overlay with optional display toggles
🔁 Strategy Tip: Mean Reversion Signals with Statistical Confidence
This indicator isn't just for spotting breakouts — it also shines as a mean reversion tool , thanks to its Z-Score normalization .
When the Z-Score histogram crosses beyond ±2, it marks a statistically significant deviation from the mean — often signaling that momentum is overstretched and the asset may be due for a pullback or reversal .
📌 How to use it:
Z > +2 → Price action is in overbought territory. Watch for exhaustion or short setups.
Z < -2 → Momentum is deeply oversold. Look for reversal confirmation or long opportunities.
These zones often precede snap-back moves , especially in range-bound or corrective markets .
🎯 Combine Z-Score extremes with:
Candlestick confirmation
Support/resistance zones
Volume or price divergence
Other mean reversion tools (e.g., RSI, Bollinger Bands)
Unlike the raw MACD, this version delivers statistical thresholds , not guesswork — helping traders make decisions rooted in probability, not emotion.
📢 Trade Smart. Trade Vigilantly.
Published by VolumeVigilante
Correlation MatrixThis indicator displays a real-time correlation matrix of any five assets selected by the user. It helps traders and investors identify relationships between different instruments—whether they move together (positive correlation), in opposite directions (negative correlation), or not at all (neutral).
Vietnamese Stocks: Multi-Ticker Fibonacci AlertThis Pine Script™ indicator is designed specifically for traders monitoring the Vietnamese stock market (HOSE, HNX). Its primary goal is to automate the tracking of Fibonacci retracement levels across a large list of stocks, alerting you when prices breach key support zones.
Core Functionality:
The script calculates Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for up to 40 tickers simultaneously. The calculation is based on the highest high and lowest low identified since a user-defined Start Time. This allows you to anchor the Fibonacci analysis to a specific market event, trend start, or time period relevant to your strategy.
What it Does For You:
Automated Watchlist Scanning: Instead of drawing Fib levels on dozens of charts, select one of the two pre-configured watchlists (up to 40 symbols each, customizable in settings) populated with popular Vietnamese stocks.
Time-Based Fibonacci: Define a Start Time in the settings. The script uses this date to find the subsequent highest high and lowest low for each symbol in your chosen watchlist, forming the basis for the Fib calculation.
Intelligent Alerts: Get notified via TradingView's alerts when the candle closing price of any stock in your active watchlist falls below the critical 38.2%, 50%, 61.8%, or 78.6% levels relative to its own high/low range since the start time. Alerts are consolidated for efficiency.
Visual Aids:
- Plots the same time-based Fibonacci levels directly on your current chart symbol for quick reference.
- Includes an optional on-chart table showing which monitored stocks are currently below key Fib levels (enable "Show Debug Info").
- Features experimental background coloring to highlight potential bullish signals on the current chart.
Configuration:
Start Time: Crucial input – sets the anchor point for Fib calculations.
WatchList Selection: Choose between WatchList #1 (Bluechip/Midcap focus) or WatchList #2 (Defensive/Other focus) using the boolean toggles.
Symbol Customization: Easily replace the default symbols with your preferred Vietnamese stocks directly in the indicator settings.
Notification Prefix: Add custom text to the beginning of your alert messages.
Alert Setup: Remember to create an alert in TradingView, selecting this indicator and the alert() condition, usually with "Once Per Bar Close" frequency.
This tool is open-source under the MPL 2.0 license. Feel free to use, modify, and learn from it.
tafirstlibGeneral Purpose: Starts by stating it's a collection of utility functions for technical analysis.
Core Functionality Areas: Mentions key categories like:
Extrema detection (isMin, isMax, etc.)
Condition checking over time (isMachedInRange, isContinuous, etc.)
Rate of change analysis (isSlowDown)
Moving average calculation (getMA)
Advanced Features: Highlights the more complex functions:
Visualization helpers (getColorNew)
Moving Regression (mr) for smoothing/trend
Cycle analysis (bpDom)
Overall Goal: Concludes by stating the library's aim – simplifying development and enabling complex analysis.
Library "tafirstlib"
TODO: add library description here
isSlowDown(data)
isSlowDown
Parameters:
data (float) : array of numbers
Returns: boolean
isMin(data, maeLength)
isMin
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMax(data, maeLength)
isMax
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMinStopped(data, maeLength)
isMinStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isMaxStopped(data, maeLength)
isMaxStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
Returns: boolean
isLongMinStopped(data, maeLength, distance)
isLongMinStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
distance (int) : number
Returns: boolean
isLongMaxStopped(data, maeLength, distance)
isLongMaxStopped
Parameters:
data (float) : array of numbers
maeLength (int) : number
distance (int) : number
Returns: boolean
isMachedInRangeSkipCurrent(data, findRange, findValue)
isMachedInRangeSkipCurrent
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: boolean
isMachedInRange(data, findRange, findValue)
isMachedInRange
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: boolean
isMachedColorInRange(data, findRange, findValue)
isMachedColorInRange isMachedColorInRange(series color data, int findRange, color findValue)
Parameters:
data (color) : series of color
findRange (int) : int
findValue (color) : color
Returns: boolean
countMachedInRange(data, findRange, findValue)
countMachedInRange
Parameters:
data (bool) : array of numbers
findRange (int) : number
findValue (bool) : number
Returns: number
getColor(data)
getColor
Parameters:
data (float) : array of numbers
Returns: color
getColorNew(data)
getColorNew
Parameters:
data (float) : array of numbers
Returns: color
isColorBetter(color_data)
isColorBetter
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorWorst(color_data)
isColorWorst
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorBetter2(color_data)
isColorBetter2
Parameters:
color_data (color) : array of colors
Returns: boolean
isColorWorst2(color_data)
isColorWorst2
Parameters:
color_data (color) : array of colors
Returns: boolean
isDecreased2Bar(data)
isDecreased2Bar
Parameters:
data (float) : array of numbers
Returns: boolean
isContinuousAdvance(targetSeries, range2Find, howManyException)
isContinuousAdvance
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
howManyException (int) : number
Returns: boolean
isContinuous(targetSeries, range2Find, truefalse)
isContinuous
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
isContinuousNotNow(targetSeries, range2Find, truefalse)
isContinuousNotNow
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
isContinuousTwoFactors(targetSeries, range2Find, truefalse)
isContinuousTwoFactors
Parameters:
targetSeries (bool) : array of booleans
range2Find (int) : number
truefalse (bool) : boolean
Returns: boolean
findEventInRange(startDataBarIndex, neededDataBarIndex, currentBarIndex)
findEventInRange
Parameters:
startDataBarIndex (int) : number
neededDataBarIndex (int) : number
currentBarIndex (int) : number
Returns: boolean
findMin(firstdata, secondata, thirddata, forthdata)
findMin
Parameters:
firstdata (float) : number
secondata (float) : number
thirddata (float) : number
forthdata (float) : number
Returns: number
findMax(firstdata, secondata, thirddata, forthdata)
findMax
Parameters:
firstdata (float) : number
secondata (float) : number
thirddata (float) : number
forthdata (float) : number
Returns: number
getMA(src, length, mav)
getMA
Parameters:
src (float) : number
length (simple int) : number
mav (string) : string
Returns: number
mr(mrb_src, mrb_window, mrb_degree)
Parameters:
mrb_src (float)
mrb_window (int)
mrb_degree (int)
bpDom(maeLength, bpw, mult)
Parameters:
maeLength (int)
bpw (float)
mult (float)