NVESTTitle:
Pine Script for NVEST with Automated Buy Signal Detection
Features:
Multi-Symbol Support:
Automatically detects the symbol (e.g., XAU, WTI, USD/CAD) or allows for manual symbol selection.
Multi-Timeframe Analysis:
Conditions are checked across multiple timeframes:
Daily (D)
4-Hour (4H)
1-Hour (1H)
15-Minute (15M)
Indicators Used:
Customizable candle coloring:
Bullish candles: Blue
Bearish candles: Pink
Cloud visualization for bullish and bearish trends.
Displays Stop Loss and Take Profit lines, along with labeled buy signals.
Signal Logic:
The strategy uses a combination of indicators to confirm buy signals:
Bullish trend in the daily timeframe.
Customizable Parameters:
Allows for manual symbol input and detailed customization of indicator settings for each symbol.
Option to disable timeframe checks for flexibility.
Additional Features:
Custom logo and branding display on the chart.
Error handling to ensure symbols match the chart's data.
Chu kỳ
SMC mapping* The Smart Money Concept (SMC) indicator identifies institutional trading strategies by tracking liquidity, order blocks, and market structure shifts to reveal high-probability trade setups.
*Here’s a comprehensive breakdown of how your Smart Money Concept (SMC) indicator can differentiate itself from existing ones, how to use it, which markets it's tailored for, and the ideal trading conditions:
*How It Differs from Currently Published SMC Indicators
1.Enhanced Precision with Multi-Timeframe Analysis
*Unlike many SMC indicators that focus on a single timeframe, this version seamlessly integrates multi-timeframe analysis to provide confluence. For example, identifying a Break of Structure (BOS) on higher timeframes while refining entries on lower timeframes.
2.Real-Time Liquidity Detection
*This indicator dynamically highlights liquidity zones such as buy-side and sell-side liquidity and updates them as price action evolves. It avoids static zones seen in other tools.
3.Automatic Detection of Institutional Concepts
*Your version automatically marks Order Blocks, Fair Value Gaps (FVGs), and Mitigation Blocks with clear, customizable labels. This reduces manual chart marking, a common issue with existing tools.
4.Integrated Volume Analysis
*While most SMC indicators ignore volume, yours incorporates volume analysis to validate smart money movements, ensuring that detected BOS, CHoCH, or liquidity grabs align with institutional activity.
5.Market Structure Optimization
*This indicator avoids cluttered signals by prioritizing significant structure changes instead of minor, irrelevant swings, enhancing clarity for traders.
6.Dynamic Premium and Discount Zones
*Unlike static tools, this indicator recalculates premium/discount zones dynamically as the market structure evolves, helping traders identify entry points efficiently.
*How to Use the Smart Money Concept Indicator
1.Identify Market Structure
*Begin with higher timeframes (daily or 4H) to analyze the dominant market structure. The indicator automatically marks trends with HH (Higher Highs), HL (Higher Lows), LL (Lower Lows), and key BOS/CHoCH.
2.Locate Order Blocks and Fair Value Gaps
*Use the indicator to spot bullish/bearish order blocks and areas of imbalance (FVGs). Look for price retracements into these zones for potential high-probability trades.
3.Liquidity Sweeps for Entry Signals
*Wait for a liquidity grab (e.g., price sweeping highs or lows) before entering a trade. Combine this signal with confirmation like BOS or CHoCH for stronger conviction.
4.Trade in Premium or Discount Zones
*Identify whether the price is in the premium zone (expensive) for sell opportunities or the discount zone (cheap) for buy opportunities.
5.Set Clear Entries, Stop-Loss, and Targets
*Use order blocks or fair value gaps as entry zones. Place stop-losses below the order block for buys or above it for sells. Target liquidity pools or previous swing highs/lows.
6.Multi-Timeframe Confluence
*Refine entries on smaller timeframes (e.g., 1H or 15M) after identifying market direction on higher timeframes.
*Markets It’s Meant For
The Smart Money Concept Indicator is versatile and can be applied to multiple financial markets, including:
1.Forex (FX): Works exceptionally well due to its liquidity-driven nature and institutional trading footprints.
2.Cryptocurrencies: Popular for crypto trading due to volatility and repeated liquidity hunts (e.g., BTC/USD, ETH/USD).
3.Stock Markets: Effective for swing trading stocks where smart money movements (volume spikes, order blocks) are prominent.
4.Indices: Ideal for trading indices like S&P 500, NASDAQ, and Dow Jones by analyzing market structure and institutional order flow.
5.Commodities: Can be used for commodities like gold (XAU/USD) and oil (WTI/Brent) where institutional influence is high.
*Ideal Trading Conditions
1.Trending Markets: The indicator excels in trending conditions where it identifies BOS, CHoCH, and liquidity zones for continuation trades.
2.Volatile Sessions: Best used during high-liquidity trading sessions like London, New York, or when economic news events cause price volatility.
3.Consolidating Markets: In ranging markets, the indicator highlights liquidity pools at support/resistance levels, providing opportunities for liquidity sweeps and reversals.
4.High Volume Conditions: Works optimally when volume confirms smart money participation, avoiding false signals in low-volume environments.
5.Economic Events: Conditions where price manipulations are frequent (e.g., NFP, CPI releases) present opportunities for liquidity grabs and reversals.
* Here’s a 10-bullet explanation of the Smart Money Concept (SMC) Indicator:
1. Market Structure: The SMC indicator identifies shifts in market structure, focusing on higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL).
2. Order Blocks: It highlights areas where institutions (smart money) accumulate or distribute positions, marking potential zones for reversals or entries.
3. Liquidity Grabs: The indicator helps identify liquidity zones, where stop-loss hunting and fakeouts occur to trap retail traders.
Liquidity Sweeps: Detects liquidity grabs where price intentionally wicks below or above support and resistance to collect orders before a strong directional move.
4. Break of Structure (BOS): It signals a shift in trend when price breaks significant highs or lows, suggesting potential reversals.
5. Fair Value Gaps (FVG): The SMC indicator marks imbalance areas where price moved quickly, creating opportunities for price to "fill the gap."
6. Change of Character (CHoCH): A key signal that shows the market transitioning from bullish to bearish (or vice versa) via structural shifts.
7. Premium and Discount Zones: It divides price into premium (sell interest) and discount (buy interest) areas, guiding entries aligned with institutional strategies.
8. Mitigation Blocks: It identifies levels where price may return to previously unfilled institutional orders before continuing the trend.
9. Confluence Signals: The SMC indicator combines multiple elements—order flow, structure, and liquidity—for high-probability trades.
10. Institutional Bias: It reveals smart money’s direction, helping traders align with institutional trends and avoid retail traps.
By combining smart money concepts, real-time liquidity detection, and volume confirmation, this enhanced indicator provides a robust, all-in-one solution for traders across multiple markets. It reduces manual work, offers clear trade signals, and aligns users with institutional trading behavior for higher success rates.
testbench_macd_rsi_22055test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~test~
Backtesting should only be Done With standard candlestick charts.
Backtesting should only be Done With standard candlestick charts.
Schaff Trend Cycle TripleEach cycle (Fast, Medium, Slow) now has its own set of inputs, which are completely separate from each other, matching the format you provided in the image.
The %D Length inputs are included for each cycle, although they are not used in the current logic of the indicator. If you want to incorporate them into your indicator's functionality, you would need to add additional calculations or logic.
The source, upper and lower bands, and highlight breakouts options are also included as separate inputs, not grouped with the cycle inputs.
SChaff Trend CycleCycle Definition: This indicator uses three different cycle lengths (fast, medium, and slow) to represent short, medium, and long-term trends.
Moving Averages: Each cycle length corresponds to a Simple Moving Average (SMA). You can change ta.sma to ta.ema for Exponential Moving Averages if you prefer.
Plotting: Each MA is plotted in a different color to distinguish between the cycles visually.
BTC Mercenary ModelI use multiple indicator's subjective Z-score to find an overall market cycle evaluation for Bitcoin.
The key to this model is each indicator showing individual alpha over at least the previous 2 market cycle tops and bottoms. The average of these are then taken to get a more refined Z-score for the model.
Features:
Individual indicator scoring + ability to change inputs for potential better alpha of indicator
Able to see averages/previous scoring of technical and fundamental indicator averages
Able to change ROC over certain number of days to your liking
Indicators Used:
Fundamental
MVRV
Bitcoin Thermocap
NUPL
CVDD
SOPR
Technical
RSI
CCI
Multiple MA
Sharpe
Pi Cycle
Hodrick Presscott Filter
VWAP
Improvements looking to be made to this in the future is adding sentiment indicators. Would appreciate any feedback given!
-CM
NAS Strategy indicator with fractals, BoS and alert [tradbie]This advanced indicator for TradingView offers a comprehensive solution for traders focusing on the NAS (NASDAQ). It combines multiple useful features to create an effective trading environment.
Key Features:
- Timezone Management
Customizable GMT timezone
Definable day start time
- Reminder System
Customizable main text and subtext
Flexible positioning and color scheme
- Trading Plan Notes
Four customizable notes with checkbox status
Configurable display and placement
- Session Visualization
Four configurable trading sessions (e.g., Asia, London, NY Wall Street, NY PM)
Individual color coding and visibility settings
- Trendlines and Fractals
Automatic creation of trendlines based on fractals
Color highlighting of Break of Structure (BoS) events
Adjustable fractal display
- Alerts
Automatic alerts for BoS events
- Additional Features
Highly customizable visual elements
Integrated trading discipline support through reminders and notes
Advanced trend analysis tools
This indicator is ideal for traders seeking a structured and visual approach to NAS trading. It combines technical analysis with trade management tools to provide a holistic trading experience.
BENSIG//@version=5
indicator("Swing High/Low Entry Strategy with SL/TP", overlay=true)
// Input for the time range (10:30am to 16:45pm UTC-5)
startTime = timestamp("GMT-5", year, month, dayofmonth, 10, 30)
endTime = timestamp("GMT-5", year, month, dayofmonth, 16, 45)
// Variables to store the highest and lowest swing points within a specific time range
var float swingHigh = na
var float swingLow = na
// Lookback period for calculating swing high and low
lookbackPeriod = 10
// Calculate swing high and low between the specified time period
if (time >= startTime and time <= endTime)
swingHigh := na
swingLow := na
else
swingHigh := ta.highest(high, lookbackPeriod) // Highest high in the last 10 bars
swingLow := ta.lowest(low, lookbackPeriod) // Lowest low in the last 10 bars
// Detect when swing high is broken (swept)
sweepHigh = not na(swingHigh) and high > swingHigh
// Bearish Order Block Detection (simple method using previous bearish candle)
bearishOrderBlock = close > open and close < open
// Buy and Sell logic based on swing high being swept and a bearish order block detected
buyCondition = sweepHigh and bearishOrderBlock
sellCondition = sweepHigh and bearishOrderBlock
// Stop loss and take profit logic
SL_buy = swingHigh
SL_sell = swingLow
TP_buy = swingLow
TP_sell = swingHigh
// Plot Buy and Sell Signals with labels and lines for SL and TP
if (buyCondition)
label.new(bar_index, low, text="BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_buy, x2=bar_index + 10, y2=SL_buy, color=color.red, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_buy, x2=bar_index + 10, y2=TP_buy, color=color.green, width=2, extend=extend.right)
if (sellCondition)
label.new(bar_index, high, text="SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_sell, x2=bar_index + 10, y2=SL_sell, color=color.green, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_sell, x2=bar_index + 10, y2=TP_sell, color=color.red, width=2, extend=extend.right)
// Alerts
alertcondition(buyCondition, title="Buy Signal", message="Buy signal triggered")
alertcondition(sellCondition, title="Sell Signal", message="Sell signal triggered")
OBOSThe OBOS indicator represents the relative price change of a value over a selectable comparison period in percent.
The calculation is:
OBOS =( (current price- minimum price of a selected period) / (maximum price of a selected period - minimum price of a selected period) ) * 100
If the Indicator crosses the 50 % form down to up then you have a buy signal.
If the Indicator crosses the 50 % form up to down then you have a sell signal.
Momentum PriceThe Momentum is a difference between the current price and the price for example 204 days ago.
The calculation is:
momentum = current price - price X days before
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Gold Hunter ScalperGold Hunter Scalper indicator work like scalping with book your profit on chart in persentage .
its open buy sell order and give you accurate entry in market .
for code contact me on whatsapp- 9689328585
Vaaraahi LinesVaaraahi Lines Only for testing the few lines that automates the support and resistance lines
Economic RegimeThis indicator, "Economic Regime" , provides a comprehensive analysis of market conditions by combining multiple asset classes and financial metrics. It uses normalized scores and trend analysis to classify the current economic regime into one of four categories: Goldilocks, Reflation, Inflation, or Deflation. The classification is based on inputs like S&P 500 performance, bond yields, commodity prices, volatility indices, and sector ETFs. Additionally, it plots key financial spreads, including the yield spread (10Y-2Y) and credit spread (HYG-LQD), to offer deeper insights into liquidity and market sentiment. The background color dynamically reflects the identified economic regime, facilitating quick visual interpretation.
☼ MAH ☾ - High-Low Fractal SignalThis indicator works based on the market fractal and provides signals.
In a specific time interval that can be adjusted in the indicator settings window, the ceiling and floor of this range are determined, and whenever the price leaves this specified range, a buy or sell signal is issued according to the failure of each of these levels.
By looking at the situation, the trader can enter a position by observing all risk and capital management issues if he sees a suitable and powerful candle.
Note 1: To set the appropriate time frame, be sure to set the chart time to UTC+3:30, otherwise you must set the correct time frame in the indicator settings window and apply your time zone difference to it.
Note 2: The appropriate Time frame for this strategy is 5 and 15 minutes.
Note 3: It is better if the breakout candle is strong and has a small opposite shadow, and also if the candle is pulled back to the broken level and then a suitable candle is seen, the probability of this setup being successful increases.
I hope you find this indicator useful and please send me your feedback.
ZelosKapital Weekly/Monthly HLThe ZelosKapital Weekly/Monthly high low indicator is designed to display the weekly and monthly high and low levels directly on the price chart. It helps traders easily identify key support and resistance zones by marking the highest and lowest points of the current week and month. The indicator automatically updates these levels as the price moves, providing a clear visual reference for intraday trading strategies.
Ideal for both Day Trading and Swing Trading, this tool offers valuable insights into potential reversal points, breakout areas, and zones of consolidation. By monitoring these significant price levels, traders can make more informed decisions, timing their entries and exits with greater precision. Whether you're looking for short-term price action or longer-term trends, the weekly and monthly highs and lows serve as critical levels to guide your trades.
Liquidity Pool Price Range with Alerts (Clean)Monitor the upper and lower limits of your LP investments with this script.
Download and log in to Trading View on your mobile to get alerts when you fall out of range
EMA SHIFT & PARALLEL [n_dot]BINANCE:ETHUSDT.P
This strategy was developed for CRYPTO FUTURES, (the settings for ETHUSDT.P) . I aimed for the strategy to function in a live environment, so I focused on making its operation realistic:
When determining the position, only 80% (adjustable) of the available cash is invested to reduce the risk of position liquidation.
I account for a 0.05% commission, typical on the futures market, for each entry and exit.
Concept:
I modified a simple, well-known method: the crossover of two exponential moving averages (FAST, SLOW) generates the entry and exit signals.
I enhanced the base idea as follows:
For the fast EMA, I incorporated a multiplier (offset) to filter out market noise and focus only on strong signals.
I use different EMAs for long and short entry points; both have their own FAST and SLOW EMAs and their own offset. For longs, the FAST EMA is adjusted downward (<1), while for shorts, it is adjusted upward (>1). Consequently, the signal is generated when the modified FAST EMA crosses the SLOW EMA.
Risk Management:
The position includes the following components:
Separate stop-losses for long and short positions.
Separate trailers for long and short positions.
The strategy operates so that the entry point is determined by the EMA crossover, while the exit is governed only by the Stop Loss or Trailer. Optionally, it can be set to close the position at the EMA recrossing ("Close at Signal").
Trailer Operation:
An entry percentage and offset are defined. The trailer activates when the price surpasses the entry price, calculated automatically by the system.
The trailer closes the position when the price drops by the offset percentage from the highest reached price.
Example for trailer:
Purchase Price = 100
Trailer Enter = 5% → Activation Price = 105 (triggers trailer if market price crosses it).
Trailer Offset = 2%
If the price rises to 110, the exit price becomes 107.8.
If the price goes to 120, the exit price becomes 117.6.
If the price falls below 117.6, the trailer closes the position.
Settings:
Source: Determines the market price reference.
End Close: Closes positions at the end of the simulation to avoid "shadow positions" and provide an objective result.
Lot proportional to free cash (%): Only a portion of free cash is invested to meet margin requirements.
Plot Short, Plot Long: Simplifies displayed information by toggling indicator lines on/off.
Long Position (toggleable):
EMA Fast ws: Window size for FAST EMA.
EMA Slow ws: Window size for SLOW EMA.
EMA Fast down shift: Adjustment factor for FAST EMA.
Stop Loss long (%): Percent drop to close the position.
Trailer enter (%): Percent above the purchase price to activate the trailer.
Trailer offset (%): Percent drop to close the position.
Short Position (toggleable):
EMA Fast ws: Window size for FAST EMA.
EMA Slow ws: Window size for SLOW EMA.
EMA Fast up shift: Adjustment factor for FAST EMA.
Stop Loss short (%): Percent rise to close the position.
Trailer enter (%): Percent below the purchase price to activate the trailer.
Trailer offset (%): Percent rise to close the position.
Operational Framework:
If in a long position and a short EMA crossover occurs, the strategy closes the long and opens a short (flip).
If in a short position and a long EMA crossover occurs, the strategy closes the short and opens a long (flip).
A position can close in three ways:
Stop Loss
Trailer
Signal Recrossing
If none are active, the position remains open until the end of the simulation.
Observations:
Shifts significantly deviating from 1 increase overfitting risk. Recommended ranges: 0.96–0.99 (long) and 1.01–1.05 (short).
The strategy's advantage lies in risk management, crucial in leveraged futures markets. It operates with relatively low DrawDown.
Recommendations:
Bullish Market: Higher entry threshold (e.g., 6%) and larger offset (e.g., 3%).
Volatile/Sideways Market: Tighter parameters (e.g., 3%, 1%).
The method is stable, and minor parameter adjustments do not significantly impact results, helping assess overfitting: if small changes lead to drastic differences, the strategy is over-optimized.
EMA Settings: Adjust FAST and SLOW EMAs based on the asset's volatility and cyclicality.
On the crypto market, especially in the Futures market, short time periods (1–15 minutes) often show significant noise, making patterns/repetitions hard to identify. I recommend setting the interval to at least 1 hour.
I hope this contributes to your success!