PriorHourRangeLevels_v0.1PriorHourRangeLevels_v0.1
Created by dc_77 | © 2025 | Mozilla Public License 2.0
Overview
"PriorHourRangeLevels_v0.1" is a versatile Pine Script™ indicator designed to help traders visualize and analyze price levels based on the prior hour’s range. It overlays key levels—High, Low, 75%, 50% (EQ), and 25%—from the previous hour onto the current price chart, alongside the current hour’s opening price. With customizable display options and time zone support, it’s ideal for intraday traders looking to identify support, resistance, and breakout zones.
How It Works
Hourly Reset: The indicator detects the start of each hour based on your chosen time zone (e.g., "America/New_York" by default).
Prior Hour Range: It calculates the High and Low of the previous hour, then derives three additional levels:
75%: 75% of the range above the Low.
EQ (50%): The midpoint of the range.
25%: 25% of the range above the Low.
Current Hour Open: Displays the opening price of the current hour.
Projection: Lines extend forward (default: 24 bars) to project these levels into the future, aiding in real-time analysis.
Alerts: Triggers alerts when the price crosses any of the prior hour’s levels (High, 75%, EQ, 25%, Low).
Key Features
Time Zone Flexibility: Choose from options like UTC, New York, Tokyo, or London to align with your trading session.
Visual Customization:
Toggle visibility for each level (High, Low, 75%, EQ, 25%, Open, and Anchor).
Adjust line styles (Solid, Dashed, Dotted), colors, and widths.
Show or hide labels with adjustable sizes (Tiny, Small, Normal, Large).
Anchor Line: A vertical line marks the start of the prior hour, with optional labeling.
Alert Conditions: Set up notifications for price crossings to catch key moments without watching the chart.
Usage Tips
Use the High and Low as potential breakout levels, while 75%, EQ, and 25% act as intermediate support/resistance zones.
Trend Confirmation: Watch how price interacts with the EQ (50%) level to gauge momentum.
Session Planning: Adjust the time zone to match your market (e.g., "Europe/London" for FTSE trading).
Projection Offset: Extend or shorten the lines (via "Projection Offset") based on your chart timeframe.
Inputs
Time Zone: Select your preferred market time zone.
Anchor Settings: Show/hide the prior hour start line, style, color, width, and label.
Level Settings: Customize visibility, style, color, width, and labels for Open, High, 75%, EQ, 25%, and Low.
Display: Set projection length and label size.
Ciclos
SessionRangeLevels_v0.1SessionRangeLevels_v0.1
Overview:
SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.
Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.
Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.
Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.
Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.
Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).
Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).
Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).
Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).
Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.
Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).
Level Settings:
High (Solid, Black, Width 2)
75% (Dotted, Blue, Width 1)
EQ/50% (Dotted, Orange, Width 1)
25% (Dotted, Blue, Width 1)
Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.
Projection Offset: Number of bars to extend lines (default: 24).
Label Size: Set label size (default: Small).
How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.
During the session, it tracks the highest high and lowest low, updating the levels in real-time.
At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.
Lines and labels dynamically adjust as new highs or lows occur within the session.
Alerts notify users when the price crosses any active level.
Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).
The indicator overlays directly on the price chart for easy integration with other tools.
Мой скриптMobile phones from various years
A mobile or cell(ular) (tele)phone is a long-range, portable electronic device for personal telecommunications over long distances.
Most current mobile phones connect to a cellular network of base stations (cell sites), which is in turn interconnected to the public switched telephone network (PSTN) (the exception are satellite phones). Cellular networks were first introduced in the early to mid 1980s (the 1G generation). Prior mobile phones operating without a cellular network (the so-called 0G generation), such as Mobile Telephone Service, date back to 1945. Until the mid to late 1980s, most mobile phones were sufficiently large that they were permanently installed in vehicles as car phones. With the advance of miniaturization, currently the vast majority of mobile phones are handheld. In addition to the standard voice function of a telephone, a mobile phone can support many additional services such as SMS for text messaging, email, packet switching for access to the Internet, and MMS for sending and receiving photos and video.
The world's largest mobile phone manufacturers include Audiovox, BenQ-Siemens, High Tech Computer Corporation, Fujitsu, Kyocera, LG, Motorola, NEC, Nokia, Panasonic (Matsushita Electric), Pantech Curitel, Philips, Sagem, Samsung, Sanyo, Sharp, SK Teletech, Sony Ericsson, T&A Alcatel and Toshiba.
The world's largest mobile phone operators include Orange SA, China Mobile and Vodafone.
There are also specialist communication systems related to, but distinct from mobile phones, such as Professional Mobile Radio. Mobile phones are also distinct from cordless telephones, which generally operate only within a limited range of a specific base station. Technically, the term mobile phone includes such devices as satellite phones and pre-cellular mobile phones such as those operating via MTS which do not have a cellular network, whereas the related term cell(ular) phone does not. In practice, the two terms are used nearly interchangeably, with the preferred term varying by location.
World mobile phone usage
In most of Europe, wealthier parts of Asia, Africa, the Caribbean, Latin America, Australia, Canada, and the United States, mobile phones are now widely used, with the majority of the adult, teenage, and even child population owning one. Taiwan had the highest mobile phone usage in 2005 at 111 subscribers per 100 people. Hong Kong has the highest mobile phone penetration rate in the world, at 127.4% in June 2006. The total number of mobile phone subscribers in the world was estimated at 2.14 billion in 2005.
At present India and China have the largest growth rates of cellular subscribers in the world. The availability of Prepaid or pay as you go services, where the subscriber does not have to commit to a long term contract, has helped fuel this growth on a monumental scale.
The mobile phone has become ubiquitous because of the interoperability of mobile phones across different networks and countries. This is due to the equipment manufacturers working to meet one of a few standards, particularly the GSM standard which was designed for Europe-wide interoperability. All European nations and most Asian and African nations adopted it as their sole standard. In other countries, such as the United States, Australia, Japan, and South Korea, legislation does not require any particular standard, and GSM coexists with other standards, such as CDMA and iDEN.
Mobile phone culture or customs
In fewer than twenty years, mobile phones have gone from being rare and expensive pieces of equipment used by businesses to a pervasive low-cost personal item. In many countries, mobile phones now outnumber land-line telephones, with most adults and many children now owning mobile phones . In the United States, 50% of children own mobile phones. It is not uncommon for young adults to simply own a mobile phone instead of a land-line for their residence . In some developing countries, where there is little existing fixed-line infrastructure, the mobile phone has become widespread. According to the CIA World Factbook the UK now has more mobile phones than people .
With high levels of mobile telephone penetration, a mobile culture has evolved, where the phone becomes a key social tool, and people rely on their mobile phone address book to keep in touch with their friends. Many people keep in touch using SMS, and a whole culture of "texting" has developed from this. The commercial market in SMS's is growing. Many phones even offer Instant Messenger services to increase the simplicity and ease of texting on phones. Cellular phones in Japan, offering Internet capabilities such as NTT DoCoMo's i-mode, offer text messaging via standard e-mail.
The mobile phone itself has also become a totemic and fashion object, with users decorating, customizing, and accessorizing their mobile phones to reflect their personality. This has emerged as its own industry. The sale of commercial ringtones exceeded $2.5 billion in 2004.
The use of a mobile phone is prohibited in some rail carriages
Mobile phone etiquette has become an important issue with mobiles ringing at funerals, weddings, movies, and plays. Users often speak at increased volume which has led to places like bookshops, libraries, movie theatres, doctor's offices, and houses of worship posting signs prohibiting the use of mobile phones, and in some places installing signal jamming equipment to prevent usage (although in many countries, e.g. the United States, such equipment is illegal). Transportation providers, particularly those doing long-distance services, often offer a "quiet car" where phone use is prohibited, much like the designated non-smoking cars in the past. Mobile phone use on aircraft is also prohibited, because of concerns of possible interference with aircraft radio communications. Most schools in the U.S prohibit cell phones due to the high amount of class disruptions due to their use, and due to the possibility of photographing someone (without consent).
In Japan, cellular phone companies provide immediate notification of earthquakes and other natural disasters to their customers free of charge. In the event of an emergency, disaster response crews can locate trapped or injured people using the signals from their mobile phones; an interactive menu accessible through the phone's Internet browser notifies the company if the user is safe or in distress.
Mobile phone features
Main article: Mobile phone features
Invented in 1997, the camera phone is now 85% of the market. Mobile phones also often have features beyond sending text messages and making voice calls—including Internet browsing, music (MP3) playback, personal organizers, e-mail, built-in cameras and camcorders, ringtones, games, radio, Push-to-Talk (PTT), infrared and Bluetooth connectivity, call registers, ability to watch streaming video or download video for later viewing, and serving as a wireless modem for a PC.
In most countries, the person receiving a cellular phone call pays nothing. However, in China (including Hong Kong), Canada, and the United States, one can be charged per minute.
Future prospects
There is a great deal of active research and development into mobile phone technology that is currently underway. Some of the improvements that are being worked on are:
Now that operators are upgrading their networks to advanced wireless and other third-generation (3G) services, many new entertainment and communications services are becoming available, including new broadcast-type operations on spectrum formerly occupied by Television Channels 52-69. With downlink speeds comparable to that of wireline DSL, mobile service can now offer capabilities such as streaming video sharing and music downloads. Services such as MobiTV, Digital Mobile TV or Juice Caster are just some examples of applications that leverage these new networks.
One difficulty in adapting mobile phones to new uses is form factor. For example, ebook readers may well become a distinct device, because of conflicting form-factor requirements — ebook readers require large screens, while phones need to be smaller. However, this may be solved using folding e-paper or built-in projectors.
One function that would be useful in phones is a translation function. Currently it is only available in stand-alone devices, such as Ectaco translators.
An important area of evolution relates to the Man Machine Interface. New solutions are being developed to create new MMI more easily and let manufacturers and operators experiment new concepts. Examples of companies that are currently developing this technology are Digital Airways with the Kaleido product, e-sim, mobile arsenal, and Qualcomm with uiOne for the BREW environment.
Mobile phones will include various speech technologies as they are being developed. Many phones already have rudimentary speech recognition in a form of voice dialing. However, to support more natural speech recognition and translation, a drastic improvement in the state of technology in these devices is required.
New technologies are being explored that will utilize the Extended Internet and enable mobile phones to treat a barcode as a URL tag. Phones equipped with barcode reader-enabled cameras will be able to snap photos of barcodes and direct the user to corresponding sites on the Internet. This technology can be extended to RFID tags, or even snapped pictures of company logos. Searches can also be personalized to local areas using a GPS system built in to cell phones. Examples of companies that are currently developing this technology are Nextcode, OP3, Neomedia Technologies, and Scanbuy, the latter of which is currently being sued by Neomedia for patent infringement. Another approach (used by jumptag.com) is to map URLs to short text tags tailored for easy user entry on phone keypads.
Developments in miniaturized hard disks and flash drives to solve the storage space issue are already surfacing, therefore opening a window for phones to become portable music libraries and players similar to the iPod.
Developments in podcast software enables mobile phones to become podcast playback devices through existing channels like MMS Podcast, J2ME Podcast and AMR-NB Podcast.
The emergence of integration capabilities with other unlicensed access technologies such as a WiMAX and WLAN, as well as allowing handover between traditional operator networks supporting GSM, CDMA and UMTS to unlicensed mobile networks. The new standard (UMA) has been developed for this to move towards fixed mobile convergence.
Further improvements in battery life will be required. Colour screens and additional functions put increasing demands on the device's power source, and battery developments may not proceed sufficiently fast to compensate. However, different display technologies, such as OLED displays, e-paper, or retinal displays, and smarter communication hardware (directional antennae, multi-mode, and peer-to-peer phones) may reduce power requirements, while new power technologies such as fuel cells may provide better energy capacity.
New technology in Japan has combined the RFID chip principle into the handset and hooked it up to a network of readers and interfaces. The system, pioneered by NTT DoCoMo and SonyEricsson, is called FeliCa and there are around 10,000 convenience stores where one can now use a phone to pay for goods just by 'swiping' it over a flat reader. By charging up a phone with pre-paid cash credits, it can act as a sophisticated mobile-phone wallet. The technology is proving popular and there are now even vending machines that accept this form of payment.
The delivery of multimedia and broadcast content including video to mobiles is beginning to become a reality with the rollout of Qualcomm's MediaFLO. In addition, there are two main competing standards DMB - Digital Multimedia Broadcasting - and DVB-H - a handset version of the Digital Video Broadcasting standard. These methods avoid swamping the network by using traditional broadcasting.
Image scanning, as seen in existing research . With time, this may develop into full 3D texturing and modeling. It is unlikely that cell phones will have the processing power to construct models and textures. But it is likely that the bandwidth to communicate the video, and receive a processed model will exist.
There are several cell phones that can perform GPS positioning. In the future, GPS positioning may be coupled with accelerometer positioning, for covering underground or indoor positioning. This would likely lead to maps and help finding where one is going. It also would support social efforts, such as locating friends or group members nearby, and identifying some strangers. The GPS technology already available in some phones, while coupled with the camera phone, may also allow users in the future to not only take a picture, but snap the exact location and angle at which the picture was taken.
TimeMapTimeMap is a visual price-reference indicator designed to help traders rapidly visualize how current price levels relate to significant historical closing prices. It overlays your chart with reference lines representing past weekly, monthly, quarterly (3-month), semi-annual (6-month), and annual closing prices. By clearly plotting these historical price references, TimeMap helps traders quickly gauge price position relative to historical market structure, aiding in the identification of trends, support/resistance levels, and potential reversals.
How it Works:
The indicator calculates the precise number of historical bars corresponding to weekly, monthly, quarterly, semi-annual, and annual intervals, dynamically adjusting according to your chart’s timeframe (intraday, daily, weekly, monthly) and chosen market type (Stocks US, Crypto, Forex, or Futures). Historical closing prices from these periods are plotted directly on your chart as horizontal reference lines.
For intraday traders, the script accurately calculates historical offsets considering regular and extended trading sessions (e.g., pre-market and after-hours sessions for US stocks), ensuring correct positioning of historical lines.
User-Configurable Inputs Explained in Detail:
Market Type:
Allows you to specify your trading instrument type, automatically adjusting calculations for:
- Stocks US (default): 390 minutes per regular session (780 minutes if extended hours enabled), 5 trading days/week.
- Crypto: 1440 minutes/day, 7 trading days/week.
- Forex: 1440 minutes/day, 5 trading days/week.
- Futures: 1320 minutes/day, 5 trading days/week.
Show Weekly Close:
When enabled, plots a line at the exact closing price from one week ago. Provides short-term context and helps identify recent price momentum.
Show Monthly Close:
When enabled, plots a line at the exact closing price from one month ago. Helpful for evaluating medium-term price positioning and monthly trend strength.
Show 3-Month Close:
When enabled, plots a line at the exact closing price from three months ago. Useful for assessing quarterly market shifts, intermediate trend changes, and broader market sentiment.
Show 6-Month Close:
When enabled, plots a line at the exact closing price from six months ago. Useful for identifying semi-annual trends, significant price pivots, and longer-term support/resistance levels.
Show 1-Year Close:
When enabled, plots a line at the exact closing price from one year ago. Excellent for assessing long-term market direction and key annual price levels.
Enable Smoothing:
Activates a Simple Moving Average (SMA) smoothing of historical reference lines, reducing volatility and providing clearer visual references. Recommended for traders preferring less volatile reference levels.
Smoothing Length:
Determines the number of bars used in calculating the SMA smoothing of historical lines. Higher values result in smoother but slightly delayed reference lines; lower values offer more immediate yet more volatile levels.
Use Extended Hours (Intraday Only):
When enabled (only applicable for Stocks US), it accounts for pre-market and after-hours trading sessions, providing accurate intraday historical line calculations based on extended sessions (typically 780 minutes/day total).
Important Notes and Compliance:
- This indicator does not provide trading signals, recommendations, or predictions. It serves purely as a visual analytical tool to supplement traders’ existing methods.
- Historical lines plotted are strictly based on past available price data; the indicator never accesses future data or data outside the scope of Pine Script’s standard capabilities.
- The script incorporates built-in logic to avoid runtime errors if insufficient historical data exists for a selected timeframe, ensuring robustness even with limited historical bars.
- TimeMap is original work developed exclusively by Julien Eche (@Julien_Eche). It does not reuse or replicate third-party or existing open-source scripts.
Recommended Best Practices:
- Use TimeMap as a complementary analytical reference, not as a standalone strategy or trade decision-making tool.
- Adapt displayed historical periods and smoothing settings based on your trading style and market approach.
- Default plot colors are optimized for readability on dark-background charts; adjust as necessary according to your preference and chart color scheme.
This script is published open-source to benefit the entire TradingView community and fully complies with all TradingView script publishing rules and guidelines.
PSP - Precision CandlePSP Precision Spotting Points (PSP) Indicator
The PSP Precision Spotting Points (PSP) Indicator is designed for traders seeking to identify high-probability reversal zones by detecting PSP setups with precision. PSPs are Potential Swing Points that often precede market reversals or significant price reactions. This indicator simplifies the process of spotting these opportunities by highlighting areas of interest based on market structure, correlation imbalances, and wick rejections.
📌 Key Features:
PSP Detection: Accurately identifies Potential Swing Points by scanning for candle patterns that suggest a shift in momentum.
Precision Entry Zones: Marks areas where price is likely to react, offering clear visual cues for optimal trade execution.
Smart Filtering: Filters out low-quality signals using advanced volatility and liquidity analysis.
Wick Confirmation: Validates PSP setups using wick rejections and correlation cracks, enhancing the probability of a successful trade.
Customizable Alerts: Stay informed with real-time notifications when a PSP is detected.
🛠️ How It Works:
Candle Analysis: Scans for specific price action patterns where candle body-to-wick ratios and volatility suggest a Potential Swing Point.
Correlation Cracks: Detects discrepancies between correlated instruments, adding confluence to PSP setups.
POI Alignment: Highlights areas near Points of Interest (POIs) like Fair Value Gaps (FVGs), previous highs/lows, and session kill zones.
Rejection Confirmation: Ensures PSPs are validated through wick-based rejection patterns, minimizing false signals.
Day Trading Trend & Candle Predictor with AIThe table first entry is the actual accuracy of the algorithm. Second one is the trend continuation %. Second row shows the next 1 and 2 candles %.
The arrow shows the most probable continuation for the chart.
Works on any timeframe,
Try it out and let me know what you think!
Moving Average Shift [ChartPrime]Great indicator based on moving averages, indicating trend changes.
Buy & Sell Signal Generator//@version=6
indicator("Buy & Sell Signal Generator", overlay=true)
// EMA Calculations
ema9 = ta.ema(close, 9)
ema15 = ta.ema(close, 15)
// Slope Calculation
slope9 = math.atan((ema9 - ema9 ) / syminfo.mintick) * (180 / math.pi)
// VWAP and Volume
vwap = ta.vwap(close)
vol = volume
// Bullish Conditions
bullishCrossover = ema9 > ema15
bullishSlope = slope9 > 30 // Relaxed slope for easier signal generation
priceAboveVWAP = close > vwap
bullishSignal = bullishCrossover and bullishSlope and priceAboveVWAP
// Bearish Conditions
bearishCrossover = ema9 < ema15
bearishSlope = slope9 < -30 // Relaxed slope for bearish signals
priceBelowVWAP = close < vwap
bearishSignal = bearishCrossover and bearishSlope and priceBelowVWAP
// Plot Buy and Sell Signals
plotshape(bullishSignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(bearishSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Plot EMA Lines
plot(ema9, color=color.blue, title="EMA 9")
plot(ema15, color=color.orange, title="EMA 15")
Close/ATR Filter//@version=5
indicator("Close/ATR Filter", overlay=false)
// تنظیمات ورودی
atrPeriod = input.int(14, title="ATR Period")
minRatio = input.float(10, title="Minimum Close/ATR Ratio")
maxRatio = input.float(50, title="Maximum Close/ATR Ratio")
// محاسبه ATR
atrValue = ta.atr(atrPeriod)
// محاسبه نسبت Close/ATR
closeAtrRatio = close / atrValue
// اعمال فیلتر
filterCondition = closeAtrRatio >= minRatio and closeAtrRatio <= maxRatio
// نمایش سیگنالها
plot(closeAtrRatio, title="Close/ATR Ratio", color=color.blue)
plotshape(series=filterCondition, title="Filtered Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
Merged Dynamic Deviation & RedK EVEREXhis refined script optimizes Dynamic Deviation Levels and Effort Versus Results (EVR) Explorer for 30-minute gold scalping, ensuring clearer signals and improved accuracy.
ATH Trailing Stop Loss %Separate Panel to show how far the closing price is away from hitting the trailing stop loss
BTC & SPX vs Yield Curve: Recession Risk ZonesBTC & SPX vs Yield Curve – Recession Risk Zones
This tool helps you track Bitcoin (BTC) and the S&P 500 (SPX) against key macro signals from the U.S. yield curve to spot potential recession risks.
🟪 Color Legend:
🔴 Red = Yield curve is inverted (warning starts)
🟡 Yellow = Projected 6–18 month recession risk (if inversion still active)
🟠 Orange = Active 6–18 month risk window (after inversion ends)
💜 Fuchsia = Real historical U.S. recessions
📈 What’s Plotted:
🔵 BTCUSD (blue line) – Normalized price
🟢 S&P 500 (green line) – Normalized price
🟠 10Y–2Y Yield Spread – Macro signal for risk
✅ Use it to:
Spot macro pressure zones
See how BTC and SPX behave around economic stress
Stay cautious when red/orange/yellow areas appear
Let me know if you'd like to enable toggles to hide/show BTC or SPX independently!
پیشبینی قیمت با Linear Regression//@version=5
indicator("پیشبینی قیمت با Linear Regression", overlay=true)
// تنظیمات ورودی
length = input.int(14, title="طول دوره برای محاسبه Linear Regression")
future_bars = input.int(5, title="تعداد کندلهای آینده برای پیشبینی")
// محاسبه Linear Regression
linreg_value = ta.linreg(close, length, 0)
// پیشبینی قیمت برای آینده
prediction = array.new_float()
array.push(prediction, linreg_value)
for i = 1 to future_bars
next_price = array.get(prediction, i - 1) + (ta.sma(close, length) - ta.sma(close, length) )
array.push(prediction, next_price)
// نمایش پیشبینی روی نمودار
plot(linreg_value, color=color.blue, title="Linear Regression")
if barstate.islast
line.new(bar_index, close, bar_index + future_bars, array.get(prediction, future_bars), color=color.red, width=2)
10 EMA & 21 EMA Crossover10 ema & 21 ema crossover , this will indicate when the ema crossover which can indicate a buy or sell signal
True Open CalculationsIndicator Description: True Open Calculations
This custom Pine Script indicator calculates and plots key "True Open" levels based on specific time intervals and trading sessions. The True Open levels represent significant price points on the chart, helping traders identify key reference points tied to various market opening times. These levels are important for understanding price action in relation to market sessions and trading cycles. The indicator is designed to plot lines corresponding to different "True Opens" on the chart and display labels with the associated information.
Key Features:
True Year Open:
This represents the opening price on the first Monday of April each year. It serves as a reference point for the yearly price level.
Plot Color: Green.
True Month Open:
This represents the opening price on the second Monday of each month. It helps in identifying monthly trends and provides a key reference for monthly price movements.
Plot Color: Blue.
True Week Open:
This represents the opening price every Monday at 6:00 PM. It gives traders a level to track weekly opening movements and can be useful for weekly trend analysis.
Plot Color: Orange.
True Day Open:
This represents the opening price at 12:00 AM (midnight) each day. It serves as a daily benchmark for price action at the start of the trading day.
Plot Color: Red.
True New York Session Open:
This represents the opening price at 7:30 AM (New York session start time). This level is crucial for traders focused on the New York trading session.
Plot Color: Purple.
Additional Features:
Labels: The indicator displays labels to the right of each plotted line to describe which "True Open" it represents (e.g., "True Year Open," "True Month Open," etc.).
Dynamic Plotting: The lines are only plotted on the current candle, and the lines are dynamically updated for each time period based on the corresponding "True Open."
Visual Cues: The colors of the plotted lines (green, blue, orange, red, purple) help quickly distinguish between different "True Open" levels, making it easy for traders to track price action and make informed decisions.
Use Cases:
Yearly, Monthly, Weekly, Daily, and Session Benchmarking: This indicator provides traders with important price levels to use as benchmarks for the current year, month, week, and day, helping to identify trends and potential reversals.
Session Awareness: It is particularly useful for traders who want to track key market sessions, such as the New York session, and their impact on price movement.
Long-term Analysis: By including the yearly open, this indicator helps traders gain a broader perspective on market trends and provides context for analyzing shorter-term price movements.
Benefits:
Helps identify important reference points for longer-term trends (yearly, monthly) as well as shorter-term moves (daily, weekly, and session).
Visually intuitive with color-coded lines and labels, allowing quick and easy identification of key market open levels.
Dynamic and real-time: The indicator plots and updates the True Open levels dynamically as the market progresses.
Super Cycle Low FinderHow the Indicator Works
1. Inputs
Users can adjust the cycle lengths:
Daily Cycle: Default is 40 days (within 36-44 days).
Weekly Cycle: Default is 26 weeks (182 days, within 22-31 weeks).
Yearly Cycle: Default is 4 years (1460 days).
2. Cycle Low Detection
Function: detect_cycle_low finds the lowest low over the specified period and confirms it with a bullish candle (close > open).
Timeframes: Daily lows are calculated directly; weekly and yearly lows use request.security to fetch data from higher timeframes.
3. Half Cycle Lows
Detected over half the cycle length, plotted to show mid-cycle strength or weakness.
4. Cycle Translation
Logic: Compares the position of the highest high to the cycle’s midpoint.
Output: "R" for right translated (bullish), "L" for left translated (bearish), displayed above bars.
5. Cycle Failure
Flags when a new low falls below the previous cycle low, indicating a breakdown.
6. Visualization
Cycle Lows: Diamonds below bars (yellow for daily, green for weekly, blue for yearly).
Half Cycle Lows: Circles below bars (orange, lime, aqua).
Translations: "R" or "L" above bars in distinct colors.
Failures: Downward triangles below bars (red, orange, purple).
Advanced SL ManagerThe Advanced SL Manager empowers traders to automate risk management systematically, blending volatility adaptation with disciplined risk thresholds. Ideal for swing/day traders seeking to balance capital preservation and profit potential.
ATTENTION:3
ALL INDICATORS PUBLISHED BY ME ARE DONE WITH THE INTENT OF (OPEN SOURCE).
YOU MAY NOT USE ANY PORTION OF THIS CODE TO CREATE, MODIFY WITH THE
INTENT TO MONETIZE SOMETHING YOU HAVE NOT CREATED. YOU MAY HOWEVER,
MODIFY, CREATE WITH THE UNDERSTANDING THAT YOUR PUBLISHED VERSION IS CONSIDERED "FREE AND OPEN SOURCE". THESE ARE TO BENEFIT THE COMMUNITY SO WE ALL CAN PROSPER TOGETHER.
THE MANUAL TO THIS CODE IS AVAILABLE BY OPENING THE INDICATOR IN THE PINE EDITOR.
GOOD LUCK CONSTRUCTIONAL FEED BACK IS WARRANTED.
50 EMA Retest Strategy with 100 EMA Trend Filter//@version=6
indicator("50 EMA Retest Strategy with 100 EMA Trend Filter", overlay=true)
// EMA Calculations
ema50 = ta.ema(close, 50) // 50-period EMA for entry retests
ema100 = ta.ema(close, 100) // 100-period EMA for overall trend confirmation
// Bullish Setup (Uptrend with 100 EMA Filter)
bullishTrend = close > ema100 // Price above EMA 100 (overall uptrend)
bullishRetest = low <= ema50 and close > ema50 // Retest and rejection at EMA 50
// Bearish Setup (Downtrend with 100 EMA Filter)
bearishTrend = close < ema100 // Price below EMA 100 (overall downtrend)
bearishRetest = high >= ema50 and close < ema50 // Retest and rejection at EMA 50
// Price Action Confirmation
bullishPinBar = bullishTrend and (close > open) and (low < ema50) and (high - close < (close - low) * 2)
bearishPinBar = bearishTrend and (close < open) and (high > ema50) and (close - low < (high - close) * 2)
// Entry Signals
buySignal = bullishRetest and bullishPinBar
sellSignal = bearishRetest and bearishPinBar
// Plot EMA 50 and EMA 100
plot(ema50, color=color.green, title="EMA 50")
plot(ema100, color=color.blue, title="EMA 100")
// Alerts for Signals
alertcondition(buySignal, title="Buy Signal", message="Buy setup detected at 50 EMA retest with 100 EMA uptrend!")
alertcondition(sellSignal, title="Sell Signal", message="Sell setup detected at 50 EMA retest with 100 EMA downtrend!")
// Visualize Buy/Sell Labels
if buySignal
label.new(bar_index, close, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
if sellSignal
label.new(bar_index, close, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
RGits just ema cross indicator with cycle numbers. its only for least conformation. don't take trades only based by this indicator.
alphaJohnny Dynamic RSI IndicatorAlphaJohnny Dynamic RSI Indicator (Dyn RSI)
The Dynamic RSI Indicator (Dyn RSI) is a custom Pine Script tool designed for TradingView that aggregates Relative Strength Index (RSI) signals from multiple timeframes to provide a comprehensive view of market momentum. It combines RSI data from Weekly, Daily, 4-hour, 1-hour, and 30-minute intervals, offering traders a flexible and customizable way to analyze trends across different periods.
Key Features:
Multi-Timeframe RSI Aggregation: Combines RSI signals from user-selected timeframes for a holistic momentum assessment.
Dynamic or Equal Weighting: Choose between correlation-based dynamic weights (adjusting based on each timeframe’s correlation with price changes) or equal weights for simplicity.
Smoothed Momentum Line: A visually intuitive line that reflects the strength of the aggregate signal, smoothed for clarity.
Color-Coded Signal Strength:
Dark Green: Strong buy signal
Light Green: Weak buy signal
Yellow: Neutral
Light Red: Weak sell signal
Dark Red: Strong sell signal
Visual Markers: Large green triangles at the bottom for strong buy signals and red triangles at the top for strong sell signals.
How to Use:
Apply to Chart: Add the indicator to your TradingView chart (it will appear in a separate pane).
Customize Settings: Adjust inputs like RSI period, signal thresholds, included timeframes, weighting method, and smoothing period to fit your trading style.
Interpret Signals:
Momentum Line: Watch for color changes to gauge market conditions.
Triangles: Green at the bottom for strong buy opportunities, red at the top for strong sell opportunities.
Notes:
The indicator is designed for a separate pane (overlay=false), with triangles positioned relative to the pane’s range.
Fine-tune thresholds and weights based on your strategy and the asset being analyzed.
The source code is open for modification to suit your needs.
This indicator is ideal for traders seeking a multi-timeframe perspective on RSI to identify potential trend reversals and momentum shifts.
Ichimoku Cloud"Script enhanced with negative values. In addition to the standard Lagging Span line settings, negative values have been added which, when set to -9, -26, -52, suggest when to exit short positions in the short, medium, and long term."
Gold Trading Bot with TP/SL//@version=5
indicator("Gold Trading Bot with TP/SL", overlay=true)
// إعداد المؤشرات
lengthEMA = input(50, title="EMA Length") // طول المتوسط المتحرك الأسي
lengthRSI = input(14, title="RSI Length") // طول مؤشر القوة النسبية
overbought = input(70, title="RSI Overbought Level") // مستوى التشبع الشرائي
oversold = input(30, title="RSI Oversold Level") // مستوى التشبع البيعي
// حساب المؤشرات
ema = ta.ema(close, lengthEMA) // حساب المتوسط المتحرك الأسي
rsi = ta.rsi(close, lengthRSI) // حساب مؤشر القوة النسبية
// إشارات الشراء والبيع
buySignal = ta.crossover(rsi, oversold) and close > ema // إشارة شراء
sellSignal = ta.crossunder(rsi, overbought) and close < ema // إشارة بيع
// حساب ATR لتحديد مستويات المخاطرة
atrLength = input(14, title="ATR Length") // طول ATR
atrValue = ta.atr(atrLength) // حساب ATR
// إعدادات جني الأرباح ووقف الخسارة
tpMultiplier = input(2.0, title="Take Profit Multiplier") // مضاعف جني الأرباح
slMultiplier = input(1.0, title="Stop Loss Multiplier") // مضاعف وقف الخسارة
// مستويات جني الأرباح ووقف الخسارة للشراء
longTakeProfit = close + (atrValue * tpMultiplier) // مستوى جني الأرباح للشراء
longStopLoss = close - (atrValue * slMultiplier) // مستوى وقف الخسارة للشراء
// مستويات جني الأرباح ووقف الخسارة للبيع
shortTakeProfit = close - (atrValue * tpMultiplier) // مستوى جني الأرباح للبيع
shortStopLoss = close + (atrValue * slMultiplier) // مستوى وقف الخسارة للبيع
// رسم إشارات الشراء والبيع على الرسم البياني
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")
// رسم مستويات جني الأرباح ووقف الخسارة
plot(buySignal ? longTakeProfit : na, title="Long Take Profit", color=color.green, linewidth=1, style=plot.style_line)
plot(buySignal ? longStopLoss : na, title="Long Stop Loss", color=color.red, linewidth=1, style=plot.style_line)
plot(sellSignal ? shortTakeProfit : na, title="Short Take Profit", color=color.green, linewidth=1, style=plot.style_line)
plot(sellSignal ? shortStopLoss : na, title="Short Stop Loss", color=color.red, linewidth=1, style=plot.style_line)
// رسائل تنبيه
alertcondition(buySignal, title="Buy Alert", message="Gold Buy Signal Detected!")
alertcondition(sellSignal, title="Sell Alert", message="Gold Sell Signal Detected!")