Previous Candle Fully Engulfed by Current Candle jknPrevious Candle Fully Engulfed by Current Candle jkn
Indicators and strategies
Jc Position Size Calculatortool for calculate position size or profit base on input setting
can set fix risk mode or fix lot mode
need to enter how much one integer point of the product is worth in US dollars (the example in the picture is MNQ, one integer point is $2)
offer 4 value per price option for frequency usage
設定說明:
1:需要自行輸入該商品一個整數點值多少美元(圖中範例為MNQ 一個整數點$2)
2:手數變化跳動單位(期貨手數沒有小數點所以設為1,算法為除後無條件捨去)
3.1:文字是否顯示固定風險模式
3.2:固定風險值設定
4.1:文字是否顯示固定手數模式
4.2:固定手數值設定
--
Tool is for the convenience of use, users should bear all risks for their investment decisions. The tool information is for reference only and does not provide any guarantees.
工具為方便使用,使用者應為自己任何投資決策行為承擔所有風險,工具資訊僅供參考,不提供任何保證。
EMA Trend back test 1The EMA Trend script is designed to visualize and identify trends based on the relationship between three Exponential Moving Averages (EMAs) with user-defined periods: Fast EMA, Medium EMA, and Slow EMA. It uses the relative positioning of these EMAs to indicate the direction of the trend and highlights the trend visually on the chart.
BK Multiple MAIndicator Description:
I am incredibly proud and excited to share my third indicator with the TradingView community! This tool has been instrumental in helping me optimize my positioning and maximize my trades.
Moving Averages (MAs) are among the top three most crucial indicators for trading, and this fully customizable Multi-MA script takes them to the next level. This indicator allows you to fine-tune and personalize every aspect to suit your trading style and strategy. Here's what makes it special:
Full Customization: Adjust the period for each MA independently. Choose the type of MA you want to use for each (EMA, SMA, or RMA).
Color & Line Width: Customize the line color and thickness for clarity on your chart.
Flexibility: Use up to 4 Moving Averages, or choose how many you want to display based on your preference.
Streamlined Interface: Simple and intuitive inputs make it easy to tweak settings on the go.
This tool was designed with precision and adaptability in mind, ensuring it works across all timeframes and trading styles.
A Personal Message:
If you find success with this indicator, I kindly ask that you give back in some way through acts of philanthropy—helping others in the best way you see fit.
Good luck to everyone, and always remember: God gives us everything. May all the glory go to the Almighty!
Average Trading Volume per Minute & Suitable Position SizeDescription:
This indicator calculates an average trading volume per minute for the specified lookback period (default 377 bars). It then estimates a suitable position size in USD (or contracts on specific exchanges) by multiplying the average volume by a user-defined percentage (default 8%). The script discards extreme data points (top and bottom 20%) before finding the median, so it provides a more robust measure of typical volume.
How It Works:
1. Each bar’s volume is converted to a USD-based figure, either by taking volume directly (if the exchange quotes in USD) or multiplying volume by the midpoint price.
2. Values are stored in an array, which is then sorted to remove the most extreme 40% (20% from each tail). The remaining 60% is used to calculate a median.
3. You enter a position size percentage (e.g. 8%), and the script multiplies the median volume-per-minute by this percentage to get your recommended position size.
4. For certain exchanges like BitMEX/Deribit, the script adapts how it treats volume (in quotes vs. base), so it can display the final position size properly (USD or contracts).
5. The script displays the result in a small table on the chart, showing the recommended position size in USD (or, for some perpetual contracts, in contract units). If no valid data is available, it indicates “Data Invalid.”
Usage Tips:
• The default Position Size Percentage is 8%. You can adjust it higher for more aggressive trading or lower for smaller exposure.
• The default lookback (Average Calculation Period) is 377 bars. Experiment with different values (e.g. 200 or 500) to capture more or fewer historical bars.
• On certain exchanges and symbols (e.g. BitMEX or Deribit’s “.P” pairs), the script automatically switches how it calculates volume (USD vs. coin-based).
• If you see “Data Invalid,” it likely means the current symbol or timeframe lacks sufficient volume info, or you’re running it on a symbol like BTC.D.
Why This Helps:
• Many traders size positions by guesswork or a fixed fraction of their account. This script instead ties position size to actual average trading volume, ensuring your position is neither too large (risk of poor fills) nor too small (wasting leverage potential).
• Removing top/bottom outliers and using the median aims to give a stable volume measure—less influenced by sudden spikes or extremely quiet bars.
Feel free to tweak the inputs and experiment with different timeframes or pairs. By aligning your position size with typical market liquidity, you can potentially improve overall trade execution and manage risk more effectively.
RSI Status v2 Multi-TFThe RSI provides two values, the RSI and the RSI-EMA. This simple indicator simply displays the status of the RSI (Green/Red) and the associated values for the Weekly, Daily and 4-hour time-frames, regardless of what time-frame you are viewing. The exception is the 4-hour value, that will have a minor difference when viewed from the Daily or Weekly due to the code picking up the first 4-hour reading of the day rather than the final 4-hour (end-of-day). It will read correctly when viewing the 4-hour chart.
RSI Multi-Timeframes ProviderRSi-MTF pour intégration dans stratégie.
Quand les 4 TF atteignent des seuils, lancer l'achat ou la vente
Vertical Lines ExampleVertical Lines Example
timestamp: Used to create specific times for today (9:15 AM, 11:00 AM, and 1:00 PM).
isTodayAfterStart: Ensures that lines are drawn only after 9:15 AM.
line.new: Creates vertical lines at the specified times (11:00 AM and 1:00 PM).
style_dotted: Makes the lines dotted.
xloc.bar_time: Places the lines based on time on the chart.
Pi CycleIndicator Overview
The Pi Cycle Top Indicator has historically been effective in picking out the timing of market cycle highs within 3 days.
It uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2.
Note: The multiple is of the price values of the 350DMA, not the number of days.
For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking.
It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142. In fact, it is the closest we can get to Pi when dividing 350 by another whole number.
It once again demonstrates the cyclical nature of Bitcoin price action over long time frames. However, in this instance, it does so with a high degree of accuracy over Bitcoin's adoption phase of growth.
Quick Response Indicator with Moving Averages//@version=5
indicator("Quick Response Indicator with Moving Averages", overlay=true)
// RSI Ayarları
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiSource = input.source(close, title="RSI Source")
// Hareketli Ortalamalar (SMA ve EMA) Ayarları
smaLength = input.int(50, title="SMA Length")
emaLength = input.int(9, title="EMA Length")
smaSource = input.source(close, title="SMA Source")
emaSource = input.source(close, title="EMA Source")
// RSI Hesaplaması
rsiValue = ta.rsi(rsiSource, rsiLength)
// SMA ve EMA Hesaplamaları
smaValue = ta.sma(smaSource, smaLength)
emaValue = ta.ema(emaSource, emaLength)
// Al ve Sat sinyalleri
longSignal = rsiValue < rsiOversold and close > emaValue
shortSignal = rsiValue > rsiOverbought and close < emaValue
// Long ve Short sinyalleri için uyarılar
alertcondition(longSignal, title="Long Signal", message="RSI < Oversold and Close > EMA. Long Signal!")
alertcondition(shortSignal, title="Short Signal", message="RSI > Overbought and Close < EMA. Short Signal!")
// Sinyalleri grafikte gösterme
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Long Signal", text="Long")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Short Signal", text="Short")
// SMA ve EMA'yı grafikte gösterme
plot(smaValue, color=color.blue, title="SMA", linewidth=2)
plot(emaValue, color=color.orange, title="EMA", linewidth=2)
// RSI'yı grafikte gösterme
plot(rsiValue, color=color.blue, title="RSI")
hline(rsiOverbought, "Overbought", color=color.red)
hline(rsiOversold, "Oversold", color=color.green)
Key Features:
RSI (Relative Strength Index):
RSI is used to identify overbought or oversold conditions in the market.
When RSI is above 70, it signals overbought conditions, and when RSI is below 30, it indicates oversold conditions.
These levels can help generate trading signals. For example, an oversold condition (RSI < 30) paired with price above EMA may trigger a Long (Buy) signal. Conversely, an overbought condition (RSI > 70) with price below EMA could trigger a Short (Sell) signal.
Moving Averages:
SMA (Simple Moving Average): A 50-period moving average that represents the simple average of the closing prices over a defined period.
EMA (Exponential Moving Average): A 9-period moving average that gives more weight to recent prices, making it more responsive to price changes.
The indicator uses EMA to determine the trend direction, and SMA is used for a longer-term trend indication.
Buy (Long) and Sell (Short) Signals:
Long Signal (Buy): A long signal is generated when RSI is below 30 (oversold) and the current price is above the EMA, indicating a potential upward movement.
Short Signal (Sell): A short signal is generated when RSI is above 70 (overbought) and the current price is below the EMA, indicating a potential downward movement.
Plotting on the Chart:
The SMA, EMA, and RSI are plotted on the chart to give you a visual indication of trend and market conditions.
Long and Short signals are displayed on the chart as green and red arrows, respectively, to help you spot potential entry and exit points quickly.
Alerts:
Alerts are set for Long and Short signals using the alertcondition function. You can use these alerts to notify you when the indicator generates a trade signal.
Advantages of the Indicator:
Quick Response: By combining RSI with EMA and SMA, this indicator allows you to react quickly to market movements and make rapid trading decisions.
Simplified Strategy: The strategy focuses on using moving averages for trend direction and RSI for identifying overbought/oversold conditions, making it ideal for traders who prefer faster results.
Visual Guidance: The clear visual representation of the moving averages, RSI, and trade signals on the chart makes it easy to follow and act on market trends.
MA 20, 50, 200//@version=5
indicator("MA 20, 50, 200", overlay=true)
// Calculate the 20-period, 50-period, and 100-period Simple Moving Averages
ma20 = ta.sma(close, 20)
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
// Plot the moving averages on the chart
plot(ma20, color=color.green, linewidth=2, title="MA 20")
plot(ma50, color=color.blue, linewidth=2, title="MA 50")
plot(ma200, color=color.red, linewidth=2, title="MA 200")
This function plots each of the moving averages on the chart.
The color parameter sets the color for each SMA:
MA 20 is plotted in green
MA 50 is plotted in blue
MA 200 is plotted in red
3 Volume Weighted Moving Average -trend-Macd (MTF)3 Volume Weighted Moving Average -trend-Macd (MTF)
ATR Stop-Loss CalculatorATR (Average True Range) kullanarak long ve short işlemleri için stop-loss seviyelerini hesaplar ve grafikte gösterir. Ayrıca Sağ üst köşede stop-loss seviyelerini bir tablo olarak görüntüler. Ayarlanabilir parametreler sayesinde esnek ve kullanıcı dostu bir araçtır.
Özellikler:
ATR'ye dayalı long ve short stop-loss seviyeleri.
Sağ üst köşede stop-loss seviyelerini gösteren tablo.
Kullanıcı tarafından özelleştirilebilir ATR uzunluğu, çarpanı ve hareketli ortalama uzunlukları.
Filtered ATR with EMA OverlayFiltered ATR with EMA Overlay is an advanced volatility indicator designed to provide a more accurate representation of market conditions by smoothing the standard Average True Range (ATR). This is achieved by filtering out extreme price movements and abnormal bars that can distort traditional ATR calculations.
The indicator applies an Exponential Moving Average (EMA) to the filtered ATR, creating a dual-layered system that highlights periods of increased or decreased volatility.
Key Features:
Filtered ATR: Filters out extreme bars, reducing noise and making the ATR line more reliable.
EMA Overlay: An EMA (default period of 10) is applied to the filtered ATR, allowing traders to track average volatility trends.
Volatility Signals:
Filtered ATR > EMA(10): Indicates higher-than-average volatility. This often correlates with trend breakouts or strong price movements.
Filtered ATR < EMA(10): Suggests reduced volatility, signaling potential consolidation or sideways price action.
Parameters:
atrLength (Default: 5):
The number of bars used to calculate the ATR. A shorter period (e.g., 3-5) responds faster to price changes, while a longer period (e.g., 10-14) provides smoother results.
multiplier (Default: 1.8):
Controls the sensitivity of the filter. A lower multiplier (e.g., 1.5) filters out more bars, resulting in smoother ATR. Higher values (e.g., 2.0) allow more bars to pass through, retaining more price volatility.
maxIterations (Default: 20):
The maximum number of bars processed to detect abnormal values. Increasing this may improve accuracy at the cost of performance.
ema10Period (Default: 10):
The period for the Exponential Moving Average applied to the filtered ATR. Shorter periods provide faster signals, while longer periods give smoother, lagging signals.
Trading Strategies:
1. Breakout Strategy:
When filtered ATR crosses above EMA(10):
Enter long positions when price breaks above a key resistance level.
Higher volatility suggests strong price action and momentum.
When filtered ATR drops below EMA(10):
Exit positions or tighten stop-loss orders as volatility decreases.
Lower volatility may indicate consolidation or trend exhaustion.
2. Trend Following Strategy:
Use the filtered ATR line to track overall volatility.
If filtered ATR consistently stays above EMA: Hold positions or add to trades.
If filtered ATR remains below EMA: Reduce position size or stay out of trades.
3. Mean Reversion Strategy:
When filtered ATR spikes significantly above EMA, it may indicate market overreaction.
Look for price to revert to the mean once ATR returns below the EMA.
4. Stop-Loss Adjustment:
As volatility increases (ATR above EMA), widen stop-loss levels to avoid being stopped out by random fluctuations.
In low volatility (ATR below EMA), tighten stop-losses to minimize losses during low activity periods.
Benefits:
Reduced Noise: By filtering abnormal bars, the indicator provides cleaner signals.
Better Trend Detection: EMA smoothing highlights volatility trends.
Adaptable: The indicator can be customized for scalping, day trading, or swing trading.
Intuitive Visualization: Traders can visually see volatility shifts and adjust strategies in real-time.
Best Practices:
Timeframes: Works effectively on all timeframes, but higher timeframes (e.g., 1H, 4H, Daily) yield more reliable signals.
Markets: Suitable for forex, crypto, stocks, and commodities.
Combining Indicators: Use in combination with RSI, Moving Averages, Bollinger Bands, or price action analysis for stronger signals.
How It Works (Under the Hood):
The script calculates the Daily Range (High - Low) for each bar.
The largest and smallest bars are filtered out if their difference exceeds the multiplier (default 1.8).
The remaining bars are averaged to generate the filtered ATR.
An EMA(10) is then applied to the filtered ATR for smoother visualization.
Filtered ATR with EMA OverlayFiltered ATR with EMA Overlay is an advanced volatility indicator designed to provide a more accurate representation of market conditions by smoothing the standard Average True Range (ATR). This is achieved by filtering out extreme price movements and abnormal bars that can distort traditional ATR calculations.
The indicator applies an Exponential Moving Average (EMA) to the filtered ATR, creating a dual-layered system that highlights periods of increased or decreased volatility.
Key Features:
Filtered ATR: Filters out extreme bars, reducing noise and making the ATR line more reliable.
EMA Overlay: An EMA (default period of 10) is applied to the filtered ATR, allowing traders to track average volatility trends.
Volatility Signals:
Filtered ATR > EMA(10): Indicates higher-than-average volatility. This often correlates with trend breakouts or strong price movements.
Filtered ATR < EMA(10): Suggests reduced volatility, signaling potential consolidation or sideways price action.
Parameters:
atrLength (Default: 5):
The number of bars used to calculate the ATR. A shorter period (e.g., 3-5) responds faster to price changes, while a longer period (e.g., 10-14) provides smoother results.
multiplier (Default: 1.8):
Controls the sensitivity of the filter. A lower multiplier (e.g., 1.5) filters out more bars, resulting in smoother ATR. Higher values (e.g., 2.0) allow more bars to pass through, retaining more price volatility.
maxIterations (Default: 20):
The maximum number of bars processed to detect abnormal values. Increasing this may improve accuracy at the cost of performance.
ema10Period (Default: 10):
The period for the Exponential Moving Average applied to the filtered ATR. Shorter periods provide faster signals, while longer periods give smoother, lagging signals.
Trading Strategies:
1. Breakout Strategy:
When filtered ATR crosses above EMA(10):
Enter long positions when price breaks above a key resistance level.
Higher volatility suggests strong price action and momentum.
When filtered ATR drops below EMA(10):
Exit positions or tighten stop-loss orders as volatility decreases.
Lower volatility may indicate consolidation or trend exhaustion.
2. Trend Following Strategy:
Use the filtered ATR line to track overall volatility.
If filtered ATR consistently stays above EMA: Hold positions or add to trades.
If filtered ATR remains below EMA: Reduce position size or stay out of trades.
3. Mean Reversion Strategy:
When filtered ATR spikes significantly above EMA, it may indicate market overreaction.
Look for price to revert to the mean once ATR returns below the EMA.
4. Stop-Loss Adjustment:
As volatility increases (ATR above EMA), widen stop-loss levels to avoid being stopped out by random fluctuations.
In low volatility (ATR below EMA), tighten stop-losses to minimize losses during low activity periods.
Benefits:
Reduced Noise: By filtering abnormal bars, the indicator provides cleaner signals.
Better Trend Detection: EMA smoothing highlights volatility trends.
Adaptable: The indicator can be customized for scalping, day trading, or swing trading.
Intuitive Visualization: Traders can visually see volatility shifts and adjust strategies in real-time.
Best Practices:
Timeframes: Works effectively on all timeframes, but higher timeframes (e.g., 1H, 4H, Daily) yield more reliable signals.
Markets: Suitable for forex, crypto, stocks, and commodities.
Combining Indicators: Use in combination with RSI, Moving Averages, Bollinger Bands, or price action analysis for stronger signals.
How It Works (Under the Hood):
The script calculates the Daily Range (High - Low) for each bar.
The largest and smallest bars are filtered out if their difference exceeds the multiplier (default 1.8).
The remaining bars are averaged to generate the filtered ATR.
An EMA(10) is then applied to the filtered ATR for smoother visualization.
NAG_SMA IndicatorHi All,
This is SMA indicator with multiple SMA values.
You can select SMA as per your strategy.
Regards,
Nilesh Ghadshi
@nghadshi2389
6 Moving Average SimpleYou can display 6 SMAs. It’s simple, so feel free to adjust it as you like. Your support would be a great motivator for creating new indicators.
6本のSMAを表示できます。
シンプルですので、ご自由に調整してください。
応援頂けると新たなインジケーター作成の糧になります。
Nahum - ZLSMA for Telegram [Nahum81]Este indicador ZLSMA (Zero Lag Least Squares Moving Average) proporciona una media móvil con un retraso casi nulo, lo que permite identificar la dirección de la tendencia de forma instantánea.
Características:
Alertas de Telegram: Recibe notificaciones en tiempo real en tu Telegram cuando se produzcan señales de compra o venta.
Integración con Telegram: Conéctate fácilmente a tu cuenta de Telegram para recibir alertas.
Configuración personalizable: Ajusta los parámetros del indicador y las alertas a tu estrategia de trading.
Advertencia:
Este indicador debe usarse con precaución.
Se recomienda contactar al desarrollador (@Nahum81) para comprender completamente la estrategia y su uso adecuado.
El trading implica riesgos y este indicador no garantiza ganancias.
Nahum - ZLSMA for Telegram [Nahum81]Este indicador ZLSMA (Zero Lag Least Squares Moving Average) proporciona una media móvil con un retraso casi nulo, lo que permite identificar la dirección de la tendencia de forma instantánea.
Características:
Alertas de Telegram: Recibe notificaciones en tiempo real en tu Telegram cuando se produzcan señales de compra o venta.
Integración con Telegram: Conéctate fácilmente a tu cuenta de Telegram para recibir alertas.
Configuración personalizable: Ajusta los parámetros del indicador y las alertas a tu estrategia de trading.
Advertencia:
Este indicador debe usarse con precaución.
Se recomienda contactar al desarrollador (@Nahum81) para comprender completamente la estrategia y su uso adecuado.
El trading implica riesgos y este indicador no garantiza ganancias.