draws a blue line representing the divergence between a 3-period moving average (3MA) close and the current candle high, and a red line representing the divergence between a 20-period moving average (20MA) close and the 3MA close This script calculates the moving averages for both 3-period and 20-period and then computes the divergences as described. It plots the...
The indicator provides a nuanced view of sector performance through ETF analysis, focusing on long-term price trends and deviations from these trends to gauge relative strength or weakness. It utilizes a methodical approach to smooth out ETF price data and then applies a regression analysis to pinpoint the primary trend direction. By examining how far the current...
1.策略主要目的是通过supertrend抓取趋势,为了过滤趋势频繁切换,采用ema对趋势进行过滤。(由于使用了ema,并不能及时反映市场的剧烈变化)。 2.止损点位默认为开仓价格的3个点。 3.止盈点位只在价格上升到3个点时,采用保本止盈的方法,当价格上升到某一个百分比时,会逐渐上升止损价位,其余会一直拿到趋势结束。 4.为了过滤震荡行情,采用adx指标,当指标高于25时,开单。 5.如果在上升趋势中,开单的仓位止损退出,会找合适的机会再次开单。
SMA with ATR Bands This custom indicator combines the Simple Moving Average (SMA) with Average True Range (ATR) bands. It’s designed to help traders identify potential price reversals and gauge volatility. Here’s what it does: Simple Moving Average (SMA): The SMA represents the average price over a specified period. It acts as a trend-following line,...
This indicator provides swing trading signals based on moving average trends and Bollinger Band confirmation. It’s designed to identify potential long and short entries for a medium-term trading horizon. Long Entry: When the closing price is above both the 20-period and 35-period SMAs, and also above the middle Bollinger Band, with the 100-period SMA trending...
Peak and Trough Tracker This indicator identifies the highest and lowest prices reached in two user-defined time periods. It then draws two lines connecting these peak and trough points. The purple line represents the connection between the highest prices, while the aqua line represents the relationship between the lowest prices. Both lines extend into the future...
This versatile indicator plots logarithmic Bollinger Bands on any financial asset or timeframe in the TradingView platform. Unlike traditional Bollinger Bands, which use simple arithmetic calculations, Foxy's LBB employs logarithmic scales to better capture and visualize percentage-based price movements. The core functionality includes: Basis Line: A central...
█ OVERVIEW This indicator projects ATR bands and, optionally, colors them based on a risk/reward advantage for those who trade breakouts/breakdowns using moving averages as partial or full exit points. █ DEFINITIONS ► True Range The True Range is a measure of the volatility of a financial asset and is defined as the maximum difference among one of the...
Script Details: Security Function: We use the request.security() to fetch data for different time frames for both the 144 and 169 period EMAs. Plots: Each EMA line is plotted individually. Fills: Conditional coloring is applied between the 144 and 169 EMAs for both 4-hour and 1-day charts. Additional EMAs: The 1-hour and 2-hour EMAs are also included for broader analysis.
Daily Range Breakout Strategy For SPX 5-15m This strategy focuses on identifying breakouts above the daily trading session's high, utilizing a layered approach with multiple technical indicators and filters to confirm the strength and direction of the market's trend. It works best on SPX 5 to 15 minute timeframe. Core Logic The strategy's core logic revolves...
It defines a strategy based on the crossover of two exponential moving averages (EMA). It plots the two EMAs on the chart and generates buy signals when the fast EMA crosses above the slow EMA, and sell signals when the fast EMA crosses below the slow EMA. The strategy.entry() function is used to enter long (buy) or short (sell) positions, and strategy.exit() is...
Introducing the "Normal Weighted Average Price" (NWAP) by OmegaTools. This innovative script refines the traditional concept of VWAP by eliminating volume from the equation, offering a unique perspective on price movements and market trends. The NWAP script is meticulously crafted to provide traders with a straightforward yet powerful tool for analyzing price...
This Script code is used to plot support and resistance levels on a chart. Here's how it works: Input Parameters: The code starts by defining an input parameter lookback_period, which determines the number of bars to look back when calculating support and resistance levels. You can adjust this parameter based on your preferences or trading strategy. I recommend...
I've adapted a script from Lazy Bear (WT trend oscillator) WaveTrend Oscillator is a port of a famous TS/MT indicator. When the oscillator (WT1 designed as a line) is above the overbought band (50 to 60) and crosses down the WT2 (dotted line), it is usually a good SELL signal. Similarly, when the oscillator crosses above the signal when below the Oversold band (...
It defines a strategy based on the crossover of two exponential moving averages (EMA). It plots the two EMAs on the chart and generates buy signals when the fast EMA crosses above the slow EMA, and sell signals when the fast EMA crosses below the slow EMA. The strategy.entry() function is used to enter long (buy) or short (sell) positions, and strategy.exit() is...
Strategy Overview: This strategy utilizes Bollinger Bands based on a 20-period Exponential Moving Average (EMA) with a standard deviation multiplier of 1.5. It is designed to generate early trading signals based on the relationship between the price action and the Bollinger Bands. Bollinger Bands Calculation: The upper Bollinger Band is calculated as the...
Plots previous and the day before days' high and low for all days, not just today.