Aadarsh Ke Hooks longThis strategy is based on statistical analysis and quantitative analysis. Usefull when we trigger it above 50 sma... Please comment for script Improvements and restoring passion and plz boost the coder. Kethavath Aadarsh...
/**
* Strategy Overview:
* ------------------
* This strategy is based on comprehensive statistical and quantitative analysis, designed to trigger trading
* actions when the asset's price moves above its 50-day Simple Moving Average (SMA). The use of this indicator
* helps to confirm market momentum and may signal the onset of a trend, thereby potentially increasing the probability
* of capturing profitable opportunities.
*
* Script Improvements:
* --------------------
* 1. **Modularization:** Break down the logic into smaller, reusable functions for easier maintenance and improved readability.
* 2. **Error Handling:** Implement comprehensive error handling and logging to monitor unexpected behavior and data anomalies.
* 3. **Performance Optimization:** Optimize data-fetching methods and state management to reduce unnecessary re-renders and enhance efficiency.
* 4. **Testing:** Introduce unit tests to validate core functionalities, ensuring that future modifications do not compromise stability.
* 5. **Documentation:** Maintain clear and consistent inline documentation for functions and critical logic to facilitate future updates.
*
* Inspiration for the Developer:
* ------------------------------
* Remember, every line of code is an opportunity to learn and innovate. Your work today is laying the foundation
* for tomorrow's success. Keep challenging yourself, refine your code continuously, and stay passionate about
* solving problems through elegant, efficient solutions. Your drive and dedication make a difference—keep up the
* great work and continue pushing the boundaries of what's possible!
*/
Educational
Calculadora de Lotes AvançadaInforme o tamanho do seu stop e o script te devolve o lote correto, já descontando a comissão.
The Shark ' KHThe indicator is very simple and effective.
But please adhere to capital management.
The concept of the indicator is based on a breakout and then a retest of the areas shown within the rectangle. You can wait for a correction and then enter with the trend. It also identifies the order block, and 2EMA has been added to the indicator, with values of 100 and 200.
1-Min BTC Scalping StrategyAkshay 1 min BTC scalping uses moving averages, RSI , ADX and Stochastics to determine trend.
Liquidity Grab + Smart Money Divergencemarch22 AI DESIGN,march22 AI DESIGN,march22 AI DESIGN.march22 AI DESIGN
Prev Day, Premarket, 5m OpenDescription of the Script
This script is a Pine Script (version 5) indicator designed for use in TradingView. It overlays customizable price range lines and backgrounds on a chart to highlight key trading ranges based on different time periods and sessions. The indicator focuses on the following ranges:
Daily Range: Displays the high and low prices from the previous trading day (9:30 AM to 4:00 PM ET).
Premarket Range: Shows the high and low prices during the premarket session (4:00 AM to 9:29 AM ET) of the current day.
5-Minute Opening Range: Captures the high and low prices during the first 5 minutes of the regular trading session (9:30 AM to 9:35 AM ET).
GC Sessions (Gold Commodity): Optionally displays the high and low of the previous day's GC session (9:00 AM to 2:30 PM ET) and London Fix windows (5:00–6:00 AM and 9:30–10:30 AM ET on the current day).
CL Sessions (Crude Oil): Optionally displays the high and low of the previous day's CL session (9:00 AM to 2:30 PM ET) and the EIA window (10:00–11:00 AM ET on Wednesdays).
Each range is represented by horizontal lines (top and bottom) with customizable colors, styles (solid, dashed, dotted), and widths. Background shading between the high and low lines can also be enabled with adjustable colors and transparency. Labels are added to identify each range (e.g., "PDH" for Previous Day High, "PMH" for Premarket High, etc.). The script adjusts for time zones via a user-defined offset and allows manual override of the previous trading day.
Instructions for Setting the Inputs
The script provides a variety of customizable inputs grouped by range type. Below are instructions for setting each input category:
General Settings
Timezone Offset (hours): Adjusts the script's time calculations to your local timezone relative to UTC. Enter the number of hours to subtract from UTC (e.g., -4 for Eastern Time during Daylight Saving Time, -5 during Standard Time). Range: -12 to +12.
Previous Day Settings
Previous Trading Day Override (YYYY-MM-DD): Allows manual specification of the previous trading day in "YYYY-MM-DD" format (e.g., "2025-03-19"). Leave blank for automatic detection (defaults to the prior day). This override expires at midnight ET the next day.
Daily Range Customization
Daily Top Line Color: Choose the color for the previous day's high line (default: green).
Daily Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
Daily Top Line Width: Set the line thickness (1 to 5; default: 2).
Daily Bottom Line Color: Choose the color for the previous day's low line (default: red).
Daily Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
Daily Bottom Line Width: Set the line thickness (1 to 5; default: 2).
Daily Show Background?: Enable/disable background shading between the high and low (default: true).
Daily Background Color: Choose the background color (default: orange).
Daily Background Transparency: Set transparency level (0 = opaque, 100 = fully transparent; default: 92).
Premarket Range Customization
Premarket Top Line Color: Choose the color for the premarket high line (default: green).
Premarket Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
Premarket Top Line Width: Set the line thickness (1 to 5; default: 2).
Premarket Bottom Line Color: Choose the color for the premarket low line (default: red).
Premarket Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
Premarket Bottom Line Width: Set the line thickness (1 to 5; default: 2).
Premarket Show Background?: Enable/disable background shading (default: true).
Premarket Background Color: Choose the background color (default: blue).
Premarket Background Transparency: Set transparency level (0 to 100; default: 92).
5-Minute Opening Range Customization
5min Opening Top Line Color: Choose the color for the opening range high line (default: black).
5min Opening Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
5min Opening Top Line Width: Set the line thickness (1 to 5; default: 2).
5min Opening Bottom Line Color: Choose the color for the opening range low line (default: black).
5min Opening Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
5min Opening Bottom Line Width: Set the line thickness (1 to 5; default: 2).
GC Special Sessions
Show GC Session Range (9:00 AM - 2:30 PM ET)?: Enable/disable the GC session range from the previous day (default: false).
GC Session Top Color: Choose the color for the GC session high line (default: green).
GC Session Bottom Color: Choose the color for the GC session low line (default: red).
Show London Fix Windows (5-6 AM, 9:30-10:30 AM ET)?: Enable/disable the London Fix windows for the current day (default: false).
London Fix Top Color: Choose the color for the London Fix high line (default: green).
London Fix Bottom Color: Choose the color for the London Fix low line (default: red).
CL Special Sessions
Show CL Session Range (9:00 AM - 2:30 PM ET)?: Enable/disable the CL session range from the previous day (default: false).
CL Session Top Color: Choose the color for the CL session high line (default: green).
CL Session Bottom Color: Choose the color for the CL session low line (default: red).
Show EIA Window (Wed, 10-11 AM ET)?: Enable/disable the EIA window for Wednesdays (default: false).
EIA Window Top Color: Choose the color for the EIA high line (default: green).
EIA Window Bottom Color: Choose the color for the EIA low line (default: red).
How to Use
Add to Chart: Copy the script into TradingView's Pine Editor, then add it to your chart.
Adjust Inputs: Open the indicator settings by double-clicking it on the chart. Modify the inputs as described above to suit your preferences.
Verify Timezone: Ensure the "Timezone Offset" matches your desired timezone for accurate range calculations.
Optional Overrides: Use the "Previous Trading Day Override" if you need to analyze a specific past day, ensuring the format is correct (e.g., "2025-03-19").
This indicator is particularly useful for traders who rely on key price levels from previous sessions, premarket activity, or specific commodity-related time windows (GC and CL).
US Presidents (Alternating Fills by Order)📜 Indicator Description: US Presidents Background Fill
This indicator highlights the terms of U.S. Presidents on your chart with alternating red and blue background fills based on their political party:
• 🟥 Republicans = Red
• 🟦 Democrats = Blue
• 🎨 Dark/Light shading alternates with each new president to clearly distinguish consecutive terms, even within the same party.
The fill starts from President Ulysses S. Grant (18th President, 1873) through to the 47th president in 2025. It is designed to work with any asset and automatically adapts to the visible date range on your chart.
Ideal for visualizing macro trends, historical context, and how markets may have reacted under different political administrations.
Mark Hours/Minutes (Formula + Minutes)This Pine Script code is a TradingView indicator that analyzes the hour and minutes of each candle in a 1-minute timeframe and plots a red triangle above the candle if one of the following conditions is met:
Sum/Difference Condition: The sum or the absolute difference of the hours and minutes is equal to 29, 35, or 71, with a tolerance of +/- 1.
Minutes Condition: The minutes are equal to 00, 29, or 35.
This indicator is based on the Goldbach theory and the "algo path" concept popularized by Hopiplaka, which posits that algorithmic trading paths often initiate from minute values of 00, 29, and 35. Use this indicator according to your trading strategy.
Smart Trend Reversal System Smart Trend Reversal System - EMA & Stoch RSI Strategy 🚀
🔹 Overview:
The Smart Trend Reversal System is a momentum-based strategy that leverages Exponential Moving Average (EMA), Stochastic RSI, and traditional RSI to identify high-probability trend reversals in the market.
🔹 How It Works:
✅ Buy Signal:
Stochastic RSI (K) crosses above (D).
RSI is above the overbought threshold.
Price is above the 89 EMA (indicating a bullish trend).
✅ Sell/Short Signal:
Stochastic RSI (K) crosses below (D).
RSI is below the oversold threshold.
Price is below the 89 EMA (indicating a bearish trend).
✅ Exit Conditions:
Long exit: RSI crosses below 50 or price drops below EMA.
Short exit: RSI crosses above 50 or price moves above EMA.
🔹 Customization:
Modify the EMA length for different timeframes.
Adjust RSI/Stoch RSI settings to suit different asset classes.
Enable/disable LONG ONLY or SHORT ONLY mode for different strategies.
🔹 Best Use Cases:
📈 Trend Reversals & Momentum Trading
📉 Intraday & Swing Trading
⚡ Works on Stocks, Forex, Crypto & Indices
💡 Note: This is a strategy for educational purposes and should be tested before live trading.
📊 Try it out and let me know your feedback! 🚀🔥
BankOIThis script will draw lines based on the opening candle as per the value configured in indicator.
Used for BankNIfty,NIfty
BankNIfty preferred point-250,500
NIfty preferred point-50,100
Example
Configured points to draw line: 50
Market open at 23500. following lines will will be drawn.
23500+50=>23550
23500+100=>23600
23500+150=>23650
23500-50=>23450
23500-100=>23400
23500-150=>23350
10 lines above and below open candle value is drawn.
Day,Week,Month opening can be selected to draw lines.
Time Range High/Low with Win/Loss StatsThis script allows you to pick a range, and a TP/SL level, and will place a marker at which one hits first.
Customizable TP/SL levels, Days of the week, and range times.
Please note, I don't have the end time set just right, so I have to use 1 min less.
Good for back testing and adjusting to see which TP/SL levels get the best results.
Previous Day Session High and Low留意:線段會在 HKT 02:00 更新,而非 HKT 03:00。
Designed specifically for HSI Futures (Hang Seng Index Futures),
this indicator will only display the highest and lowest points from yesterday's day trading session (HKT 09:15–16:30).
Note: The line segment will update at HKT 02:00, not at HKT 03:00.
Recommended use: On 1-minute, 5-minute, 15-minute, or 1-hour charts.
專為 HSI Futures 恒指期貨而設,
只會顯示 昨天 日間交易時段 (HKT 09:15-16:30) 的最高最低點。
留意:線段會在 HKT 02:00 更新,而非 HKT 03:00。
建議使用於 1分/5分/15分/1小時 圖表。
KHAN TRADING HUB4.0 BUY & SELL
### KHAN TRADING HUB4.0 INDICATOR
This is a **multi-functional trading tool** designed for **ALL MARKET** and other assets. It combines **trend analysis**, **order blocks**, **volatility indicators**, and **risk management** to generate **buy/sell signals**. Key features include:
1. **Trend Identification**:
- Uses **EMA crossovers** (50 EMA and 200 EMA) and **RSI** to confirm trends.
- Plots **trend ribbons** and **clouds** for visual trend confirmation.
2. **Entry Signals**:
- **Buy**: Price breaks above resistance, RSI > 50, and 50 EMA > 200 EMA.
- **Sell**: Price breaks below support, RSI < 50, and 50 EMA < 200 EMA.
3. **Risk Management**:
- **Stop Loss**: 10 pips below/above swing levels.
- **Take Profit**: 1:2 risk-reward ratio (e.g., 20 pips target for 10 pips stop loss).
4. **Visualization**:
- Plots **EMA lines**, **RSI levels**, and **buy/sell signals** on the chart.
- Displays **stop loss** and **take profit** levels.
5. **Dashboard**:
- Shows **volatility status**, **RSI values**, and **trend direction** across multiple timeframes.
6. **Customization**:
- Users can adjust **indicator lengths**, **stop loss/take profit levels**, and **risk percentage**.
Coinbase PremiumCoinbase Premium Indicator
This Pine Script indicator displays the premium on Coinbase relative to the current ticker, if the ticker is available on Coinbase. It calculates the premium as the percentage difference between the price of the current ticker and the price on Coinbase.
Features:
Fetches the current ticker price.
Checks if the current ticker is available on Coinbase.
Calculates the premium only if the ticker is available on Coinbase.
Plots the premium on the chart.
Displays a message if the current ticker is not available on Coinbase.
Use this indicator to monitor the price premium of assets on Coinbase compared to other exchanges.
First Candle Breakout - Close on SL or EODFirst Candle Breakout - Close on SL or EOD
Trade is triggered after the first candle closes and breakout is confirmed.
First Candle Breakout - Trailing Stop & EOD CloseTrade triggers after the first candle closes (confirmation before breakout entry).
Supertrend & SMA 200 Strategy1. Indicators Used:
Supertrend (10,3): Identifies the trend direction.
SMA 200: Acts as a long-term trend filter.
2. Trend Identification:
Uptrend: Price is above the 200 SMA, and Supertrend is bullish.
Downtrend: Price is below the 200 SMA, and Supertrend is bearish.
Sideways Market: When neither condition is met.
Support and Resistance - Mehta
I tried to create a support and resistance indicator by considering price and volume. I never examine the performance of this indicator.
Disclaimer: This tool is provided for informational and educational purposes only and should not be considered as financial advice. Always conduct your own research and consult with a licensed financial advisor before making any investment decisions.
Triple Witching HourThe "Triple Witching Hour" indicator highlights the days when the quarterly expiration of stock index futures, options on futures, and options on stocks occurs simultaneously. These events, known as "Triple Witching Days," typically happen on the third Friday of March, June, September, and December. The indicator marks these days on the chart with a red triangle below the price bars and displays a label with the text "Triple Witching Hour." Traders can use this tool to identify periods of potential market volatility and adjust their strategies accordingly.
Fair Value Gap (FVG) Detector Fair Value Gap (FVG) is an imbalance in price action that occurs when there is a strong displacement (big movement) in the market, leaving a gap between wicks. This gap represents an area where price moved too quickly, and liquidity was not fully filled.
Traders use FVGs as potential areas where price might retrace and react before continuing in the original direction.
NUBA (MANSA MUSA)NUBA (MANSA MUSA) Indicator
This script is a multi-indicator tool designed for technical analysis, combining T3 (Tillson T3), RSI, MACD, EMA, Order Blocks, and Volume Analysis to identify trends, momentum, and trading opportunities. Key features include:
T3 Indicator: Smoothed moving average to determine trend direction (green = uptrend, red = downtrend).
RSI: Detects overbought/oversold conditions and generates signals for RSI changes.
MACD: Provides buy/sell signals based on crossovers, filtered by RSI and volume spikes.
Order Blocks: Identifies consolidation zones and breakouts for potential trades.
Volume Filter: Confirms signals with increased trading volume.
EMA Lines: Plots EMA55, EMA144, and EMA200 to assess trend strength.
Beta Calculation: Measures asset volatility relative to the BIST 100 index.
Table Display: Shows key metrics like T3 status, MACD signals, and uptrend probability.
Alerts: Notifies users of trend changes, order block breakouts, and RSI/MACD signals.
Exit Levels - No BS CryptoCalculate your average sell price and your sell levels with this tool.
You can use it on any cryptocurrency.
Pixel Art CloudPixel Art Cloud ☁️ (Super Mario Bros. 2 NES Style)
This Pine Script (v6) script generates a Pixel Art Cloud, inspired by the classic clouds from Super Mario Bros. 2 (NES).
📌 Features:
Displays a pixelated cloud in 8-bit retro style.
Overlays the chart at user-defined intervals.
Uses a color combination to simulate the classic cloud:
⚫ Black for the outline (classic pixelated border).
🔵 Light blue (#3CBCFC) for internal details, matching the clouds in the game.
Automatic repetition on the chart based on the separation parameter.
Does not affect market data, purely a visual decorative element.
🎨 Main Use:
This script is perfect for adding a nostalgic and creative touch to TradingView charts, bringing back the Super Mario Bros. 2 (NES) vibe.
🔧 Optional:
You can modify the cloud's appearance frequency by adjusting the separation parameter.
💡 Note:
This script is not a technical indicator and does not influence market analysis.
🚀 Add a retro touch to your charts with this pixelated cloud! ☁️🎮
Pixel Art ChickenPixel Art Chicken 🐔
This Pine Script (v6) script generates a Pixel Art of a Chicken on the TradingView chart.
📌 Features:
Draws a pixelated chicken using vibrant colors:
🔴 Red (comb)
🟡 Yellow (beak and legs)
⚪ Light gray (body)
⚫ Black (eyes and outline)
Overlays the chart at user-defined intervals.
Functions as a visual design without affecting market data.
Customizable in terms of location and spacing between images.
🎨 Main Use:
This script is perfect for adding a fun and creative touch to your TradingView charts.
🔧 Optional:
If you want to modify the repetition frequency of the pixel art, adjust the separation parameter.
💡 Note:
This script is not a technical indicator and does not influence market analysis.
🚀 Enjoy this Pixel Art on your charts! 🎮🐔🔥