Desvio PadrãoEste indicador trabalha com desvio padrão do dia. Baseado em cálculos matemáticos!
by joao laudir
Băng tần và kênh
Dual MA CrossoverThis script does the following:
1. We define the indicator with the name “Dual MA Crossover” and set it to overlay on the chart.
2. Two user inputs are created for the fast and slow moving average lengths, with default values of 10 and 100 respectively.
3. We calculate the simple moving averages (SMA) using the `ta.sma()` function.
4. The moving averages are plotted on the chart using different colors.
5. Crossover and crossunder conditions are detected using `ta.crossover()` and `ta.crossunder()` functions.
6. Labels are created at the crossover points:
• A “BUY” label is placed below the candle when the fast MA crosses above the slow MA.
• A “SELL” label is placed above the candle when the fast MA crosses below the slow MA.
7. The labels are set to have white text as requested, with green background for buy signals and red for sell signals.
Previous/Current Day High-Low Breakout Strategy//@version=5
strategy("Previous/Current Day High-Low Breakout Strategy", overlay=true)
// === INPUTS ===
buffer = input(10, title="Buffer Points Above/Below Day High/Low") // 0-10 point buffer
atrMultiplier = input.float(1.5, title="ATR Multiplier for SL/TP") // ATR-based SL & TP
// === DETECT A NEW DAY CORRECTLY ===
dayChange = ta.change(time("D")) != 0 // Returns true when a new day starts
// === FETCH PREVIOUS DAY HIGH & LOW CORRECTLY ===
var float prevDayHigh = na
var float prevDayLow = na
if dayChange
prevDayHigh := high // Store previous day's high
prevDayLow := low // Store previous day's low
// === TRACK CURRENT DAY HIGH & LOW ===
todayHigh = ta.highest(high, ta.barssince(dayChange)) // Highest price so far today
todayLow = ta.lowest(low, ta.barssince(dayChange)) // Lowest price so far today
// === FINAL HIGH/LOW SELECTION (Whichever Happens First) ===
finalHigh = math.max(prevDayHigh, todayHigh) // Use the highest value
finalLow = math.min(prevDayLow, todayLow) // Use the lowest value
// === ENTRY CONDITIONS ===
// 🔹 BUY (LONG) Condition: Closes below final low - buffer
longCondition = close <= (finalLow - buffer)
// 🔻 SELL (SHORT) Condition: Closes above final high + buffer
shortCondition = close >= (finalHigh + buffer)
// === ATR STOP-LOSS & TAKE-PROFIT ===
atr = ta.atr(14)
longSL = close - (atr * atrMultiplier) // Stop-Loss for Long
longTP = close + (atr * atrMultiplier * 2) // Take-Profit for Long
shortSL = close + (atr * atrMultiplier) // Stop-Loss for Short
shortTP = close - (atr * atrMultiplier * 2) // Take-Profit for Short
// === EXECUTE LONG (BUY) TRADE ===
if longCondition
strategy.entry("BUY", strategy.long, comment="🔹 BUY Signal")
strategy.exit("SELL TP", from_entry="BUY", stop=longSL, limit=longTP)
// === EXECUTE SHORT (SELL) TRADE ===
if shortCondition
strategy.entry("SELL", strategy.short, comment="🔻 SELL Signal")
strategy.exit("BUY TP", from_entry="SELL", stop=shortSL, limit=shortTP)
// === PLOT LINES FOR VISUALIZATION ===
plot(finalHigh, title="Breakout High (Prev/Today)", color=color.new(color.blue, 60), linewidth=2, style=plot.style_stepline)
plot(finalLow, title="Breakout Low (Prev/Today)", color=color.new(color.red, 60), linewidth=2, style=plot.style_stepline)
// === ALERT CONDITIONS ===
alertcondition(longCondition, title="🔔 Buy Signal", message="BUY triggered 🚀")
alertcondition(shortCondition, title="🔔 Sell Signal", message="SELL triggered 📉")
Mr Huk Strategy-Coral Trend with Bollinger Bands
This strategy, named "Mr Huk Strategy-Coral Trend with Bollinger Bands," combines the Coral Trend indicator and Bollinger Bands as a technical analysis tool. Written in Pine Script (v5), it is overlaid on the chart. Below is a summary of the strategy:
Key Components
MA 13 (Orange Line):
13-period Simple Moving Average (SMA).
Used as a reference for exit signals.
Plotted in red with a thickness of 3.
Coral Trend Indicator:
Smooths price movements to determine trend direction.
Generates buy-sell signals:
Buy: Coral Trend rises (green circles).
Sell: Coral Trend falls (red circles).
Plotted as circles with a thickness of 3.
Smoothing period (default: 8) and constant coefficient (default: 0.4) are customizable.
Bollinger Bands:
Uses a 20-period SMA (basis) and 2 standard deviations (deviation).
Upper and lower bands are plotted in purple, basis in blue.
The area between bands is filled with semi-transparent purple.
Used to measure volatility and analyze price movements.
Buy-Sell and Exit Rules
Buy Signal: Coral Trend gives a buy signal (green circles).
Sell Signal: Coral Trend gives a sell signal (red circles).
Exit Signals:
First exit: Coral Trend points fall below the line.
Second exit: Price falls below MA 13 (orange line).
Additional Recommendations
Heikin Ashi candles can be used.
When using Heikin Ashi, the "Ha Color Change And Alert" indicator is recommended.
The strategy is described as simple but profitable.
Purpose and Usage
Suitable for trend-following and volatility-based trades.
Parameters (smoothing period, Bollinger period, standard deviation) can be customized by the user.
Clearly displays buy-sell signals and exit points graphically.
This strategy aims to support trading decisions by analyzing trend direction and volatility.
14-Bar High/Low Close ChannelA twist on the Donchian Channels, instead of measuring the highs and lows, we're measuring the closes over a 14-day period
DTFT 1### **Ichimoku Cloud Combined with SMA Indicator**
The **Ichimoku Cloud** (Ichimoku Kinko Hyo) is a comprehensive technical analysis tool that provides insights into trend direction, momentum, and potential support and resistance levels. It consists of five main components:
- **Tenkan-sen (Conversion Line):** A short-term trend indicator (9-period average).
- **Kijun-sen (Base Line):** A medium-term trend indicator (26-period average).
- **Senkou Span A & B (Leading Spans):** These form the "cloud" (Kumo), indicating support and resistance zones.
- **Chikou Span (Lagging Line):** A trend confirmation tool based on past price action.
When combined with the **Simple Moving Average (SMA)**, traders can enhance their strategy by integrating a widely used trend-following indicator with Ichimoku’s comprehensive view. The SMA smooths price action and helps confirm trends indicated by the Ichimoku Cloud.
### **Trading Strategy: Ichimoku + SMA**
1. **Trend Confirmation:** If the price is above the cloud and the SMA, it confirms an uptrend; if below both, a downtrend.
2. **Entry Signals:** A bullish signal occurs when price breaks above the SMA and the Ichimoku cloud turns bullish. A bearish signal happens when price drops below the SMA and the cloud turns bearish.
3. **Support & Resistance:** The SMA and Ichimoku cloud act as dynamic support/resistance levels. A bounce from these levels can provide trade opportunities.
4. **Crossovers:** If the SMA crosses the Kijun-sen (Base Line), it may indicate a shift in momentum.
By combining Ichimoku Cloud and SMA, traders can gain a more robust understanding of market trends, improving decision-making for both short-term and long-term trades.
Overnight High and Low for Indices, Metals, and EnergySimple script for ploting overnight high and low on metal, indices and Energy (mostly traded) instrument
UM-Optimized Linear Regression ChannelDESCRIPTION
This indicator was inspired by Dr. Stoxx at drstoxx.com. Shout out to him and his services for introducing me to this idea. This indicator is a slightly different take on the standard linear regression indicator.
It uses two standard deviations to draw bands and dynamically attempts to best-fit the data lookback period using an R-squared statistical measure. The R-squared value ranges between zero and one with zero being no fit to the data at all and 1 being a 100% match of the data to linear regression line. The R-squared calculation is weighted exponentially to give more weight to the most recent data.
The label provides the number of periods identified as the optimal best-fit period, the type of loopback period determination (Manual or Auto) and the R-squared value (0-100, 100% being a perfect fit). >=90% is a great fit of the data to the regression line. <50% is a difficult fit and more or less considered random data.
The lookback mode can also be set manually and defaults to a value of 100 periods.
DEFAULTS
The defaults are 1.5 and 2.0 for standard deviation. This creates 2 bands above and below the regression line. The default mode for best-fit determination with "Auto" selected in the dropdown. When manual mode is selected, the default is 100. The modes, manual lookback periods, colors, and standard deviations are user-configurable.
HOW TO USE
Overlay this indicator on any chart of any timeframe. Look for turning points at extremes in the upper and lower bands. Look for crossovers of the centerline. Look at the Auto-determination for best fit. Compare this to your favorite Manual mode setting (Manual Mode is set to 100 by default lookback periods.)
When price is at an extreme, look for turnarounds or reversals. Use your favorite indicators, in addition to this indicator, to determine reversals. Try this indicator against your favorite securities and timeframes.
CHART EXAMPLE
The chart I used for an example is the daily chart of IWM. I illustrated the extremes with white text. This is where I consider proactively exiting an existing position and/or begin looking for a reversal.
RSI overbought /Oversold Crossover Strategyworks great with bollinger band look for signals near the top and bottom for good entry combining with bollinger band
Multi-Timeframe Trend StatusThis Multi-Timeframe Trend Status indicator tracks market trends across four timeframes ( by default, 65-minute, 240-minute, daily, and monthly). It uses a Volatility Stop based on the Average True Range (ATR) to determine the trend direction. The ATR is multiplied by a user-adjustable multiplier to create a dynamic buffer zone that filters out market noise.
The indicator tracks the volatility stop and trend direction for each timeframe. In an uptrend, the stop trails below the price, adjusting upward, and signals a downtrend if the price falls below it. In a downtrend, the stop trails above the price, moving down with the market, and signals an uptrend if the price rises above it.
Two input parameters allow for customization:
ATR Length: Defines the period for ATR calculation.
ATR Multiplier: Adjusts the sensitivity of trend changes.
This setup lets traders align short-term decisions with long-term market context and spot potential trading opportunities or reversals.
"Multi-MA Trend Ribbon" 21+36,50,100,200,300 EMA
Below is a detailed description of the "Moving Average Explorer" indicator based on the provided Pine Script code. This description covers its purpose, features, and functionality, suitable for documentation or sharing with users:
Moving Average Explorer Indicator
Version: 5
License: Mozilla Public License 2.0
Author: traderview2
Last Updated: 12/19/24
Overview
The Moving Average Explorer is a versatile technical analysis indicator designed for TradingView that allows users to visualize and analyze multiple moving averages (MAs) on a price chart. It provides customizable MA lengths and types, visual ribbon coloring for trend identification, cross alerts, and an optional value table for quick reference. This indicator is ideal for traders who use multiple moving averages to identify trends, support/resistance levels, and potential entry/exit points.
Key Features
Customizable Moving Averages:
Supports up to 6 moving averages with user-defined lengths and types.
Default lengths: 21 EMA, 36 EMA, 50 MA, 100 MA, 200 MA, and 300 MA.
MA types include EMA (Exponential), SMA (Simple), HMA (Hull), WMA (Weighted), DEMA (Double Exponential), VWMA (Volume Weighted), and VWAP (Volume Weighted Average Price).
Option to disable individual MAs or set a global MA type for all lines.
Trend Visualization:
Displays MAs as colored lines on the chart, with customizable colors for each MA.
Optional ribbon mode fills the space between MAs with bullish (green) or bearish (red) colors based on trend direction.
Trend detection based on the relationship between the 21 EMA (MA #1) and 200 MA (MA #5), with alerts for bullish and bearish crosses.
Cross Detection:
Identifies bullish (21 EMA > 200 MA) and bearish (200 MA > 21 EMA) crosses.
Optional plotting of cross signals using green (bullish) and red (bearish) cross markers.
Alerts triggered on cross events (once per bar close) for timely notifications.
Value Table:
Optional table displaying current MA values, ATR (Average True Range), and trend status.
Customizable table location (Top Right, Top Left, Bottom Left, Bottom Right).
Table colors adapt to ribbon mode for better visibility.
Displays the length, type, and current value of each MA, along with the 14-period ATR.
User Customization:
Toggle individual MAs on/off for cleaner visualization.
Choose between line plots or colored ribbon fills.
Customize bullish and bearish ribbon colors (default: semi-transparent green and red).
Adjust MA lengths in increments of 10 for quick tuning.
How It Works
Moving Averages: The indicator calculates up to 6 MAs based on user inputs. The default setup includes:
21 EMA (fast)
36 EMA (fast-medium)
50 MA (medium)
100 MA (medium-long)
200 MA (long)
300 MA (very long)
Trend Detection: The indicator compares the 21 EMA (MA #1) and 200 MA (MA #5) to determine the trend:
Bullish trend: 21 EMA > 200 MA
Bearish trend: 200 MA > 21 EMA
Ribbon Mode: When enabled, the space between MAs is filled with colors to visually represent the trend direction.
Cross Alerts: Alerts are triggered when the 21 EMA crosses above (bullish) or below (bearish) the 200 MA.
ATR Display: The 14-period ATR is included in the table for volatility reference.
Inputs and Settings
Accessibility Settings:
Enable/disable ribbon mode for trend visualization.
Customize bullish and bearish ribbon colors.
Toggle cross markers and the value table.
Choose table location on the chart.
MA Settings:
Enable/disable individual MAs.
Set custom lengths for each MA (minimum 1, adjustable in steps of 10).
Choose MA type for each line or set a global type for all MAs.
Default MA types are EMA, but users can switch to other types as needed.
Usage Examples
Trend Following: Use the 21 EMA and 36 EMA for short-term trend confirmation, and longer MAs (200, 300) for major trend direction.
Cross Strategy: Trade bullish/bearish crosses between the 21 EMA and 200 MA, with alerts for timely entries.
Ribbon Analysis: Enable ribbon mode to visually identify trend strength based on the alignment of MAs.
Volatility Context: Use the ATR value in the table to gauge market volatility and adjust position sizing.
Visual Elements
MA Lines: Each MA is plotted with a distinct color (red, orange, yellow, green, blue, purple) for easy identification.
Ribbon Fills: Semi-transparent fills between MAs in ribbon mode, colored based on trend direction.
Cross Markers: Green (bullish) and red (bearish) cross symbols at crossing points.
Value Table: Displays trend status, MA values, and ATR in a customizable location.
Notes
The indicator is overlay-based and works best on price charts.
Performance may vary depending on the number of MAs enabled and the chart's timeframe.
For optimal visibility, adjust colors and table location based on your chart background (light/dark mode).
Changelog
03/23/23: Added ribbon functionality and value table.
04/02/23: Improved user inputs and added interactive MA length display in the table.
04/06/23: Added on/off toggle for each MA and customizable table location.
12/19/24: Added color customization for ribbon bands.
License
This indicator is released under the Mozilla Public License 2.0. See mozilla.org for details.
This description provides a comprehensive overview of the indicator's functionality and usage, making it suitable for sharing with other traders or including in documentation. Let me know if you'd like to refine any specific section!
BW by readCrypto
Hello, traders.
If you "Follow", you can always get new information quickly.
Please also click "Boost".
Have a nice day today.
-------------------------------------
BW indicator is an indicator that displays StochRSI, MACD, OBV, and superTrend indicators integrated.
The BW(100) indicator is created when
- StochRSI indicator is 50 or higher,
- MACD indicator's haMSignal > haSSignal,
- OBV indicator rises above the previous high,
- superTrend indicator rises above the Sell line
The above conditions are met and it falls.
The BW(0) indicator is created when
- StochRSI indicator is below 50,
- MACD indicator is haMSignal < haSSignal,
- OBV indicator falls below the previous low,
- superTrend indicator falls below the Buy line
The above conditions are satisfied and it rises.
-
(Interpretation method)
Accordingly, the creation of the BW(100) indicator can be interpreted as meaning that it has fallen from the high point range.
Therefore, the point where the BW(100) indicator is created is likely to be the resistance point.
The creation of the BW(0) indicator can be interpreted as meaning that it has risen from the low point range.
Therefore, the point where the BW(0) indicator is created is likely to be the support point.
-
Since this BW indicator includes the OBV indicator that refers to the trading volume, it cannot be used on index charts that do not display the trading volume.
I think intuition is important when trading.
I think that indicators like this, which are displayed on the price candles, that is, indicators that show support and resistance points, increase intuitiveness when trading.
-
Thank you for reading to the end.
I hope you have a successful trade.
--------------------------------------------------
안녕하세요?
트레이더 여러분, 반갑습니다.
"팔로우"를 해 두시면, 언제나 빠르게 새로운 정보를 얻으실 수 있습니다.
"부스트" 클릭도 부탁드립니다.
오늘도 좋은 하루되세요.
-------------------------------------
BW 지표는 StochRSI, MACD, OBV, superTrend 지표를 통합하여 표시한 지표입니다.
BW(100) 지표의 생성은
- StochRSI 지표가 50 이상,
- MACD 지표의 haMSignal > haSSignal,
- OBV 지표가 이전 고점 이상 상승,
- superTrend 지표가 Sell선 이상 상승
위의 조건이 만족한 상태에서 하락하게 되면 생성됩니다.
BW(0) 지표의 생성은
- StochRSI 지표가 50 이하,
- MACD 지표가 haMSignal < haSSignal,
- OBV 지표가 이전 저점 이하로 하락,
- superTrend 지표가 Buy선 이하로 하락
위의 조건이 만족한 상태에서 상승하게 되면 생성됩니다.
-
(해석 방법)
이에 따라서, BW(100) 지표가 생성되었다는 의미는 고점 구간에서 하락하였다는 의미로 해석할 수 있습니다.
그러므로, BW(100) 지표가 생성된 지점이 저항 지점이 될 가능성이 높습니다.
BW(0) 지표가 생성되었다는 의미는 저점 구간에서 상승하였다는 의미로 해석할 수 있습니다.
그러므로, BW(0) 지표가 생성된 지점이 지지 지점이 될 가능성이 높습니다.
-
이 BW 지표는 거래량를 참고하는 OBV 지표가 포함되어 있기 때문에 거래량 표시가 없는 지수 차트에서는 사용할 수 없습니다.
거래시에는 직관성이 중요하다고 생각합니다.
이렇게 가격 캔들 부분에 표시된 지표, 즉, 지지와 저항 지점을 표시하는 지표는 거래시 직관성을 높여 준다고 생각합니다.
-
끝까지 읽어주셔서 감사합니다.
성공적인 거래가 되기를 기원입니다.
--------------------------------------------------
kubebot533nxxcgfdgdfgdfgdfgdfgdfgdggdgddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddd dddddddddddd ddddddddddddddd ddddddd dddddddd dddddddddddddddddd dddddddddddddd ddd ddd ddddddddddddd dddddddddd ddddddddddd ddddddddd ddddddddd dddddd ddddd d d d d d dd d dd d dd ddddd d d d d
Dual MTF MADescription:
Parameters:
MA Type: Choose between Simple (SMA) and Exponential (EMA) Moving Average
MA Length: Number of periods for calculation (default 20)
Source: Price source for calculations (Close/Open/High/Low)
Offset: Shift lines forward/backward in time
Features:
Works on any timeframe without code modifications
Displays overlay on price chart (overlay=true)
Customizable visual settings (color, thickness)
Usage:
Trend identification
Price crossover detection
Support/resistance analysis
10 EMA Indicator ( Murod Khamidov )Quyidagi qisqacha maʼlumot indikatorning asosiy funksiyalarini tushuntiradi:
10 EMA Indikatori
Koʻp vaqt oraligʻidagi hisoblash: Indikator TradingView’da 10 ta eksponentsial harakatlanuvchi o‘rtacha (EMA) ni hisoblaydi, har biri uchun alohida timeframe (vaqt oraligʻi) tanlash imkoniyati mavjud.
Moslashtiriladigan parametrlar: Har bir EMA uchun mustaqil ravishda parametrlar belgilanishi mumkin:
Length: Hisoblash davri (period) aniqlanadi.
Source: Hisoblash uchun asosiy narx (masalan, close) tanlanadi.
Offset: Chizma siljishi uchun qiymat.
Vizual ajratish: Har bir EMA turli rang bilan chiziladi, bu esa grafikda ularni oson aniqlash imkonini beradi.
Tahlil va strategiya: Indikator yordamida bozor tendensiyalari, trend yo‘nalishlari va potentsial signal nuqtalari tezda aniqlanishi mumkin.
Ushbu indikator turli strategiyalar va tahlillar uchun qulaylik yaratib, bozordagi o‘zgarishlarni tezda kuzatib borishga yordam beradi.
10 EMA HTF LTF10 EMA HTF LTF – Exponential Moving Averages Indicator
📌 Indikator haqida
Ushbu indikator joriy vaqt oralig‘ida (LTF – Lower Timeframe) va yuqori vaqt oralig‘ida (HTF – Higher Timeframe) trendni tahlil qilish uchun 10 ta Exponential Moving Average (EMA) chizadi. Har bir EMA o‘zining uzunligiga qarab, harakatlanish tezligiga ega bo‘lib, trendlardagi o‘zgarishlarni kuzatish va trend davomiyligini aniqlash imkonini beradi.
📊 Xususiyatlar
✅ 10 ta EMA: (10, 15, 20, 25, 30, 35, 40, 45, 50, 55)
✅ Trendlardagi o‘zgarishlarni kuzatish uchun mos
✅ Rangli va aniq grafik tasvir
✅ Qisqa va uzoq muddatli trendlarni aniqlashga yordam beradi
📈 Foydalanish usuli
EMA’lar fanning shakliga kirsa, bu kuchli trend mavjudligini bildiradi.
Narx EMA’lardan yuqorida bo‘lsa – bullish trend (o‘sish), pastda bo‘lsa – bearish trend (pasayish).
EMA’lar bir-biriga yaqinlashsa – konsolidatsiya yoki trend o‘zgarishi ehtimoli bor.
🔔 Qaysi treyderlar uchun mos?
✔ Skalperlar va intraday treyderlar – qisqa muddatli trendlarni kuzatish uchun.
✔ Swing treyderlar – uzoq muddatli trendlarga asoslangan strategiyalar uchun.
✔ Yangi boshlovchilar – asosiy trend tahlil qilishni o‘rganish uchun oddiy va tushunarli indikator.
💡 Qo‘shimcha fikrlar
Bu indikator har qanday aktiv (forex, aksiyalar, kriptovalyuta) uchun ishlaydi va boshqa indikatorlar bilan birga qo‘llash mumkin.
Bollinger Bands & RSI SignalThis trading signal script generates **buy and sell alerts** based on a combination of **Bollinger Bands** and the **Relative Strength Index (RSI)**.
### **How It Works**
- **Buy Signal:** Triggers when the price touches or falls below the **lower Bollinger Band**, RSI is **below the minimum threshold**, and Bollinger Band width is sufficiently large.
- **Sell Signal:** Triggers when the price reaches or exceeds the **upper Bollinger Band**, RSI is **above the maximum threshold**, and the Bollinger Band width meets the minimum size requirement.
- The script helps identify **potential reversal points** in the market where price movements may be overextended.
### **Best Use Cases**
- Suitable for **range-bound** and **volatile markets**.
- Can be used to confirm **overbought/oversold conditions** before entering trades.
- Works well on **shorter timeframes (1m, 5m, 15m)** for intraday traders.
Pullback Strategy Scalping SolgovEstrategia por Solgov Pullback para diferentes tipos de mercado, optimizado divisas a 1 minuto recomendacion si son entradas binarias salir en cuarta vela a partir de entrada, si entras con SL y TP 1:1.67
JAAR