EMA Cloud Strategy by SumitGreen cloud when price above 9 ema and 9 ema above 21 ema, Red cloud when price below 9 ema and 9 ema below 21 ema
نماذج فنيه
Intraday Gap Detector BY(ELCHEQUE)Intraday Gap Detector
PUEDES VER EN LA GRAFICA CUANDO DEJE UN GAP UP Y UN GAP DOW
1302911to je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je mojeto je moje
EMA Crossover with Candle Color //@version=5
indicator("EMA Crossover with Candle Color", overlay=true)
// Input untuk EMA
shortLength = input(9, title="Short EMA")
longLength = input(21, title="Long EMA")
// Menghitung EMA
shortEMA = ta.ema(close, shortLength)
longEMA = ta.ema(close, longLength)
// Menentukan persilangan
crossUp = ta.crossover(shortEMA, longEMA)
crossDown = ta.crossunder(shortEMA, longEMA)
// Warna candle berubah ketika terjadi persilangan
barColor = crossUp ? color.green : crossDown ? color.red : na
// Plot EMA
plot(shortEMA, title="Short EMA", color=color.blue, linewidth=2)
plot(longEMA, title="Long EMA", color=color.orange, linewidth=2)
// Memberikan tanda panah pada persilangan
plotshape(crossUp, location=location.belowbar, color=color.green, style=shape.labelup, title="Cross Up")
plotshape(crossDown, location=location.abovebar, color=color.red, style=shape.labeldown, title="Cross Down")
// Mengubah warna candle saat persilangan
barcolor(barColor)
Custom Strategy with Enhancements (Version 6)Custom Strategy with Enhancements (Version 6
Sure! I’ll adjust the script to reflect the trading time window from 9:30 AM to 3:30 PM. The time range can be defined more specifically by converting these hours into Unix timestamps, and we will check if the current time falls within this period.
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 📉")
Pro 100x Futures StrategySingle-Line Calls: Having each strategy.exit call on a single line reduces the chance of Pine Script misinterpreting line breaks.
Removed Trailing Parameters: By removing trail_points and trail_offset, the function call is simpler. You can reintroduce them once it compiles without error.
Consistent Indentation: Pine Script can be picky about indentation, especially after if statements.
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
Alerta de Entrada para NVDA y TSLAEste script es una herramienta útil para traders que buscan oportunidades de compra en acciones como NVIDIA y Tesla, utilizando indicadores técnicos como el RSI y el Stochastic. Proporciona alertas en tiempo real y gráficos visuales para facilitar la toma de decisiones. ¡Espero que te sea de gran ayuda en tu trading!
Heikin Horizon v7Heikin Horizon v7 – User Guide and Instructions
Heikin Horizon v7 is a multi-faceted tool designed to help you analyze market trends using Heikin-Ashi candles across multiple timeframes, detect various price patterns, and backtest your trading strategies. The following guide will walk you through setting up and using the indicator:
1. Initial Setup & Feature Unlocking
Access Control:
If required, enter the designated access phrase to unlock all features.
Once unlocked, you can access advanced settings and visual outputs.
Basic Configuration:
In the indicator’s input panel, configure your preferred settings for Heikin-Ashi analysis, including the primary parameters for your chart.
2. Pattern Analysis Configuration
Pattern Selection:
Choose from a list of predefined patterns (e.g., Bullish, Bearish, Consolidation) or define your own custom pattern.
The indicator automatically detects and labels these patterns as they occur.
Timeframe Settings:
Set separate timeframes for short-term and long-term pattern detection.
These settings allow the indicator to analyze trends over different periods for a comprehensive view.
Pattern Table Display:
Enable the Pattern Table to view detailed metrics about detected patterns, such as:
Current trend direction
Frequency of occurrence
Win rate and conversion rates
You can position this table anywhere on your chart (Top Left, Top Center, etc.) via the settings.
3. Multi-Timeframe Trend Analysis
Trend Overview:
The indicator aggregates Heikin-Ashi trends from several timeframes—from seconds to daily intervals.
Each timeframe is represented with its own color coding (e.g., green for bullish, red for bearish) for easy recognition.
Visual Table Options:
Enable and position the Multi-Timeframe Analysis Table to quickly assess the overall market trend.
This table aids in understanding how short-term trends align with longer-term market behavior.
4. Backtesting and Trade Statistics
Backtest Setup:
Configure key parameters such as trade duration, sample size, take profit, and stop loss levels.
Adjust thresholds for expected move and win rate to filter out less significant trades.
Performance Tables and Graphs:
Enable the Backtest Table and/or Graph to review:
Total trades taken
Win rate (percentage of winning trades)
Average win and loss sizes
Profit factor and final balance estimates
These visual and numerical outputs help you gauge the historical performance of your strategy.
5. Outcome and Historical Performance Analysis
Outcome Breakdown:
Enable the Outcomes Table to see a detailed breakdown of each potential price move outcome.
Metrics include count, average candle body size, and expected price changes for different outcomes.
Historical Data Table:
The History Table offers a bar-by-bar analysis showing expected versus actual high, low, and closing values.
Use this table to review how patterns performed historically and to adjust your strategy accordingly.
6. Visual Enhancements & Alert Configuration
Candle Coloring:
Optionally enable candle coloring to highlight candles that match your selected pattern.
This feature provides immediate visual feedback on pattern occurrences.
Alert Setup:
Configure alerts to notify you when specific patterns are detected or when certain timeframe conditions are met.
Alerts are based on both pattern triggers and defined timeframe conditions, ensuring you are informed in real time.
7. Customization and Final Adjustments
Table Positioning:
You can choose the placement of all tables (Pattern, Previous Trends, Timeframe Analysis, Outcomes, Backtest, History) directly from the settings.
Adjust these positions to create a layout that best fits your chart and workflow.
Interpreting the Data:
Use the statistics provided (e.g., win rate, expected move, average candle sizes) to help determine entry and exit points.
Review backtesting results to validate and refine your trading strategies.
Experiment and Refine:
The indicator’s flexibility allows you to experiment with various settings to find the best configuration for your trading style.
Continuously adjust parameters as market conditions change to maintain optimal performance.
ايجابي بالشموع//@version=5
indicator("Metastock", overlay=true)
// شرط الشراء
buyCondition = open > close and low < low and close > close and close >= open and close <= high and close <= high and close > high
// شرط البيع (عكس شرط الشراء)
sellCondition = open < close and low > low and close < close and close <= open and close >= low and close >= low and close < low
// إضافة ملصق عند تحقق شرط الشراء (أسفل الشمعة)
if buyCondition
label.new(bar_index, low, "ايجابي", color=color.green, textcolor=color.white, style=label.style_label_up, yloc=yloc.belowbar)
// إضافة ملصق عند تحقق شرط البيع (أعلى الشمعة)
if sellCondition
label.new(bar_index, high, "سلبي", color=color.red, textcolor=color.white, style=label.style_label_down, yloc=yloc.abovebar)
Bull Market Leader ScannerThis script includes:
Trend Identification:
200-period SMA to confirm bull market conditions
Colored background for quick visual reference
Momentum Indicators:
MACD crossover system
RSI with adjustable overbought level
Volume spike detection (1.5x 20-period average)
Relative Strength:
Compares asset returns to market returns
Looks for 20%+ outperformance
Entry Signals:
Green triangles below price bars when conditions align
Alert system integration
How to Use:
Apply to daily/weekly charts
Look for signals during established uptrends (price above 200 SMA)
Confirm with high relative volume and strong RSI
Combine with sector/market analysis for confirmation
Key Features:
Customizable parameters for different trading styles
Visual market trend indication
Multi-factor confirmation system
Built-in alert system for real-time notifications
Remember to:
Always use proper risk management
Confirm with price action
Consider fundamental factors
Backtest strategies before live trading
This script identifies stocks that are:
In a bullish trend
Showing momentum acceleration
Demonstrating relative strength vs the market
Experiencing high buying volume
Adjust parameters according to your risk tolerance and market conditions.
Estrategia RSI 1H y 4H BTC/USDT//@version=5
strategy("Estrategia RSI 1H y 4H BTC/USDT", overlay=true)
// Configuración de RSI en diferentes temporalidades
rsi_length = 14
rsi_1H = ta.rsi(close, rsi_length)
rsi_4H = request.security(syminfo.tickerid, "240", ta.rsi(close, rsi_length), lookahead=barmerge.lookahead_on)
// Configuración de EMA
ema_50 = ta.ema(close, 50)
ema_200 = ta.ema(close, 200)
// Condiciones para entrada en LONG 📈
long_condition = ta.crossover(rsi_1H, 30) and rsi_4H < 40 and close > ema_50 and ema_50 > ema_200
// Condiciones para entrada en SHORT 📉
short_condition = ta.crossunder(rsi_1H, 70) and rsi_4H > 60 and close < ema_50 and ema_50 < ema_200
// Stop Loss y Take Profit (2% de distancia)
long_sl = close * 0.98 // SL a 2% debajo de la entrada
long_tp = close * 1.02 // TP a 2% arriba de la entrada
short_sl = close * 1.02 // SL a 2% arriba de la entrada
short_tp = close * 0.98 // TP a 2% debajo de la entrada
// Ejecución de órdenes
if long_condition
strategy.entry("Long", strategy.long)
strategy.exit("Take Profit Long", from_entry="Long", limit=long_tp, stop=long_sl)
if short_condition
strategy.entry("Short", strategy.short)
strategy.exit("Take Profit Short", from_entry="Short", limit=short_tp, stop=short_sl)
// Dibujar señales en el gráfico
plotshape(series=long_condition, location=location.belowbar, color=color.green, style=shape.labelup, title="Long Signal", text="BUY")
plotshape(series=short_condition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Short Signal", text="SELL")
Tinto Multi-Indicator SuiteDaily Pivot, Weekly Pivot, Monthly Pivot, Daily PSAR, 9,21,50,100,200 EMA and 150SMA
Algo Trading Breakout v2 by SUNNY GUHA +91 9836021040 oiesu.comuse Heikin Ashi Candle
Algo Trading Breakout v2 by SUNNY GUHA +91 9836021040 www.oiesu.com
for your custom algo development, contact us
Algo Trading v1 by SUNNY GUHA +91 9836021040 oiesu.comUse Heikin Ashi Candle
Algo Trading Heikin Ashi Candle v1 by SUNNY GUHA +91 9836021040 oiesu.com
Contact for your custom algo development
2xSPYTIPS Strategy by Fra public versionThis is a test strategy with S&P500, open source so everyone can suggest everything, I'm open to any advice.
Rules of the "2xSPYTIPS" Strategy :
This trading strategy is designed to operate on the S&P 500 index and the TIPS ETF. Here’s how it works:
1. Buy Conditions ("BUY"):
- The S&P 500 must be above its **200-day simple moving average (SMA 200)**.
- This condition is checked at the **end of each month**.
2. Position Management:
- If leverage is enabled (**2x leverage**), the purchase quantity is increased based on a configurable percentage.
3. Take Profit:
- A **Take Profit** is set at a fixed percentage above the entry price.
4. Visualization & Alerts:
- The **SMA 200** for both S&P 500 and TIPS is plotted on the chart.
- A **BUY signal** appears visually and an alert is triggered.
What This Strategy Does NOT Do
- It does not use a **Stop Loss** or **Trailing Stop**.
- It does not directly manage position exits except through Take Profit.
Multi-Strategy Trader v1 by SUNNY GUHA +91 9836021040 oiesu.comMulti-Strategy Trader v1 by SUNNY GUHA +91 9836021040 / www.oiesu.com
Use on Heikin Ashi Candle and for your own pinescript & indicator development, contact us
You can do algo trading with this with TradingView Premium Membership
Custom Shading & Levels (Time Only)Shad specific time and levels to work on
if you find it useful for your trading make small donation to help me out
my paypal:
abeddousoufiane@icloud.com