EMA Crossover AlertsThe Indicator assists you with seeing EMO Crossovers as triangles on the screen and you can also put EMA crossover alerts with ease.
EMA lengths are customisable from indicator settings.
Indicadores y estrategias
2 bars BarsInputs:
The script allows you to specify the values for each state (HH, HL, LL, LH) for two bars.
Labels as Bars:
Instead of line.new, this script uses label.new to simulate a pseudo-bar chart.
Bars are visually represented as labels, with distinct positions and colors.
Offset Logic:
The offset ensures that each category has its labels (bars) placed at the correct horizontal distance.
Custom Categories:
The categories array ("HH", "HL", "LL", "LH") links to their respective values.
Nadaraya-Watson Envelope: Modified by RajMannNadaraya-Watson Envelope: Modified by RajMann
Modified Highs and Lows only
EMA 12 and EMA 26This is my version of EMA 12 and 26. Just tested on several assets, it has higher return than MAs.
NUTJP CDC ActionZone 20241. Core Components of the Strategy
• Fast EMA and Slow EMA:
• The Fast EMA (shorter period) is more reactive to recent price changes.
• The Slow EMA (longer period) reacts slower and provides a smoother view of the overall trend.
• Relationship Between Fast EMA and Slow EMA:
• When the Fast EMA is above the Slow EMA, the market is considered Bullish.
• When the Fast EMA is below the Slow EMA, the market is considered Bearish.
2. Zones Based on Price and EMAs
The strategy defines six zones based on the position of the price, Fast EMA, and Slow EMA:
1. Green Zone (Buy):
• Bullish trend (Fast EMA > Slow EMA)
• Price is above the Fast EMA.
• Indicates a strong uptrend and suggests buying.
2. Blue and Light Blue Zones (Pre-Buy):
• Price is above the Fast EMA but below or near the Slow EMA.
• Represents potential bullish signals but not strong enough to trigger a buy.
3. Red Zone (Sell):
• Bearish trend (Fast EMA < Slow EMA)
• Price is below the Fast EMA.
• Indicates a strong downtrend and suggests selling or avoiding long trades.
4. Orange and Yellow Zones (Pre-Sell):
• Price is below the Fast EMA but above or near the Slow EMA.
• Represents potential bearish signals but not strong enough to trigger a sell.
These zones help traders visualize the market conditions and determine whether to buy, hold, or sell.
3. Buy and Sell Conditions
• Buy Condition:
A buy signal is triggered when:
• The price enters the Green Zone (Bullish trend and price > Fast EMA).
• It’s the first green candle after a non-green candle.
• Sell Condition:
A sell signal is triggered when:
• The price enters the Red Zone (Bearish trend and price < Fast EMA).
• It’s the first red candle after a non-red candle.
4. Trade Execution Logic
• Buy:
The strategy enters a long position (buy) when the above buy condition is met.
• Sell:
The strategy exits the long position when the sell condition is met.
Note: It doesn’t support short trades, meaning it doesn’t enter sell positions.
5. Momentum-Based Signals (Optional)
The indicator also includes momentum signals using Stochastic RSI to provide additional buy/sell signals:
• These are based on oversold and overbought levels of the Stochastic RSI.
• It filters signals depending on whether the trend is Bullish or Bearish.
6. Visual Features
The indicator is designed to make the trading zones and signals visually intuitive:
• Bar Colors:
Candlesticks are colored based on the current zone (e.g., Green for Buy, Red for Sell).
• EMA Lines:
The Fast EMA and Slow EMA are plotted, making it easy to see crossover points.
• Buy/Sell Signals:
Marked with shapes (e.g., circles) below/above bars for clarity.
7. Strategy Assumptions
• Trend-Following Nature:
This strategy assumes that trends persist. It works best in trending markets but might give false signals in ranging markets.
• Lagging Nature of EMAs:
As EMAs are lagging indicators, buy and sell signals may occur after significant moves have already begun or ended.
• Momentum Confirmation (Optional):
Adding momentum signals can help filter false signals, though it’s not part of the core logic.
8. Usage Recommendations
• Timeframes:
Works on various timeframes but may perform better on higher timeframes (e.g., 1H, Daily) to reduce noise.
• Markets:
Can be applied to stocks, forex, and cryptocurrencies.
• Backtesting and Optimization:
Before live trading, backtest the strategy with different EMA periods and other parameters to find optimal settings for your market and timeframe.
Order Block Finder with Signals heavySignals for Entries:
• Buy Signal: When the price crosses above the bearish order block level.
• Sell Signal: When the price crosses below the bullish order block level.
Alerts are triggered when the price crosses the order block levels:
• Bullish Alert: Price crosses above the bearish order block (signaling a potential reversal upward).
• Bearish Alert: Price crosses below the bullish order block (signaling a potential reversal downward).
Ema8-13-20-144 ve Magic trendDosyada önemli olan EMA değerleri dışında Kıvanc hocamıza ait olan Magic Trend de eklenmiştir.
EMA da ozellikle 34 ve 144 değerleri onemlidir. Ema degerlerini istediğiniz gibi deiştirebilirsiniz. Sinyalleri de aktif edebilirsiniz.
Apart from the important EMA values in the file, Magic Trend, which belongs to our Kıvanc teacher, has also been added.
Especially 34 and 144 values are important in EMA. You can change the EMA values as you wish. You can also activate the signals.
shreyas forexThis strategy is designed to execute long and short trades based on specific market conditions, ensuring that only the most favorable opportunities are targeted. The strategy uses a dynamic approach to determine entry and exit points, incorporating adaptive stop-loss (SL) and take-profit (TP) levels to minimize risk and maximize potential gains.
The entry for long positions occurs when the market shows an upward trend and the price is positioned above a key reference level. Conversely, short positions are initiated when the market shows a downward trend and the price is positioned below the same reference level.
To manage risk, the strategy calculates a maximum allowable loss based on a percentage of the entry price. It adjusts the stop-loss dynamically to ensure that the position is closed at an optimal price if the market moves against the trade. Similarly, take-profit levels are determined based on the distance between the entry price and the stop-loss, with the potential for profit scaled accordingly.
The strategy allows for a fixed trading size for each position, ensuring consistent risk exposure across all trades. Additionally, the strategy supports real-time alerts to notify users of potential buy or sell signals, helping them stay informed of market movements.
Max Pain StrategyThe Max Pain Strategy uses a combination of volume and price movement thresholds to identify potential "pain zones" in the market. A "pain zone" is considered when the volume exceeds a certain multiple of its average over a defined lookback period, and the price movement exceeds a predefined percentage relative to the price at the beginning of the lookback period.
Here’s how the strategy functions step-by-step:
Inputs:
length: Defines the lookback period used to calculate the moving average of volume and the price change over that period.
volMultiplier: Sets a threshold multiplier for the volume; if the volume exceeds the average volume multiplied by this factor, it triggers the condition for a potential "pain zone."
priceMultiplier: Sets a threshold for the minimum percentage price change that is required for a "pain zone" condition.
Calculations:
averageVolume: The simple moving average (SMA) of volume over the specified lookback period.
priceChange: The absolute difference in price between the current bar's close and the close from the lookback period (length).
Pain Zone Condition:
The condition for entering a position is triggered if both the volume is higher than the average volume by the volMultiplier and the price change exceeds the price at the length-period ago by the priceMultiplier. This is an indication of significant market activity that could result in a price move.
Position Entry:
A long position is entered when the "pain zone" condition is met.
Exit Strategy:
The position is closed after the specified holdPeriods, which defines how many periods the position will be held after being entered.
Visualization:
A small triangle is plotted on the chart where the "pain zone" condition is met.
The background color changes to a semi-transparent red when the "pain zone" is active.
Scientific Explanation of the Components
Volume Analysis and Price Movement: These are two critical factors in trading strategies. Volume often serves as an indicator of market strength (or weakness), and price movement is a direct reflection of market sentiment. Higher volume with significant price movement may suggest that the market is entering a phase of increased volatility or trend formation, which the strategy aims to exploit.
Volume analysis: The study of volume as an indicator of market participation, with increased volume often signaling stronger trends (Murphy, J. J., Technical Analysis of the Financial Markets).
Price movement thresholds: A large price change over a short period may be interpreted as a breakout or a potential reversal point, aligning with volatility and liquidity analysis (Schwager, J. D., Market Wizards).
Repainting Check: This strategy does not involve any repainting because it is based on current and past data, and there is no reference to future values in the decision-making process. However, any strategy that uses lagging indicators or conditions based on historical bars, like close , is inherently a lagging strategy and might not predict real-time price action accurately until after the fact.
Risk Management: The position hold duration is predefined, which adds an element of time-based risk control. This duration ensures that the strategy does not hold a position indefinitely, which could expose it to unnecessary risk.
Potential Issues and Considerations
Repainting:
The strategy does not utilize future data or conditions that depend on future bars, so it does not inherently suffer from repainting issues.
However, since the strategy relies on volume and price change over a set lookback period, the decision to enter or exit a trade is only made after the data for the current bar is complete, meaning the trade decisions are somewhat delayed, which could be seen as a lagging feature rather than a repainting one.
Lagging Nature:
As with many technical analysis-based strategies, this one is based on past data (moving averages, price changes), meaning it reacts to market movements after they have already occurred, rather than predicting future price actions.
Overfitting Risk:
With parameters like the lookback period and multipliers being user-adjustable, there is a risk of overfitting to historical data. Adjusting parameters too much based on past performance can lead to poor out-of-sample results (Gauthier, P., Practical Quantitative Finance).
Conclusion
The Max Pain Strategy is a simple approach to identifying potential market entries based on volume spikes and significant price changes. It avoids repainting by relying solely on historical and current bar data, but it is inherently a lagging strategy that reacts to price and volume patterns after they have occurred. Therefore, the strategy can be effective in trending markets but may struggle in highly volatile, sideways markets.
OrderBlocksLibrary "OrderBlocks"
This is a library I created that creates order blocks. It's originated from my indicator "Order blocks" (). It will return a Zone object that can be used to draw an order block. If you want to see how that is done you can check out my indicar that uses the same logic.
Create(settings)
Creates an order block if one is found according to the settings parameter.
Parameters:
settings (Settings) : set all values in this parameter to define the settings for the order block creation.
Returns: a Zone object if an order block is found, na otherwise
Zone
Fields:
Time (series int)
TimeClose (series int)
High (series float)
Low (series float)
ReactionLimit (series float)
TouchedZone (Zone type from mickes/Touched/14)
Type (series int)
Zones
Fields:
Index (series int)
Maximum (series int)
Zones (array)
Remove (Zone)
Settings
Fields:
TakeOut (series bool)
ReactionFactor (series float)
Type (series string)
ConsecutiveRisingOrFalling (series bool)
FairValueGap (series bool)
SMA Crossover Strategy### Explanation:
1. **@version=5**: This specifies that we're using version 5 of Pine Script.
2. **strategy()**: This function names the strategy and specifies that it should overlay on the price chart.
3. **input.int()**: Allows the user to input the length for the SMA.
4. **ta.sma()**: Calculates the Simple Moving Average.
5. **plot()**: Plots the SMA line on the chart.
6. **ta.crossover()** and **ta.crossunder()**: These functions check for crossovers between price and SMA, triggering buy and sell signals respectively.
7. **strategy.entry()**: Used to enter a long position with the label "Buy".
8. **strategy.close()**: Closes the "Buy" position when conditions are met.
9. **strategy.exit()**: Sets up a stop loss and take profit for the position. Here, we've added inputs for users to define their risk parameters.
This script provides a basic framework. You might want to adjust parameters like the SMA period, or add more complex entry/exit rules based on other indicators, volume, or even time-based criteria for a more sophisticated strategy. Remember, past performance does not guarantee future results, so always backtest and forward test strategies.
ADX Breakout Strategy█ OVERVIEW
The ADX Breakout strategy leverages the Average Directional Index (ADX) to identify and execute breakout trades within specified trading sessions. Designed for the NQ and ES 30-minute charts, this strategy aims to capture significant price movements while managing risk through predefined stop losses and trade limits.
This strategy was taken from a strategy that was posted on YouTube. I would link the video, but I believe is is "against house rules".
█ CONCEPTS
The strategy is built upon the following key concepts:
ADX Indicator: Utilizes the ADX to gauge the strength of a trend. Trades are initiated when the ADX value is below a certain threshold, indicating potential for trend development.
Trade Session Management: Limits trading to specific hours to align with optimal market activity periods.
Risk Management: Implements a fixed dollar stop loss and restricts the number of trades per session to control exposure.
█ FEATURES
Customizable Stop Loss: Set your preferred stop loss amount to manage risk effectively.
Trade Session Configuration: Define the trading hours to focus on the most active market periods.
Entry Conditions: Enter long positions when the price breaks above the highest close in the lookback window and the ADX indicates potential trend strength.
Trade Limits: Restrict the number of trades per session to maintain disciplined trading.
Automated Exit: Automatically closes all positions at the end of the trading session to avoid overnight risk.
█ HOW TO USE
Configure Inputs :
Stop Loss ($): Set the maximum loss per trade.
Trade Session: Define the active trading hours.
Highest Lookback Window: Specify the number of bars to consider for the highest close.
Apply the Strategy :
Add the ADX Breakout strategy to your chart on TradingView.
Ensure you are using a 30-minute timeframe for optimal performance.
█ LIMITATIONS
Market Conditions: The strategy is optimized for trending markets and may underperform in sideways or highly volatile conditions.
Timeframe Specific: Designed specifically for 30-minute charts; performance may vary on different timeframes.
Single Asset Focus: Primarily tested on NQ and ES instruments; effectiveness on other symbols is not guaranteed.
█ DISCLAIMER
This ADX Breakout strategy is provided for educational and informational purposes only. It is not financial advice and should not be construed as such. Trading involves significant risk, and you may incur substantial losses. Always perform your own analysis and consider your financial situation before using this or any other trading strategy. The source material for this strategy is publicly available in the comments at the beginning of the code script. This strategy has been published openly for anyone to review and verify its methodology and performance.
STeye# STeye 指标说明
作者:Stephen Zeng
## 指标概述
STeye是一个结合了RSI(相对强弱指标)和ATR(平均真实波幅)的技术分析工具。该指标主要用于判断市场的超买超卖状态,同时结合波动率来评估市场动能。
## 主要功能
1. RSI核心功能
- 默认周期为14
- 设置了70/50/30三条水平参考线
- 提供渐变色背景显示,使超买超卖区域更直观
- 支持背离计算(可选)
2. 移动平均线功能
- 默认周期为55
- 支持多种均线类型:SMA、EMA、SMMA(RMA)、WMA、VWMA
- 可选布林带显示
- 可自定义均线周期
3. ATR波动率指标
- 默认14周期
- 支持多种平滑方式:RMA、SMA、EMA、WMA
- 帮助判断市场波动强度
使用建议
1. RSI超过70进入超买区域,低于30进入超卖区域
2. 结合ATR观察市场波动,ATR上升表示波动加大,下降表示波动减小
3. 可通过移动平均线来过滤RSI假信号
4. 建议在多时间周期下综合分析
参数设置
- RSI参数可根据交易品种特性调整,波动大的品种可适当放宽超买超卖区间
- 移动平均线类型和周期可根据交易风格选择
- ATR平滑方式建议使用默认RMA,提供更平滑的波动率信号
## 注意事项
1. 本指标仅供参考,建议与其他技术指标或基本面分析结合使用
INTELLECT_city - US Presidential Elections Dates (USA)(EN)
It is interesting to compare Halvings Cycles and Presidential elections.
This indicator shows all presidential elections in the USA from the period 2008, and future ones to the date 2044. The indicator will automatically show all future dates of presidential elections.
--
To apply it to your chart it is very easy:
Select:
1) Exchange: BITSTAMP
2) Pair BTC \ USD (Without "T" at the end)
3) Timeframe 1 day
4) In the Browser, switch the chart to Logarithmic (on the right bottom, click the "L" button)
or on mobile, switch to "Logarithmic" we look on the chart: "Gear" - and switch to "Logarithmic"
------------------
(RU)
Интересно сопоставить Циклы Halvings и Президентские выборы.
Данный индикатор показывает все президентские выборы в США с периода 2008 года, и будущие к дате 2044 года. Индикатор будет автоматически показывать все будущие даты .
--
Что бы применить у себя на графике это очень легко:
Выберите:
1) Биржа: BITSTAMP
2) Пара BTC \ USD (Без "T" в конце)
3) Timeframe 1 дневной
4) В Браузере переключить график на Логарифмический (с право внизу кнопка "Л")
или на мобильно переключить на "Логарифмический" ищем на графике: "Шестеренку" — и переключаем на "Логарифмический"
-------------------
(DE)
Es ist interessant, die Halbierungszyklen und die Präsidentschaftswahlen zu vergleichen.
Dieser Indikator zeigt alle US-Präsidentschaftswahlen seit 2008 und zukünftige bis zum Datum 2044. Der Indikator zeigt automatisch alle zukünftigen Präsidentschaftswahltermine an.
--
Es ist sehr einfach, dies auf Ihr Diagramm anzuwenden:
Wählen:
1) Austausch: BITSTAMP
2) Paar BTC \ USD (Ohne das „T“ am Ende)
3) Zeitrahmen 1 Tag
4) Schalten Sie im Browser das Diagramm auf Logarithmisch um (die Schaltfläche „L“ unten rechts).
oder auf dem Mobilgerät auf „Logarithmisch“ umschalten, in der Grafik nach „Getriebe“ suchen – und auf „Logarithmisch“ umschalten
EMA-Pack Multi-Time-FrameIndicator Description: EMA-Pack Multi-Time-Frame
The EMA-Pack Multi-Time-Frame is a versatile trading indicator designed for TradingView. It combines multiple moving averages and Bollinger Bands into a cohesive tool, allowing traders to analyze trends and price movements across different timeframes with high precision.
Key Features:
Multiple Moving Averages (MAs):
Supported Types:
Exponential Moving Average (EMA)
Simple Moving Average (SMA)
Running Moving Average (RMA)
Hull Moving Average (HMA)
Arnaud Legoux Moving Average (ALMA)
Customizable Lengths:
Fast EMA (default: 10)
Mid EMA (default: 20)
Slow EMA (default: 30)
Additional EMAs: 50, 100, and 200 for long-term trend analysis.
Each MA is plotted on the chart with distinct colors and line thickness.
Multi-Timeframe Compatibility:
Select any timeframe for calculating MAs and Bollinger Bands.
Dynamically adjusts to match your selected chart timeframe.
Bollinger Bands Integration:
Configurable moving average type for the Bollinger Bands basis.
Customizable standard deviation multiplier (default: 2.0).
Displays upper, lower, and middle bands with dynamic color changes based on price behavior.
Alerts:
Crossovers for MAs: Alerts for when price crosses key moving averages (e.g., EMA Fast, Middle, Slow, or others).
Bollinger Band Alerts: Triggered when price interacts with the upper, lower, or basis line of the bands.
Alerts include customizable BUY and SELL signals to assist in automated trading or manual decision-making.
Dynamic Color Coding:
Bollinger Bands change color based on:
Price trend direction.
Volatility expansion or contraction.
MAs are color-coded to quickly distinguish fast, mid, and slow-moving averages.
Advanced Security Requests:
Uses request.security() for seamless integration of MAs and Bollinger Bands across timeframes.
Real-time adjustments ensure accuracy in dynamic market conditions.
Custom Offsets:
All calculations and plots support offset adjustments, allowing traders to visualize shifted data.
Visualization:
Moving Averages: Displayed as distinct lines on the price chart with clear labels (e.g., "MA Fast", "MA Middle").
Bollinger Bands: Background fill between upper and lower bands for better trend visualization.
Alerts: Configurable triggers for both MAs and Bollinger Bands, providing actionable insights.
Use Case:
The EMA-Pack Multi-Time-Frame indicator is ideal for:
Identifying trends across multiple timeframes.
Monitoring volatility with Bollinger Bands.
Setting up automated trading strategies with precise alert triggers.
Enhancing chart visualization with customizable colors and settings.
This indicator is a powerful tool for traders seeking an all-in-one solution to trend, support/resistance, and momentum analysis.
Session markers- Ahead of Time Draws lines for sessions prior to them occurring so you can see lines visibly on the chart for when the sessions will be starting ahead of time.
(Total3-USDT)-BTCBenjamin Cowen inspired, Total 3 market cap minus USDT and divided by Bitcoin. A good indication of when Alt coins will out perform Bitcoin and vice versa
Combined Supertrendcombination of 3 super trend 10-3.11-2,12-1, combined trend analyzer, increase a winning probability
ADX and DI with SMA//@version=5
indicator("ADX and DI with SMA", overlay=false)
len = input.int(14, title="Length")
th = input.int(20, title="Threshold")
avg = input.int(10, title="SMA")
TrueRange = math.max(math.max(high - low, math.abs(high - nz(close ))), math.abs(low - nz(close )))
DirectionalMovementPlus = high - nz(high ) > nz(low ) - low ? math.max(high - nz(high ), 0) : 0
DirectionalMovementMinus = nz(low ) - low > high - nz(high ) ? math.max(nz(low ) - low, 0) : 0
// Smoothed values initialization
SmoothedTrueRange = ta.sma(TrueRange, len)
SmoothedDirectionalMovementPlus = ta.sma(DirectionalMovementPlus, len)
SmoothedDirectionalMovementMinus = ta.sma(DirectionalMovementMinus, len)
DIPlus = SmoothedDirectionalMovementPlus / SmoothedTrueRange * 100
DIMinus = SmoothedDirectionalMovementMinus / SmoothedTrueRange * 100
DX = math.abs(DIPlus - DIMinus) / (DIPlus + DIMinus) * 100
ADX = ta.sma(DX, len)
SMA = ta.sma(ADX, avg)
// Plot ADX and SMA, remove DI+ and DI-
plot(ADX, color=color.yellow, title="ADX")
plot(SMA, color=color.white, title="SMA")
hline(th, color=color.black, linestyle=hline.style_dashed)
Advanced Golden & Dead Cross Zonesbelajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham belajar saham
Gold XAU/USD 3min Strategy with 1-candle Ahead by ThamsomPine Script for Multi-Timeframe Strategy (3 Timeframes)
Trading Setup with MA, RSI, ATR, and Donchian ChannelsThe script uses a 50-period Moving Average to identify trends, RSI for entry triggers, and Pivot Points for setting targets or exits.