Stema sau Banul📜 Povestea Indicatorului „Stema sau Banul” 🎲💰
În vremuri de demult, când piețele financiare erau dominate de strategii complexe și analiști îmbrăcați în costume scumpe, un investitor legendar pe nume Maestrul Stemei și-a pus o întrebare simplă:
👉 „Dacă oricum piețele sunt imprevizibile, de ce să nu lăsăm soarta să decidă?”
Astfel, într-o noapte ploioasă, în fața unui birou plin de grafice și lumânări roșii și verzi, Maestrul Stemei a luat o monedă veche de aur și a început să o arunce.
Dacă ieșea Stema, el cumpăra.
Dacă ieșea Banul, vindea fără ezitare.
Spre uimirea tuturor, strategia sa pur aleatorie a început să rivalizeze cu cele mai sofisticate modele matematice. Traderii de pe Wall Street îl priveau cu neîncredere, iar roboții de tranzacționare încercau să-l copieze. Dar nimeni nu putea egala simplitatea filozofiei sale: „Lasă banul să vorbească”.
Astăzi, moștenirea Maestrului Stemei continuă prin acest indicator, care îți oferă semnale bazate pe vechea metodă a aruncării monedei. Va fi norocul de partea ta? Sau vei blestema ziua în care ai ascultat de un cod care decide aleatoriu? 🎲
💡 Regulă de aur:
➡ Dacă pierzi, spune că e doar o glumă.
➡ Dacă câștigi, pretinde că ai descoperit un algoritm revoluționar.
Acum, Stema sau Banul îți stă la dispoziție! 🎩📈
Patrones de gráficos
Hôm qua RSI14_EMA9_WMA45_V09rsi ema wma
Buy khi thoa man dieu kien: ema9 cắt lên wma45 và thỏa mãn rsi >y, wma>x ema >z
Sell khi thoa man dieu kien: ema9 cắt xuong wma45 và thỏa mãn rsi >y, wma>x ema >z
Estrategia Barrido de Liquidez + EMAsDetección de swing highs (H) y swing lows (L).
Confirmación con EMAs, RSI y volumen.
Reglas de entrada/salida y gestión de riesgo.
Probability Signal This Pine Script code is designed for use on the TradingView platform to help traders make decisions based on certain technical indicators. Here's an explanation of how the code functions overall:
Strategy Setup:
The strategy is titled "Probability Signal " and is overlaid on the chart.
The default position size is set to 10% of equity.
Inputs:
Several user-defined inputs are provided for the strategy, including:
length (Regression Length): The number of periods to consider for calculating the Linear Regression line.
smoothing: A smoothing period for the Linear Regression line.
deviation: A multiplier used to define the width of the bands (calculated using standard deviation).
useMACD: A boolean option to activate a MACD filter for buy/sell signals.
useStrategy: A boolean option to enable the strategy tester for backtesting purposes.
TP_pips_input and SL_pips_input: Define the take profit and stop loss values in pips (user-defined settings).
MACD Calculation:
The Moving Average Convergence Divergence (MACD) is calculated using the source data (close price). This helps filter out trade signals based on the MACD's position relative to zero.
Linear Regression Line (LRL) and Smoothing:
A Linear Regression line is calculated using the ta.linreg() function.
The result is then smoothed using a simple moving average (ta.sma()), allowing for a more stable representation of price trends.
Standard Deviation and Bands:
The standard deviation of the source data (close price) is calculated.
The upper and lower bands are created around the smoothed regression line by adding and subtracting a multiple of the standard deviation (based on the deviation input).
Trend Slope and Trend Detection:
The slope of the smoothed regression line is calculated to determine whether the trend is upwards (green) or downwards (red).
If the trend changes (bullish or bearish cross), a signal is generated.
Buy/Sell Signal Validation:
A bullish signal (valid buy) is generated when the trend shifts from red to green, and optionally when the MACD line is below zero (if the MACD filter is activated).
A bearish signal (valid sell) occurs when the trend shifts from green to red, and optionally when the MACD line is above zero.
Labeling and Alerts:
When a buy or sell signal is validated, a corresponding label ("BUY" or "SELL") is displayed on the chart, slightly offset from the low/high of the candle.
A dynamic alert message is generated, showing the entry price, take profit (TP) level, and stop loss (SL) level for the trade.
Strategy Orders (When Strategy Tester is Enabled):
If the strategy tester is enabled (useStrategy = true), buy and sell entries are placed:
For a buy, a "Long" position is entered, and a corresponding exit order is placed based on the user-defined TP and SL levels.
For a sell, a "Short" position is entered, and similarly, the exit order is based on the TP and SL.
The script, overall, aims to give trade signals (buy and sell) based on a combination of trend analysis using Linear Regression and optionally filtered by MACD. It also allows for backtesting with the strategy tester, using stop loss and take profit targets set in pips.
Callout Signals (RSI + MACD)ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffffff
[SHORT ONLY] Consecutive Bars Above MA Strategy█ STRATEGY DESCRIPTION
The "Consecutive Bars Above MA Strategy" is a contrarian trading system aimed at exploiting overextended bullish moves in stocks and ETFs. It monitors the number of consecutive bars that close above a chosen short-term moving average (which can be either a Simple Moving Average or an Exponential Moving Average). Once the count reaches a preset threshold and the current bar’s close exceeds the previous bar’s high within a designated trading window, a short entry is initiated. An optional EMA filter further refines entries by requiring that the current close is below the 200-period EMA, helping to ensure that trades are taken in a bearish environment.
█ HOW ARE THE CONSECUTIVE BULLISH COUNTS CALCULATED?
The strategy utilizes a counter variable, `bullCount`, to track consecutive bullish bars based on their relation to the short-term moving average. Here’s how the count is determined:
Initialize the Counter
The counter is initialized at the start:
var int bullCount = na
Bullish Bar Detection
For each bar, if the close is above the selected moving average (either SMA or EMA, based on user input), the counter is incremented:
bullCount := close > signalMa ? (na(bullCount) ? 1 : bullCount + 1) : 0
Reset on Non-Bullish Condition
If the close does not exceed the moving average, the counter resets to zero, indicating a break in the consecutive bullish streak.
█ SIGNAL GENERATION
1. SHORT ENTRY
A short signal is generated when:
The number of consecutive bullish bars (i.e., bars closing above the short-term MA) meets or exceeds the defined threshold (default: 3).
The current bar’s close is higher than the previous bar’s high.
The signal occurs within the specified trading window (between Start Time and End Time).
Additionally, if the EMA filter is enabled, the entry is only executed when the current close is below the 200-period EMA.
2. EXIT CONDITION
An exit signal is triggered when the current close falls below the previous bar’s low, prompting the strategy to close the short position.
█ ADDITIONAL SETTINGS
Threshold: The number of consecutive bullish bars required to trigger a short entry (default is 3).
Trading Window: The Start Time and End Time inputs define when the strategy is active.
Moving Average Settings: Choose between SMA and EMA, and set the MA length (default is 5), which is used to assess each bar’s bullish condition.
EMA Filter (Optional): When enabled, this filter requires that the current close is below the 200-period EMA, supporting entries in a downtrend.
█ PERFORMANCE OVERVIEW
This strategy is designed for stocks and ETFs and can be applied across various timeframes.
It seeks to capture mean reversion by shorting after a series of bullish bars suggests an overextended move.
The approach employs a contrarian short entry by waiting for a breakout (close > previous high) following consecutive bullish bars.
The adjustable moving average settings and optional EMA filter allow for further optimization based on market conditions.
Comprehensive backtesting is recommended to fine-tune the threshold, moving average parameters, and filter settings for optimal performance.
VWAP & EMA Trend Trading with buy and sell signalin my opinion after using so many indicators this is the only indicator i need to scalp or swing depending on what we want to accomplish easy read of buy and sell signal. Too much complication clutters the mind and very hard to get in any trade and leave so much on the table , small position with high probablity trades is all we need. good luck all.
BTC Smart Volume Confirmation Btc Market Stats Panel Introduction I've created a script that brings TradingView's watchlist stats panel functionality directly to your charts. This isn't just another performance indicator - it's a
RSI14_EMA9_WMA45_V06Cập nhật tùy biến:
RSI EMA WMA
Cài đặt thông số tiêu chuẩn rsi14, ema9, wma45
Buy khi: ema9 cắt lên wma45 và rsi <40
Sell khi : ema9 cắt xuống wma50 và rsi >50
RSI14_EMA9_WMA45_V02ĐIều kiện vào lệnh
rsi 14 ema9 và wma45
Buy: ema9 cắt lên wma45 và thỏa mãn rsi tại vùng x (x tùy biến)
Sell: ema9 cắt xuống wma45 và thỏa mãn rsi tại vùng x (x tùy biến)
EMA & SMA IndicatorThis indicator displays Exponential Moving Averages (EMA) and a Simple Moving Average (SMA) to help analyze market trends.
Features:
✅ EMA 9, 21, 50, 200 – show short-term, mid-term, and long-term trends.
✅ SMA 9 – an additional filter for short-term analysis.
✅ Labels on the last candle – makes it easy to identify moving average levels without cluttering the chart.
✅ Clear color coding – distinct lines that enhance visualization without distractions.
🔹 How to Use:
Works for all markets (Forex, Stocks, Crypto, etc.).
EMA 9 & 21 help identify short-term entry and exit points.
EMA 50 & 200 provide insights into the overall market trend.
SMA 9 serves as a confirmation tool.
This indicator is designed to improve market analysis and help traders make informed decisions! 🚀
Scalping Cripto con Indicadores Combinados PegofeThis script is a scalping strategy designed for the crypto market, using key indicators to filter high-probability entries and exits. The strategy is optimized for a minimum risk/reward ratio of 1:2, ensuring sustainable profitability over time.
🔹 📊 Indicators Used: ✔ EMA 9 & EMA 21: Identify trends and momentum shifts.
✔ VWAP: Evaluates relative price levels to avoid overbought/oversold zones.
✔ Stochastic RSI: Detects extreme conditions and confirms trade setups.
✔ ATR (Average True Range): Sets dynamic Stop Loss & Take Profit based on market volatility.
🔹 📌 Entry & Exit Conditions: ✅ Long Entry:
EMA 9 crosses EMA 21 upwards 📈
Price is above VWAP ✅
Stochastic RSI < 20 (indicating oversold and potential reversal)
✅ Short Entry:
EMA 9 crosses EMA 21 downwards 📉
Price is below VWAP ❌
Stochastic RSI > 80 (indicating overbought and potential drop)
✅ Risk Management:
Stop Loss: 1.5x ATR
Take Profit: 2x ATR (minimum 1:2 risk/reward ratio)
BTC Strategy with High Accuracy (Example)BTC script BTC script BTC script BTC script BTC script BTC script BTC script BTC script
Pegofe NY Breakout StrategyDescription for TradingView Publication
Title: Pegofe NY Breakout Strategy – EUR/USD (1:2 Risk/Reward)
Description:
The Pegofe NY Breakout Strategy is designed to capture high-probability trading opportunities in EUR/USD at the opening of the New York session (15:30 Spain / 14:30 UTC) on a 5-minute timeframe.
Key Features:
✅ Trend Confirmation: Uses EMA 50 and EMA 9 to filter high-probability trades.
✅ Momentum-Based Entries: Combines RSI (14) and EMA crossovers to detect overbought/oversold conditions.
✅ Risk-Reward Ratio of 1:2: Automatically calculates Stop Loss (SL) and Take Profit (TP) based on ATR (14) for dynamic volatility adjustment.
✅ Clear Trade Signals: Visual buy and sell signals appear when the entry criteria are met.
✅ Stop Loss & Take Profit Labels: Displays SL and TP levels on the chart using label.new() for better visualization.
Entry Conditions:
📈 Long Entry (Buy Signal):
• The price is above EMA 50 (uptrend).
• RSI < 35 (oversold).
• EMA 9 crosses above the price.
• The trade occurs after 14:30 UTC (New York session open).
📉 Short Entry (Sell Signal):
• The price is below EMA 50 (downtrend).
• RSI > 65 (overbought).
• EMA 9 crosses below the price.
• The trade occurs after 14:30 UTC (New York session open).
How It Works:
• When a valid trade setup occurs, the strategy executes an entry order and automatically sets a Stop Loss (1.5x ATR) and Take Profit (2x SL).
• The SL and TP levels are dynamically adjusted based on market volatility.
• The script labels SL and TP directly on the chart for better tracking.
Recommended Settings:
• Market: EUR/USD
• Timeframe: 5 minutes
• Session: After 14:30 UTC (New York open)
🚀 Try it now and optimize your NY session trading!
SOL Multi-Indicator StrategyThis strategy is designed to identify potential trading opportunities in the Solana (SOL) market by combining trend, momentum, and overbought/oversold indicators. Here’s how it works:
1. **Trend Detection with EMAs:**
- The strategy calculates two exponential moving averages (EMAs): a **fast EMA** (shorter period) and a **slow EMA** (longer period).
- **Buy Signal:** When the fast EMA crosses above the slow EMA, it suggests that the short-term price momentum is turning bullish.
- **Sell Signal:** Conversely, when the fast EMA crosses below the slow EMA, it indicates a potential downturn.
2. **Momentum and Overbought/Oversold Check with RSI:**
- The Relative Strength Index (RSI) is used to measure whether the market is overbought or oversold.
- **Buy Signal:** An RSI value below the oversold threshold (e.g., 30) suggests that the market may be undervalued and could be due for a bounce.
- **Sell Signal:** An RSI value above the overbought threshold (e.g., 70) indicates that the market might be overextended and due for a reversal.
3. **Additional Momentum Confirmation with MACD:**
- The MACD (Moving Average Convergence Divergence) indicator is used to gauge momentum changes.
- **Buy Signal:** A bullish crossover, where the MACD line crosses above its signal line, adds further confirmation that upward momentum is building.
- **Sell Signal:** A bearish crossover, where the MACD line crosses below its signal line, reinforces the possibility of declining momentum.
4. **Entry and Exit Conditions:**
- **Entry (Buy):** The strategy initiates a long position when all the following conditions are met:
- The fast EMA crosses above the slow EMA.
- The RSI is below the oversold threshold.
- The MACD line crosses above its signal line.
- **Exit (Sell):** The strategy exits the long position when any one of these conditions occurs:
- The fast EMA crosses below the slow EMA.
- The RSI rises above the overbought threshold.
- The MACD line crosses below its signal line.
5. **Plotting for Visual Confirmation:**
- The EMAs, RSI, and MACD lines are plotted on the chart. The use of `color.new()` ensures that the plotted lines have the desired transparency, making the visual representation clearer.
**Note:**
- This is an example strategy and should be thoroughly backtested and optimized before being used with real money.
- The script does not include additional risk management measures (like stop losses or position sizing beyond a percentage of equity), so you might want to incorporate those based on your trading requirements.
This multi-indicator approach aims to filter out false signals by requiring confirmation from multiple technical tools, ideally helping you capture strong moves in the SOL market.
Fair Value Gap (FVG) Detector//@version=6
indicator("Fair Value Gap (FVG) Detector", overlay=true)
// User Settings
show_bullish_fvg = input(true, title="Show Bullish FVG")
show_bearish_fvg = input(true, title="Show Bearish FVG")
gap_threshold = input(0.5, title="Gap Threshold (%)") / 100 // Minimum gap percentage
// Calculating Fair Value Gaps
prev_high = high
prev_low = low
current_low = low
current_high = high
// Bullish Fair Value Gap (Previous high > Current low)
bullish_fvg = show_bullish_fvg and (prev_high > current_low) and ((prev_high - current_low) / prev_high > gap_threshold)
// Bearish Fair Value Gap (Previous low < Current high)
bearish_fvg = show_bearish_fvg and (prev_low < current_high) and ((current_high - prev_low) / prev_low > gap_threshold)
// Plot Bullish FVG
if bullish_fvg
var box b = na
b := box.new(left=bar_index , right=bar_index, top=prev_high, bottom=current_low, bgcolor=color.new(color.green, 90), border_color=color.green)
// Plot Bearish FVG
if bearish_fvg
var box b = na
b := box.new(left=bar_index , right=bar_index, top=current_high, bottom=prev_low, bgcolor=color.new(color.red, 90), border_color=color.red)