Trading NotesThe "Trading Notes" indicator is a powerful and flexible tool designed to elevate your trading experience by enabling you to effortlessly create, manage, and personalize annotations directly on your trading chart. Whether it's jotting down crucial insights, strategies, risk management rules, or psychological cues, "Trading Notes" ensures that you never miss important details during your trading sessions.
Key Features:
Effortless Annotation: Seamlessly create custom annotations at any position on your chart, ensuring you capture vital trading information in real-time.
Tailored Appearance: Customize your annotations to match your preferences. Adjust text size, color, and alignment to create notes that stand out and are easily readable.
Flexible Positioning: Choose between top, middle, or bottom positions for your annotations, maintaining a clear view of price action while accessing your personalized notes.
Enhanced Focus and Discipline: Maintain trading discipline by keeping track of your trading rules, risk management strategies, and psychological reminders.
Cari dalam skrip untuk "sessions"
Cumulative TICK [Pt]Cumulative TICK Indicator, shown as the bottom indicator, is a robust tool designed to provide traders with insights into market trends using TICK data. This indicator visualizes the cumulative TICK trend in the form of colored columns on a separate chart below the main price chart.
Here's an overview of the key features of the Cumulative TICK Indicator:
1. Selectable TICK Source 🔄: The indicator allows users to choose from four different TICK data sources, namely USI:TICK , USI:TICKQ , USI:TICKI , and $USI:TICKA.
2. TICK Data Type Selection 🎚️: Users can select the type of TICK data to be used. The options include: Close, Open, hl2, ohlc4, hlc3.
3. Optional Simple Moving Average (SMA) 📊: The indicator offers an option to apply an SMA to the Cumulative TICK values, with a customizable length.
4. After-hour Background Color 🌙: The background color changes during after-hours to provide a clear distinction between regular and after-hour trading sessions.
🛠️ How it Works:
The Cumulative TICK Indicator uses TICK data accumulated during the regular market hours (9:30-16:00) as per the New York time zone. At the start of a new session or at the end of the regular session, this cumulative TICK value is reset.
The calculated Cumulative TICK is plotted in a column-style graph. If the SMA is applied, the SMA values are used for the column plots instead. The columns are colored green when the Cumulative TICK is positive and red when it is negative. The shades of green and red vary based on whether the Cumulative TICK is increasing or decreasing compared to the previous value.
This is a simple yet powerful tool to track market sentiment throughout the day using TICK data. Please note that this indicator is intended to be used as part of a comprehensive trading strategy. Always ensure you are managing risk appropriately and consulting various data sources to make informed trading decisions.
VWAP Open Session Anchored by HampehThe VWAP Open Session Anchored indicator differs from traditional VWAP indicators by automatically anchoring the Volume Weighted Average Price calculation to three market session starts Morning, Evening, and Night. Each session represents a distinct time period within the trading day, offering traders and investors a more comprehensive view of the volume-weighted average price within specific sessions.
What Is the Volume-Weighted Average Price (VWAP)?
The volume-weighted average price (VWAP) is a technical analysis indicator used on intraday charts that resets at the start of every new trading session.
VWAP is important because it provides traders with pricing insight into both the trend and value of a security.
KEY TAKEAWAYS
1. The volume-weighted average price (VWAP) is a single line on intraday charts.
2. It looks similar to a moving average line but smoother.
3. VWAP represents a view of price action throughout a single day's trading session.
4. Retail and professional traders may use the VWAP to help them determine intraday price trends.
5. VWAP typically is most useful to short-term traders.
VWAP is calculated by totaling the dollars traded for every transaction (price multiplied by the volume) and then dividing by the total shares traded.
VWAP = Cumulative Typical Price x Volume/Cumulative Volume
Where Typical Price = High price + Low price + Closing Price/3
Cumulative = total since the trading session opened.
How Is VWAP Used?
VWAP is used in different ways by traders. Traders may use VWAP as a trend confirmation tool and build trading rules around it. For instance, they may consider stocks with prices below VWAP as undervalued and those with prices above it, as overvalued. If prices below VWAP move above it, traders may go long on the stock. If prices above VWAP move below it, they may sell their positions or initiate short positions.
Institutional buyers including mutual funds use VWAP to help move into or out of stocks with as small of a market impact as possible. Therefore, when they can, institutions will try to buy below the VWAP or sell above it. This way their actions push the price back toward the average, instead of away from it.
Source: www.investopedia.com
ICT MacrosThis script allows traders to visualize the range of time when a macro (an automated series of instructions/trades from large fund traders, executed by an algorithm) will likely occur in the market. It does this by drawing vertical lines and labels on the chart at these specific times:
(Macro Open) - 9:50 AM EST
(Macro Close) - 10:10 AM EST
(Macro Open) - 10:50 AM EST
(Macro Close) - 11:10 AM EST
(Macro Open) - 1:10 PM EST
(Macro Close) - 1:40 PM EST
(Macro Open) - 3:15 PM EST
(Macro Close) - 3:45 PM EST
The theory behind the use of these macros - is that the market will either seek buy side or sell side liquidity, or seek to rebalance price at a point of interest in between the open and close of the macro. Traders who follow this theory can use that information to anticipate how price might behave.
When a macro occurs, the script draws a vertical line on the chart using a dotted line style with a user-defined color. Additionally, a label is placed above the line to indicate whether it is a Macro Open or Macro Close event.
To preserve space, the labels are abbreviated on chart - "Macro Open" (M.O.) and "Macro Close" (M.C.) for both the morning and afternoon trading sessions. The labels may be turned on/off by the user.
The script also includes alerts that can notify traders when a macro occurs. These alerts can be set to go off once per bar close, and the alert message indicates the specific macro type and time.
This script is entirely open-source, meaning that traders can read the code and modify it as needed. Credit to the foundation of this script goes to TradingView user @rickyzcarroll for his open source Strat Assistant Hour Flip script. Important changes include the specific time changes and alert function.
Distribution DaysWhat is Distribution Day?
A distribution day is when a market representative index (for example, Nifty 50) loses more than 0.2 percent in a day, with volume higher than that of the previous session.
When a distribution day occurs, it hints that big institutional investors are exiting or reducing their positions in the market. Institutional activity is what moves any market, especially in India where retail participation is small.
How does it help in sensing market weakness?
When the market is in an uptrend, the intensity of market weakness is determined by the distribution day count. An investor keeps count of all valid distribution days (as per above definition) during an uptrend.
A distribution day count of 2-3 is benign and usually normal in an uptrend. But when the count goes to 5-6, one should prepare to get his/her positions trimmed.
Distribution Day Expiry:
ven though a distribution day hints that institutions may be liquidating their positions, it loses its impact after 25 trading sessions. A distribution day is also removed from the count after the index rallies 5 percent above that day’s close.
Rolling MACDThis indicator displays a Rolling Moving Average Convergence Divergence . Contrary to MACD indicators which use a fix time segment, RMACD calculates using a moving window defined by a time period (not a simple number of bars), so it shows better results.
This indicator is inspired by and use the Close & Inventory Bar Retracement Price Line to create an MACD in different timeframes.
█ CONCEPTS
If you are not already familiar with MACD, so look at Help Center will get you started www.tradingview.com
The typical MACD, short for moving average convergence/divergence, is a trading indicator used in technical analysis of stock prices, created by Gerald Appel in the late 1970s. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.
The MACD indicator(or "oscillator") is a collection of three time series calculated from historical price data, most often the closing price. These three series are: the MACD series proper, the "signal" or "average" series, and the "divergence" series which is the difference between the two. The MACD series is the difference between a "fast" (short period) exponential moving average (EMA), and a "slow" (longer period) EMA of the price series. The average series is an EMA of the MACD series itself.
Because RMACD uses a moving window, it does not exhibit the jumpiness of MACD plots. You can see the more jagged MACD on the chart above. I think both can be useful to traders; up to you to decide which flavor works for you.
█ HOW TO USE IT
Load the indicator on an active chart (see the Help Center if you don't know how).
Time period
By default, the script uses an auto-stepping mechanism to adjust the time period of its moving window to the chart's timeframe. The following table shows chart timeframes and the corresponding time period used by the script. When the chart's timeframe is less than or equal to the timeframe in the first column, the second column's time period is used to calculate RMACD:
Chart Time
timeframe period
1min 🠆 1H
5min 🠆 4H
1H 🠆 1D
4H 🠆 3D
12H 🠆 1W
1D 🠆 1M
1W 🠆 3M
You can use the script's inputs to specify a fixed time period, which you can express in any combination of days, hours and minutes.
By default, the time period currently used is displayed in the lower-right corner of the chart. The script's inputs allow you to hide the display or change its size and location.
Minimum Window Size
This input field determines the minimum number of values to keep in the moving window, even if these values are outside the prescribed time period. This mitigates situations where a large time gap between two bars would cause the time window to be empty, which can occur in non-24x7 markets where large time gaps may separate contiguous chart bars, namely across holidays or trading sessions. For example, if you were using a 1D time period and there is a two-day gap between two bars, then no chart bars would fit in the moving window after the gap. The default value is 10 bars.
//
This indicator should make trading easier and improve analysis. Nothing is worse than indicators that give confusingly different signals.
I hope you enjoy my new ideas
best regards
Chervolino
Seasonality - Session Performance - Morning Afternoon EveningUse this indicator on Intraday Timeframe. Higher the timeframe, more the data
This script calculates the performance of an instrument for different sessions.
Session inputs can be updated to study performance of
- Morning vs Afternoon vs Evening
- Pre-Market vs Market vs Post-Market (provided the data feed supports pre and post market)
- Overnight vs Intraday
Three session inputs are provided to tweak the session range
Performance is calculated as session close / session open - 1
Session timeframes can be set for various countries. Make sure the session timeframe aligns with the Candle open/close for the timeframe you choose. Some examples below
US Markets: 0930-1130 1130-1430 1430-1630 Timeframe 1 hour
India Markets: 0915-1030 1030-1415 1415-15:30 Timeframe 75min
TPO Market Profile [Kioseff Trading]REPOST; SCRIPT WORKS!!
Due to technical error, this script was republished! Thank you for your support (:
Hello!
This indicator comprises a real time TPO Market Profile!
The script works on any timeframe 1 second or greater - the script calculates relative to the timeframe selected for your chart.
The image above shows the 1-minute BTCUSD chart; 650 +/- tick levels are set.
To see the script in full functionality - try using bar replay on a cryptocurrency 1-minute chart (start at the beginning of a regular hours session). Be sure to adjust the tick spread if necessary (:
So far, the script's held up in real time - I've not had any array loop errors or timeouts. The TPO profile updates accordingly with changes in time / high and low prices. Letters are appended to the profile in real time.
The image above shows configurations for the indicator. I plan to update the indicator quite a bit over the coming days - more to come.
You can select the timeframe change the indicator accounts for. For instance, you can have set the indicator to reset every day, every 30 minutes, every 5 minutes, every week, month, etc.
In the image above, I configured the indicator to recalculate every 3 months. Consequently, the indicator will record a TPO profile for three consecutive, reset, then record a TPO profile for the next 3 months. This setting makes the indicator compatible with any timeframe greater than 1 minute.
You can also use a drag & drop time-start bar to modify the starting point for the market profile TPO calculation.
The indicator hosts an option to auto calculate the tick spread between levels. However, as you switch timeframes and assets, sometimes, you'll have to manually set the tick range (:
Thanks for checking it out; more to come!
Sep 4
Release Notes: UPDATE: The indicator can work on seconds-based charts.
The image above shows the indicator working on the 1-second chart.
(Screenshot is old; characters are now numbered instead of strange unicode)
Release Notes: Added value area + vah + val. Font update. Changed characters to numbered once the alphabet is exhausted. POC, VAH, and VAL label located left of the first bar of the interval. Initial balance range can be toggled. Spaced the characters (more legible). Quite a bit of aesthetic changes so check it out!
Soon, I'll release a version of the script that shows VAH, POC, VAL, and TPO letters from previous sessions. I coded this feature into this indicator; however, it was removed due to load time complications. This feature will be its own script (:
If the script has trouble loading please let me know (:
Hotch SessionSimple Session timer with separate session for Asia, Europe, and the Americas plus an extra custom session timer. each can be turned on and off separately.
The indicator also plots the highs and lows of each session.
This code was modified from the Session timer code found in the original "The Arty" by PheonixBinary but expanded to better include all trading sessions.
The code was written in a manner to be as compact as possible. I had looked at many other Session timers and found entire input sections that were longer than the entirety of this indicator.
Please feel free to use this code in any manner you choose permission not required.
SGX Nifty Movement During Indian Market HoursSGX Nifty or Singapore Nifty is a derivative contract of the Nifty 50 index which is the benchmark index of NSE in India. SGX Nifty trades for 21 hours in a day while Nifty 50 trades only for 6 hours and 15 minutes. Traders in India miss out on a lot of price action which happens on the Singapore Nifty. This code which is originally inspired from @Gustavorubi has been modified to track SGX Nifty's movements outside Indian market hours. This will help intraday traders to identify support and resistance levels which are not seen on Nifty 50 futures.
This source code is inspired from GustavoRubi's code on FX Sessions.
Straight Trend V1Hello everyone,
We are proud to present you our "Straight Trend" Strategy.
Strategy is use a specified timeline's opening price as reference and draw a line between the current price and trend line.
Trend line is smoothed with last X times of highest and lowest values ( Donchian Methodology) in order to create less noise and fake alerts , therefore creates a channel of current prices time based opening price.
The timeline can be adjusted according to your specifications in the settings.
------
Why opening price ?
We are traders ,no matter what we do ,we always make a benchmark at the end of a day , week or at the end of a specified time line.
Example :
X commodity's price increased %15 in last days or Y commodity's price dropped %30 in last 2 weeks etc. etc.
Thats why the opening price have a hidden and much more important role in our trading sessions.
------
After the channel is created we remove the unnecessary lines from our output by filtering the direction with closing price.
IF the closing price is higher than Chanel reference price and direction goes upward the script gives you a BUY signal.
The same methodology is applied for SELL operations.
When to Take Profit?
We put a setting for profit percentage in scripts setting you can adjust the ratio as your choices.
When to Stop Loss or change direction of the trade?
The Straight Trends previously mentioned channel's inverse line was set as STOP LOSS and direction changer in the strategy with "STR-X" Marker.
Note : Strategy is much more effective with heikin-ashi bars due methodology of heikin ashi and with this bars it creates less signals with more accuracy, use at your own discretion.
Please don't hesitate to write us if you need support or assistance, we also appreciate your feedbacks.
Please be advised that this strategy is published with Educational Purposes and it is not a investment advice.
Thank you in advance.
Rolling VWAP█ OVERVIEW
This indicator displays a Rolling Volume-Weighted Average Price. Contrary to VWAP indicators which reset at the beginning of a new time segment, RVWAP calculates using a moving window defined by a time period (not a simple number of bars), so it never resets.
█ CONCEPTS
If you are not already familiar with VWAP, our Help Center will get you started.
The typical VWAP is designed to be used on intraday charts, as it resets at the beginning of the day. Such VWAPs cannot be used on daily, weekly or monthly charts. Instead, this rolling VWAP uses a time period that automatically adjusts to the chart's timeframe. You can thus use RVWAP on any chart that includes volume information in its data feed.
Because RVWAP uses a moving window, it does not exhibit the jumpiness of VWAP plots that reset. You can see the more jagged VWAP on the chart above. We think both can be useful to traders; up to you to decide which flavor works for you.
█ HOW TO USE IT
Load the indicator on an active chart (see the Help Center if you don't know how).
Time period
By default, the script uses an auto-stepping mechanism to adjust the time period of its moving window to the chart's timeframe. The following table shows chart timeframes and the corresponding time period used by the script. When the chart's timeframe is less than or equal to the timeframe in the first column, the second column's time period is used to calculate RVWAP:
Chart Time
timeframe period
1min 🠆 1H
5min 🠆 4H
1H 🠆 1D
4H 🠆 3D
12H 🠆 1W
1D 🠆 1M
1W 🠆 3M
You can use the script's inputs to specify a fixed time period, which you can express in any combination of days, hours and minutes.
By default, the time period currently used is displayed in the lower-right corner of the chart. The script's inputs allow you to hide the display or change its size and location.
Minimum Window Size
This input field determines the minimum number of values to keep in the moving window, even if these values are outside the prescribed time period. This mitigates situations where a large time gap between two bars would cause the time window to be empty, which can occur in non-24x7 markets where large time gaps may separate contiguous chart bars, namely across holidays or trading sessions. For example, if you were using a 1D time period and there is a two-day gap between two bars, then no chart bars would fit in the moving window after the gap. The default value is 10 bars.
█ NOTES
If you are interested in VWAP indicators, you may find the VWAP Auto Anchored built-in indicator worth a try.
For Pine Script™ coders
The heart of this script's calculations uses the `totalForTimeWhen()` function from the ConditionalAverages library published by PineCoders . It works by maintaining an array of values included in a time period, but without a for loop requiring a lookback from the current bar, so it is much more efficient.
We write our Pine Script™ code using the recommendations in the User Manual's Style Guide .
Look first. Then leap.
ConditionalAverages█ OVERVIEW
This library is a Pine Script™ programmer’s tool containing functions that average values selectively.
█ CONCEPTS
Averaging can be useful to smooth out unstable readings in the data set, provide a benchmark to see the underlying trend of the data, or to provide a general expectancy of values in establishing a central tendency. Conventional averaging techniques tend to apply indiscriminately to all values in a fixed window, but it can sometimes be useful to average values only when a specific condition is met. As conditional averaging works on specific elements of a dataset, it can help us derive more context-specific conclusions. This library offers a collection of averaging methods that not only accomplish these tasks, but also exploit the efficiencies of the Pine Script™ runtime by foregoing unnecessary and resource-intensive for loops.
█ NOTES
To Loop or Not to Loop
Though for and while loops are essential programming tools, they are often unnecessary in Pine Script™. This is because the Pine Script™ runtime already runs your scripts in a loop where it executes your code on each bar of the dataset. Pine Script™ programmers who understand how their code executes on charts can use this to their advantage by designing loop-less code that will run orders of magnitude faster than functionally identical code using loops. Most of this library's function illustrate how you can achieve loop-less code to process past values. See the User Manual page on loops for more information. If you are looking for ways to measure execution time for you scripts, have a look at our LibraryStopwatch library .
Our `avgForTimeWhen()` and `totalForTimeWhen()` are exceptions in the library, as they use a while structure. Only a few iterations of the loop are executed on each bar, however, as its only job is to remove the few elements in the array that are outside the moving window defined by a time boundary.
Cumulating and Summing Conditionally
The ta.cum() or math.sum() built-in functions can be used with ternaries that select only certain values. In our `avgWhen(src, cond)` function, for example, we use this technique to cumulate only the occurrences of `src` when `cond` is true:
float cumTotal = ta.cum(cond ? src : 0) We then use:
float cumCount = ta.cum(cond ? 1 : 0) to calculate the number of occurrences where `cond` is true, which corresponds to the quantity of values cumulated in `cumTotal`.
Building Custom Series With Arrays
The advent of arrays in Pine has enabled us to build our custom data series. Many of this library's functions use arrays for this purpose, saving newer values that come in when a condition is met, and discarding the older ones, implementing a queue .
`avgForTimeWhen()` and `totalForTimeWhen()`
These two functions warrant a few explanations. They operate on a number of values included in a moving window defined by a timeframe expressed in milliseconds. We use a 1D timeframe in our example code. The number of bars included in the moving window is unknown to the programmer, who only specifies the period of time defining the moving window. You can thus use `avgForTimeWhen()` to calculate a rolling moving average for the last 24 hours, for example, that will work whether the chart is using a 1min or 1H timeframe. A 24-hour moving window will typically contain many more values on a 1min chart that on a 1H chart, but their calculated average will be very close.
Problems will arise on non-24x7 markets when large time gaps occur between chart bars, as will be the case across holidays or trading sessions. For example, if you were using a 24H timeframe and there is a two-day gap between two bars, then no chart bars would fit in the moving window after the gap. The `minBars` parameter mitigates this by guaranteeing that a minimum number of bars are always included in the calculation, even if including those bars requires reaching outside the prescribed timeframe. We use a minimum value of 10 bars in the example code.
Using var in Constant Declarations
In the past, we have been using var when initializing so-called constants in our scripts, which as per the Style Guide 's recommendations, we identify using UPPER_SNAKE_CASE. It turns out that var variables incur slightly superior maintenance overhead in the Pine Script™ runtime, when compared to variables initialized on each bar. We thus no longer use var to declare our "int/float/bool" constants, but still use it when an initialization on each bar would require too much time, such as when initializing a string or with a heavy function call.
Look first. Then leap.
█ FUNCTIONS
avgWhen(src, cond)
Gathers values of the source when a condition is true and averages them over the total number of occurrences of the condition.
Parameters:
src : (series int/float) The source of the values to be averaged.
cond : (series bool) The condition determining when a value will be included in the set of values to be averaged.
Returns: (float) A cumulative average of values when a condition is met.
avgWhenLast(src, cond, cnt)
Gathers values of the source when a condition is true and averages them over a defined number of occurrences of the condition.
Parameters:
src : (series int/float) The source of the values to be averaged.
cond : (series bool) The condition determining when a value will be included in the set of values to be averaged.
cnt : (simple int) The quantity of last occurrences of the condition for which to average values.
Returns: (float) The average of `src` for the last `x` occurrences where `cond` is true.
avgWhenInLast(src, cond, cnt)
Gathers values of the source when a condition is true and averages them over the total number of occurrences during a defined number of bars back.
Parameters:
src : (series int/float) The source of the values to be averaged.
cond : (series bool) The condition determining when a value will be included in the set of values to be averaged.
cnt : (simple int) The quantity of bars back to evaluate.
Returns: (float) The average of `src` in last `cnt` bars, but only when `cond` is true.
avgSince(src, cond)
Averages values of the source since a condition was true.
Parameters:
src : (series int/float) The source of the values to be averaged.
cond : (series bool) The condition determining when the average is reset.
Returns: (float) The average of `src` since `cond` was true.
avgForTimeWhen(src, ms, cond, minBars)
Averages values of `src` when `cond` is true, over a moving window of length `ms` milliseconds.
Parameters:
src : (series int/float) The source of the values to be averaged.
ms : (simple int) The time duration in milliseconds defining the size of the moving window.
cond : (series bool) The condition determining which values are included. Optional.
minBars : (simple int) The minimum number of values to keep in the moving window. Optional.
Returns: (float) The average of `src` when `cond` is true in the moving window.
totalForTimeWhen(src, ms, cond, minBars)
Sums values of `src` when `cond` is true, over a moving window of length `ms` milliseconds.
Parameters:
src : (series int/float) The source of the values to be summed.
ms : (simple int) The time duration in milliseconds defining the size of the moving window.
cond : (series bool) The condition determining which values are included. Optional.
minBars : (simple int) The minimum number of values to keep in the moving window. Optional.
Returns: (float) The sum of `src` when `cond` is true in the moving window.
Ultimate Time Filter V1The only time filter that you will ever need.
Easily filter for:
--> Start/End Dates
--> Weekdays
--> 1 or 2 Daily Trade Sessions.
This is open source on purpose so you can enjoy ease of use on your own codes. Simply copy the code and use the variable "inTime" to filter bars that fit your time constraints.
I spent a lot more time on this than I'd like to admit but so be it. Any comments for improvements, or questions on how to use the script is appreciated. Or if you wanna chat about trading / pine script hit me up on Discord.
Cheers
Session Volatility CalculatorHey traders!
This script calculates the average volatility of trading sessions.
You specify a start date, an end date, and a session time (eg. market open, Asian session etc)
The script then scans through all the price action on your chart and calculates the average price movement during that specified period.
What Is It For?
I created this script for my own purposes when developing certain strategies and testing certain ideas.
The purpose of this script is to give you an idea of how much price tends to move during certain times of day for certain markets.
You could think of it as a "session's average true range".
In crypto and forex this might be how much price tends to move on certain pairs during the Australian/Asian session, or the European session, or the overnight U.S. session etc.
In stocks this might be how much a symbol tends to move during the first hour of the day or the last hour of the day.
The point of calculating this information is for better understanding how markets move during certain times of day.
It's not a perfect science obviously since some days can be wilder than others depending on what fundamental events are developing, but it's useful information to have for times when there are no expected volatility-inducing events.
This info can help with optimizing targets and stop loss placement for certain day-trading strategies, and just generally getting an idea of what kinds of moves you might reasonably expect out of overnight positions or certain times of day etc - or at least that's what I use it for.
Settings
Hover your mouse over the "i" symbol to get more information on the script's settings, but here's a brief description:
Start Date: The date to begin calculating from (set to 1000 by default so it scans the entire chart).
End Date: The date to stop calculating (set to 2099 by default so it scans the entire chart)
Time Session: This is the time session during the day that you want to analyze.
Color Background: If turned on, this setting changes the background color to highlight the session.
Indicator Values
The indicator outputs a handful of values onto your chart. This is what the colors correspond to:
Top-Right Box: The average price range during the given time of day over historical price action.
Green Number: The recent session's highest price.
Red Number: The recent session's lowest price.
Purple Number: The recent session's price range (high - low).
Orange Number: The recent session's range ÷ the average (outputs a relative % of the average).
[RickAtw] O1 Opening Market LineThis indicator helps to identify current support and resistance based on the opening of the Asian, London and New York sessions.
Function
You can make good trade entries based on these lines. Shows daily and weekly openings of each session
It will also help you to look at which session you are currently trading)
Purple ----> Asian session
Red ----> London session
Blue ----> New York session
Key Signal
buy ---> A strong buy signal is a bounce from the low and the presence of a weekly or day open line.
sell ---> A strong sell signal is a bounce from the maximum and the presence of a weekly or day open line.
P.S. Be sure to test on your pair!
Remarks
This will help you determine the approximate area of support and resistance.
Since we cannot look into the future, it does not inform you about the exact records, but a possible change in trends.
Readme
In real life, I am a professional investor. And I check each of my indicators on my portfolio and how effective it is. I will not post a non-working method. The main thing is to wait for the beginning of trends and make money!
I would be grateful if you subscribe ❤️
A Multi 10 indicatorREAD NOTE BEFORE APPLYING or you may think indicator doesnt work.
This indicator is a revise of another i made and contains 10 Optional Indicators allowing you to load more then 3 indicators at once if you so choose and dont pay for the platform!
Hopefully someone will find use for this script besides me :) I dont suggest turning all on at once because it
will not look right. Alot will overlap if you wish but i only use the Session and trend bar at once in
conjuction with a Oscillator setting like MacD , RSI , Stoch , Aroon or CCI .
In the chart you see i only have a few indicators active ENJOY!!
---------- NOTE ----------- ( Everything is OFF by default and indicator SHOULD show up BLANK when loaded) ------------ NOTE -------------
(Can turn EVERYTHING on AND change any values in the format tab once indicator loads)
NY session, Aussie session, Asian session, and Europe market sessions.
MacD Split Colored , aroon oscillator
CCI Oscillator , classic aroon
RSI Oscillator , Elliot wave
Stoch RSI Oscillator
Aroon Oscillator
My own Trend bar
---------- NOTE ----------- ( Everything is OFF by default and indicator SHOULD show up BLANK when loaded) ------------ NOTE -------------
(Can turn EVERYTHING on AND change any values in the format tab once indicator loads) CODE probably looks messey but this is something i made for me so i didnt really care lol
[TupTrader] prev candle of Opening session✅ Session Key Levels + Daily Zones
This smart indicator automatically marks the key levels from the previous candle before the opening of each main trading session — Asia, London, and New York — along with the previous daily candle levels. These levels are critical for price reaction, support/resistance, and session-based breakouts or reversals.
🧠 What does it do?
Detects and plots the previous candle before each session (Asia, London, New York)
Automatically draws:
High/Low/Open/Close of that candle
Optional body/fibonacci levels (25%, 50%, 75% or 23.6%, 38.2%, 61.8%)
Box zones to visualize the session range
Highlights the previous daily OHLC and key levels
🚨 Built-in alerts for touches on key session and daily levels
Fully customizable: colors, font size, levels visibility, and session times
💡 How to Use It?
Scalping or Intraday: Look for price reactions around session levels.
Breakout Strategy: Wait for price to break session highs/lows with volume.
Reversals: Watch for fakeouts around previous session or daily zones.
Use it with trend tools (e.g., EMA or structure) for confluence.
These levels act like a roadmap of market structure and liquidity. Perfect for day traders, scalpers, and session-based traders.
🔥 Smart Money Entry Bot (ICT Style)//@version=5
indicator("🔥 Smart Money Entry Bot (ICT Style)", overlay=true)
// === INPUTS ===
liqLookback = input.int(15, title="Liquidity Lookback Period")
useEngulfing = input.bool(true, title="Use Engulfing Candle Confirmation")
useFVG = input.bool(false, title="Use FVG Confirmation (Experimental)")
sessionFilter = input.bool(true, title="Only Trade During London & NY Sessions")
stopLossPerc = input.float(0.5, title="Stop Loss (%)", step=0.1)
takeProfitPerc = input.float(1.5, title="Take Profit (%)", step=0.1)
// === TIME FILTER ===
inSession = not sessionFilter or (time(timeframe.period, "0930-1130") or time(timeframe.period, "0300-0600"))
// === LIQUIDITY SWEEP ===
highestHigh = ta.highest(high, liqLookback)
lowestLow = ta.lowest(low, liqLookback)
sweptHigh = high > highestHigh
sweptLow = low < lowestLow
// === ENGULFING ===
bullishEngulfing = close > open and open < close and close > open
bearishEngulfing = close < open and open > close and close < open
// === BOS Logic (Mock: strong move in opposite direction after sweep) ===
bosDown = sweptHigh and close < close
bosUp = sweptLow and close > close
// === Fair Value Gap (Experimental) ===
fvgBull = low > high and low > high
fvgBear = high < low and high < low
// === ENTRY CONDITIONS ===
longEntry = sweptLow and bosUp and inSession and (not useEngulfing or bullishEngulfing) and (not useFVG or fvgBull)
shortEntry = sweptHigh and bosDown and inSession and (not useEngulfing or bearishEngulfing) and (not useFVG or fvgBear)
// === PLOT SIGNALS ===
plotshape(longEntry, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === ALERTS ===
alertcondition(longEntry, title="BUY Signal", message="BUY signal confirmed by Smart Money Bot")
alertcondition(shortEntry, title="SELL Signal", message="SELL signal confirmed by Smart Money Bot")
// === STOP LOSS / TAKE PROFIT LEVELS (Visual) ===
slLong = longEntry ? close * (1 - stopLossPerc / 100) : na
tpLong = longEntry ? close * (1 + takeProfitPerc / 100) : na
slShort = shortEntry ? close * (1 + stopLossPerc / 100) : na
tpShort = shortEntry ? close * (1 - takeProfitPerc / 100) : na
plot(slLong, color=color.red, style=plot.style_linebr, title="SL Long")
plot(tpLong, color=color.green, style=plot.style_linebr, title="TP Long")
plot(slShort, color=color.red, style=plot.style_linebr, title="SL Short")
plot(tpShort, color=color.green, style=plot.style_linebr, title="TP Short")
Trend TraderDescription and Usage of the "Trend Trader" Indicator
The "Trend Trader" indicator, created by Gerardo Mercado as a legacy project, is a versatile trading tool designed to identify potential buy and sell signals across various instruments. While it provides predefined settings for popular instruments like US30, NDX100, GER40, and GOLD, it can be seamlessly adapted to any market, including forex pairs like EUR/USD. The indicator combines moving averages, time-based filters, and MACD confirmation to enhance decision-making for traders.
How It Works
Custom Moving Averages (MAs):
The indicator uses two moving averages:
Short MA: A faster-moving average (default: 10 periods).
Long MA: A slower-moving average (default: 100 periods).
Buy signals are generated when the Short MA crosses above the Long MA.
Sell signals are triggered when the Short MA crosses below the Long MA.
Time-Based Signals:
The user can define specific trading session times (start and end in UTC) to focus on high-activity periods for their chosen market.
Signals and background coloring are only active during the allowed session times.
MACD Confirmation:
A MACD (Moving Average Convergence Divergence) calculation on a 15-minute timeframe ensures stronger confirmation for signals.
Buy signals require the MACD line to be above the signal line.
Sell signals require the MACD line to be at or below the signal line.
Target Levels:
Predefined profit targets are dynamically set based on the selected trading instrument.
While it includes settings for US30, NDX100, GER40, and GOLD, the target levels can be adjusted to fit the volatility and structure of any asset, including forex pairs like EUR/USD.
Target 1 and Target 2 levels display when these thresholds are met after an entry signal.
Adaptability to Any Market:
Although predefined options are included for specific instruments, the indicator's moving averages, time settings, and MACD logic are applicable to any tradable asset, making it suitable for forex, commodities, indices, and more.
Visual Alerts:
Labels appear on the chart to highlight "BUY" and "SELL" signals at crossover points.
Additional labels indicate when price movements reach the predefined target levels.
Bar and background coloring visually represent active signals and MACD alignment.
Purpose
The indicator aims to simplify trend-following and momentum-based trading strategies. By integrating moving averages, MACD, customizable time sessions, and dynamic targets, it offers clear entry and exit points while being adaptable to the needs of individual traders across diverse markets.
How to Use
Setup:
Add the indicator to your TradingView chart.
Configure the moving average periods, trading session times, and target levels according to your preferences.
Select the instrument for predefined target settings or customize them to fit the asset you’re trading (e.g., EUR/USD or other forex pairs).
Interpreting Signals:
Buy Signal: The Short MA crosses above the Long MA, MACD confirms the upward trend, and the session is active.
Sell Signal: The Short MA crosses below the Long MA, MACD confirms the downward trend, and the session is active.
Adapt for Any Instrument:
Adjust the predefined target levels to match the volatility and trading style for your chosen asset.
For forex pairs like EUR/USD, consider typical pip movements to set appropriate profit targets.
Targets:
Use the provided target labels (e.g., 50 or 100 points) or customize them to reflect realistic profit goals based on the asset’s volatility.
Visual Aids:
Pay attention to the background color:
Greenish: Indicates a bullish trend during the allowed session.
Redish: Indicates a bearish trend during the allowed session.
Use the "BUY" and "SELL" labels for actionable insights.
This indicator is a flexible and powerful tool, suitable for traders across all markets. Its adaptability ensures that it can enhance your strategy, whether you’re trading forex, commodities, indices, or other assets. By offering actionable alerts and customizable settings, the "Trend Trader" serves as a valuable addition to any trader’s toolkit. FX:EURUSD
Day of Week Highlighter# 📅 Day of Week Highlighter - Global Market Edition
**Enhanced visual trading tool that highlights each day of the week with customizable colors across all major global financial market timezones.**
## 🌍 Global Market Coverage
This indicator supports **27 major financial market timezones**, including:
- **Asia-Pacific**: Tokyo, Sydney, Hong Kong, Singapore, Shanghai, Seoul, Mumbai, Dubai, Auckland (New Zealand)
- **Europe**: London, Frankfurt, Zurich, Paris, Amsterdam, Moscow, Istanbul
- **Americas**: New York, Chicago, Toronto, São Paulo, Buenos Aires
- **Plus UTC and other key financial centers**
## ✨ Key Features
### 🎨 **Fully Customizable Colors**
- Individual color picker for each day of the week
- Transparent overlays that don't obstruct price action
- Professional color scheme defaults
### 🌐 **Comprehensive Timezone Support**
- 27 major global financial market timezones
- Automatic daylight saving time adjustments
- Perfect for multi-market analysis and global trading
### ⚙️ **Flexible Display Options**
- Toggle individual days on/off
- Optional day name labels with size control
- Clean, professional appearance
### 📊 **Trading Applications**
- **Market Session Analysis**: Identify trading patterns by day of week
- **Multi-Market Coordination**: Track different markets in their local time
- **Pattern Recognition**: Spot day-specific market behaviors
- **Risk Management**: Avoid trading on historically volatile days
## 🔧 How to Use
1. **Add to Chart**: Apply the indicator to any timeframe
2. **Select Timezone**: Choose your preferred market timezone from the dropdown
3. **Customize Colors**: Set unique colors for each day in the settings panel
4. **Enable/Disable Days**: Toggle specific days on or off as needed
5. **Optional Labels**: Show day names with customizable label sizes
## 💡 Pro Tips
- Use different color intensities to highlight your preferred trading days
- Combine with other session indicators for comprehensive market timing
- Perfect for swing traders who want to identify weekly patterns
- Ideal for international traders managing multiple market sessions
## 🎯 Perfect For
- Day traders tracking intraday patterns
- Swing traders analyzing weekly cycles
- International traders managing multiple markets
- Anyone wanting better visual organization of their charts
**Works on all timeframes and instruments. Set it once, trade with confidence!**
---
*Compatible with Pine Script v6 | No repainting | Lightweight performance*
PAHelperFrameworkPAHelperFramework is a comprehensive Pine Script™ library designed to power price action trading tools with advanced logic, drawing operations, and timeframe-aware structures. It serves as a foundational building block for indicators and strategies that require dynamic price analysis and visualization.
🔧 Key Features:
Multi-Timeframe Candle Management
Get OHLC, pivots, and ATR values for any timeframe and manage synchronized historical data arrays.
Clean Zone Detection
Identify zones of consecutive bullish or bearish candles, automatically draw boxes, and raise alerts when they are invalidated or revisited.
Smart Level Handling
Track support/resistance levels with metadata, including tap status, number of breaches, pivot source, and time-based properties.
Session Visualization
Dynamically draw sessions (e.g., London, NY) with optional colored fill and support for up to 4 distinct time ranges.
Psychological Levels Engine
Auto-detect round numbers based on symbol type and price, draw levels with tolerance control and deduplication.
Gap Tracking
Detect and draw price gaps, monitor closures, and automatically extend or remove them over time.
Bias Candle Representation
Convert candles into table cell heatmaps for a visual representation of directional bias.
Customizable Alert Zones
Set and monitor breakout levels, with smart alerts and label notifications for proximity and confirmation.
Flexible Parameter Overrides
Supports parameter injection via strings, allowing dynamic reconfiguration of inputs (useful for template reusability).
🛠️ Ideal For:
Script developers who need reusable structures for multi-timeframe price action logic
Power users building tools for clean zones, breakouts, gaps, and session-based analysis
Traders looking to visualize market structure with dynamically maintained visual aids
🧱 Technical Highlights:
Written in Pine Script™ v6
Includes 20+ exported types and functions
Modular, readable structure to plug into any custom indicator or strategy
Built-in support for different instrument types: Forex, Stocks, Futures, Crypto, etc.
Weekend Background Highlighter (UTC+12)## Weekend Background Highlighter (UTC+12)
### Description
This indicator automatically highlights weekend periods on your TradingView charts specifically for the UTC+12 timezone (New Zealand Standard Time). Perfect for traders who need to visualize market closures and weekend gaps in the New Zealand/Pacific time zone, regardless of their exchange's native timezone or chart settings.
### Key Features
- **Fixed UTC+12 Timezone**: Hardcoded to always show weekends according to UTC+12, independent of exchange or chart timezone settings
- **Customizable Appearance**: Adjust background color and opacity to match your chart theme
- **Optional Weekend Labels**: Mark the beginning of each weekend period with customizable labels
- **Debug Mode**: View real-time timezone calculations to verify correct weekend detection
- **Lightweight**: Minimal performance impact with efficient calculations
### Use Cases
- **Forex Traders**: Identify weekend gaps and Monday openings in NZD pairs
- **Cryptocurrency Traders**: Visualize weekend trading patterns in the Pacific timezone
- **Multi-Market Traders**: Maintain consistent weekend awareness across different exchanges
- **Risk Management**: Clearly see when markets are closed for position management
### Settings
- **Weekend Background Color**: Choose any color for the weekend highlight
- **Opacity**: Control transparency (0-100%) to maintain chart visibility
- **Show Weekend Labels**: Toggle labels marking weekend start
- **Debug Info**: Display timezone calculations for verification
### How It Works
The indicator calculates the current UTC time and adds 12 hours to determine the UTC+12 time. It then checks if the resulting day falls on Saturday or Sunday, highlighting these periods on your chart. This ensures weekends are always displayed according to New Zealand time, regardless of your broker's timezone or your local settings.
### Notes
- Weekends begin at 00:00 Saturday UTC+12 (12:00 Friday UTC)
- Weekends end at 00:00 Monday UTC+12 (12:00 Sunday UTC)
- Works on all timeframes and markets
- Compatible with Pine Script v6
### Tags
weekend, background, timezone, UTC+12, New Zealand, highlight, trading sessions, forex, crypto, time zones, market hours, pacific time