RAHA Strategy - Short
Roni's Adjusted Hybrid Average – a formula developed by Aharon Roni Pesach.
What is RAHA?
This is an adjusted hybrid average that gives different weight to outliers:
The extreme values (particularly high or low) receive a lower weight.
The calculation is based on the standard deviation and average of the data.
This results in a more sensitive but stable average that does not ignore outliers – but rather considers them in proportion.
The RAHA Short Strategy identifies a negative trend and enters when clear technical conditions are met, such as a downward slope of RAHA 40, RAHA 10 crossing below RAHA 20, and the absence of a sequence of 3 red candles.
Entry is also made in the exceptional case of a red candle above the Bollinger Band.
The position size is determined by 1% of the capital divided by the stop.
The exit is carried out by a stop above the high, or under additional conditions below the profit target (TP).
אסטרטגיית השורט RAHA מבוססת על נוסחת ממוצע ייחודית בשם RAHA – ראשי תיבות של:
Roni's Adjusted Hybrid Average – נוסחה שפיתח אהרון רוני פסח.
מהו RAHA?
מדובר בממוצע היברידי מתואם המעניק משקל שונה לנתונים חריגים:
הערכים הקיצוניים (גבוהים או נמוכים במיוחד) מקבלים משקל נמוך יותר.
החישוב מבוסס על סטיית התקן והממוצע של הנתונים.
כך מתקבל ממוצע רגיש אך יציב יותר, שאינו מתעלם מהחריגים – אלא מתחשב בהם בפרופורציה.
אסטרטגיית השורט RAHA מזהה מגמה שלילית ומבצעת כניסה כשמתקיימים תנאים טכניים ברורים, כמו שיפוע יורד של RAHA 40, חציית RAHA 10 מתחת ל‑RAHA 20, והיעדר רצף של 3 נרות אדומים.
הכניסה מבוצעת גם במקרה חריג של נר אדום מעל רצועת בולינגר.
גודל הפוזיציה נקבע לפי 1% מההון חלקי הסטופ.
היציאה מבוצעת לפי סטופ מעל הגבוה, או בתנאים נוספים מתחת ליעד הרווח (TP).
Indicators and strategies
AZ Dynamic Trend Indicator with Heikin-Ashi### Dynamic Trend Indicator with Heikin-Ashi (v2.7)
**Effortlessly identify trends and reversals** with this versatile tool combining multi-timeframe analysis, adaptive moving averages, and Heikin-Ashi smoothing. Here's what it offers:
#### 🔍 **Core Features**
1. **Dual Timeframe Analysis**:
- Track trends on higher timeframes (e.g., 1H/D) while viewing signals on your current chart.
- Toggle between **Heikin-Ashi** or standard candles for cleaner trend visualization.
2. **8 Customizable MAs**:
- Choose from **ALMA, HMA, SMA, SWMA, VWMA, WMA, ZLEMA, or EMA** with adjustable periods.
- Unique "Trend Strength" metric: `(MA_Close - MA_Open) / (MA_High - MA_Low)` highlights momentum direction.
3. **Smart Signals**:
- **Entry/Exit**: Triangles mark crossovers between MA Close/Open.
- **Reversal Alerts**: Detects counter-trend moves within a user-defined window (default: 3 bars) after signals.
- Color-coded plots: Bullish (🟢), Bearish (🔴), Reversal Bull (🔵), Reversal Bear (🟠).
#### 🎨 **Visual Customization**
- Toggle **High/Low MA lines**, **Close line**, and **fill colors**.
- Adjust colors for all elements to match your chart theme.
- Hide signals or reversal markers as needed.
#### ⚙️ **Practical Use**
- **Trend Following**: Use the MA Close/Open crossover with trend fill colors to confirm direction.
- **Reversal Trading**: Capitalize on pullbacks with reversal signals (e.g., after a bearish signal, watch for Bull Reversal markers).
- **Multi-Timeframe Confirmation**: Avoid false signals by aligning higher-timeframe trends with your entries.
*Ideal for swing traders and trend riders!*
**Note**: Adjust `MA Period`, `Reversal Window`, and `Trend Timeframe` for your strategy. Disable Heikin-Ashi in choppy markets for faster reactions.
---
*Code v2.7 updates: Optimized reversal logic, added ALMA/ZLEMA support, and enhanced visual controls.*
محدد الأوقات المطور جداً v6
Determine the candle times at any hour you want. If the strategy you are working on is CRT, specify the 4-hour frame and choose the time 1-5-9.
Candle Pattern Detector By Prashanth
Bullish Signal (🟢 below candle):
Plotted when any of the following occur:
✅ Bullish Engulfing
✅ Bullish Three-Line Strike
✅ Bottom wick ≥ % threshold (default: 80%)
Bearish Signal (🔴 above candle):
Plotted when any of the following occur:
❌ Bearish Engulfing
❌ Bearish Three-Line Strike
❌ Top wick ≥ % threshold (default: 80%)
Only one signal per candle (🟢 or 🔴)
If both bullish and bearish conditions happen on same candle → no signal
Helps simplify visual clutter while scanning for strong candle patterns
RAHA Strategy - LongThe RAHA Long Strategy is based on a unique average formula called RAHA – an acronym for:
Roni's Adjusted Hybrid Average – a formula developed by Aharon Roni Pesach.
What is RAHA?
This is an adjusted hybrid average that gives different weight to outliers:
The extreme values (particularly high or low) receive a lower weight.
The calculation is based on the standard deviation and average of the data.
This results in a more sensitive but stable average that does not ignore outliers – but rather considers them in proportion.
The RAHA Long Strategy identifies a positive trend and enters when clear technical conditions are met, such as an upward slope of RAHA 40, RAHA 10 crossing above RAHA 20, and the absence of a sequence of 3 green candles.
Entry is also made in the exceptional case of a green candle below the Bollinger Band.
The position size is determined by 1% of the capital divided by the stop.
The exit is carried out by a stop below the low, or under additional conditions above the profit target (TP).
אסטרטגיית הלונג RAHA מבוססת על נוסחת ממוצע ייחודית בשם RAHA – ראשי תיבות של :
Roni's Adjusted Hybrid Average – נוסחה שפיתח אהרון רוני פסח.
מהו RAHA?
מדובר בממוצע היברידי מתואם המעניק משקל שונה לנתונים חריגים:
הערכים הקיצוניים (גבוהים או נמוכים במיוחד) מקבלים משקל נמוך יותר.
החישוב מבוסס על סטיית התקן והממוצע של הנתונים.
כך מתקבל ממוצע רגיש אך יציב יותר, שאינו מתעלם מהחריגים – אלא מתחשב בהם בפרופורציה.
אסטרטגיית הלונג RAHA מזהה מגמה חיובית ומבצעת כניסה כשמתקיימים תנאים טכניים ברורים, כמו שיפוע עולה של RAHA 40, חציית RAHA 10 מעל RAHA 20, והיעדר רצף של 3 נרות ירוקים.
הכניסה מבוצעת גם במקרה חריג של נר ירוק מתחת לרצועת בולינגר.
גודל הפוזיציה נקבע לפי 1% מההון חלקי הסטופ.
היציאה מבוצעת לפי סטופ מתחת לנמוך, או בתנאים נוספים מעל יעד הרווח (TP).
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]🧠 Concept & Purpose
This strategy combines several time-tested technical indicators—DI+/DI-, ADX, RSI, MACD, and long-term EMAs—to filter trend strength, momentum, and timing precision. The goal was to develop a multi-layered trend-following system suitable for low timeframes (tested on BTCUSDT 5m) while controlling risk with tight stop-losses, a high reward ratio, and a time-based exit to avoid long exposure in sideways markets.
⚙️ Components & Logic
• ADX + DI+/DI-: Confirm the presence and direction of a strong trend.
• RSI: Used to filter momentum bias. Buy signals require RSI > 55, sell signals < 45.
• MACD Histogram: Ensures entry is aligned with short-term momentum shifts.
• Strong Candle Filter: Filters out weak entries using candle body % strength.
• EMA 600 & EMA 2400: Define long-term trend bias. Entries only occur within 25 bars after EMA crossover in trend direction.
• Time-Based Stop: If a trade doesn’t move at least 0.75% in favor within 85 bars, it is closed to minimize stagnation.
• Reward-Risk Management: 1% stop-loss, 7.5:1 reward-to-risk ratio.
• One Signal Per Trend Shift: Only takes the first entry after each EMA cross.
📊 Strategy Settings & Backtest Conditions
• Initial Capital: $10,000
• Commission: 0.1% per trade
• Timeframe: 5-minute
• Test Range: Jan–Apr 2023
• Sample Size: Limited (⚠️ <10 trades – experimental phase)
Backtest Results (v1.0)
This version showed:
• ✅ 66.7% win rate on 3 trades
• 📉 P/L: +11,257.46 USDT (+112.57%)
• 🔻 Max drawdown: 5.03%
• 📈 Profit factor: 11.01
In an earlier test configuration:
• ❌ 5 trades, 0 wins
• 📉 -14.45% total P&L
• ⚠️ All losses hit the 1.5% stop
• ⚠️ Profit factor: 0.00
This contrast shows how sensitive the logic is to market context and parameter tuning.
💡 Purpose of Publication
This strategy is experimental and educational. It is open-sourced for transparency and to help other traders learn how complex indicator stacking may or may not work in real environments. The failed and improved tests are both part of the process.
⚠️ Disclaimer
This script is not financial advice. Please do your own research, forward-test it thoroughly, and adjust parameters based on your asset and timeframe.
TRAMA Cross Pivot Points📌 Description: TRAMA Cross Pivot Points
This indicator combines the powerful Trend Regularity Adaptive Moving Average (TRAMA) with dynamic pivot point.
🔍 What It Does:
Calculates a long-term TRAMA (default length 278) to filter trend direction and smooth volatility. I mostly use the lengths 20, 50, 100, 200, 278, and 314 to mark areas of retest.
Detects bullish and bearish price crossovers above and below the TRAMA.
Plots real-time pivot levels when a crossover occurs.
Draws a dashed horizontal pivot line only at the most recent crossover, keeping your chart clean and focused.
Includes alert conditions so you never miss a strategic moment.
⚙️ How It Works:
Bullish TRAMA Cross: When price crosses above the TRAMA, the script:
Calculates a potential pivot low using DM-style Logic.
Plots a green dashed line at that pivot level.
Optionally triggers an alert.
Bearish TRAMA Cross: When price crosses below the TRAMA:
A pivot high is calculated and plotted as a red dashed line.
Optional alert lets you know of a possible top.
📈 Pivot Logic:
Uses real-time candle data (OHLC) to adjust pivot points dynamically.
These pivots can act as potential support/resistance levels or entry zones.
🔔 Alerts:
Triggered when price crosses the TRAMA up or down.
Ideal for traders looking to enter on structure-based momentum.
BTC Correlation CoefficientThe BTCUSDT Correlation Coefficient indicator measures the strength and direction of the relationship between the selected asset (e.g., a stock or altcoin) and the price of BTCUSDT over a chosen time period. It uses a custom correlation function to calculate how closely the asset's price movements align with Bitcoin, returning a value between -1 and +1. A coefficient near +1 indicates strong positive correlation, while values near -1 indicate inverse correlation. This helps traders assess whether the asset tends to follow Bitcoin’s price trends or behave independently, enabling more informed decisions on portfolio diversification and market sentiment alignment.
NFP RangesThis simple indicator will mark the high and low prices during NFP days. You an choose how many NFP days you want to go back and a gradient to use for the levels.
The NFP dates are hard coded from 2023 through 2029. If this script survives past 2029, it should be simple to add more dates.
✅ SMA20 Trend Table -(MAJOAK)Trend table of Bullish or Bearish to the SMA 20. Displays 1 Day, 1Hr, 15 Min and 5 min.
9AM–11AM NAS100 Session Box//@version=5
indicator("9AM–11AM NAS100 Session Box", overlay=true)
// Define session times in New York (EST)
session_start = timestamp("America/New_York", year, month, dayofmonth, 09, 0)
session_end = timestamp("America/New_York", year, month, dayofmonth, 11, 0)
// Detect if we're inside the session window
in_session = (time >= session_start) and (time < session_end)
// Track high/low of the session
var float session_high = na
var float session_low = na
if (in_session)
session_high := na(session_high) ? high : math.max(session_high, high)
session_low := na(session_low) ? low : math.min(session_low, low)
else
session_high := na
session_low := na
// Draw the session box
bgcolor(in_session ? color.new(color.blue, 85) : na)
// Optionally draw lines at session high/low
plot(in_session ? session_high : na, title="Session High", color=color.green, linewidth=1)
plot(in_session ? session_low : na, title="Session Low", color=color.red, linewidth=1)
OTE+STDV MultiTF IndicatorVERY ROUGH DRAFT OF INDICATOR EXPECTS BUGS. I AM NOT A CODER SO THIS SHOULD NOT BE PERFECT.
Place limit orders on yellow lines. You will get a buy signal only during perfect A+ setups.
PLEASE MESSAGE ME IF YOU ARE A CODER AND CAN FIX THIS OR MAKE IT BETTER
Discord: itscwiby
Orange Lines are Rejection Zones
Yellow Lines are Limit order spots. Usually you want to take this with a 40 tick SL. You can also use a Fib tool on the green box to get a better entry.
Generally you want to look at the 30m chart or higher for these zones and find a optimal entry on a smaller timeframe.
Turtle God Indicator (Đức Anh Trader)Description:
The Turtle God Indicator is a minimalist tool that provides quick visual feedback on the latest candle's momentum while remaining compliant with TradingView's visual guidelines.
🔹 The turtle appears only on the latest candle, keeping the chart clean and uncluttered.
🔹 Includes a 14-period Simple Moving Average (SMA) to help track trend direction.
🔹 Ideal for traders who want fun, subtle alerts without distracting overlays or indicators.
Inspired by Đức Anh Trader, this playful yet practical indicator is perfect for identifying momentum with a smile. 🐢
EMA 9/21 Crossover Indicator w/ Shading9 and 21 ema cross over with buy and sell signals. No close signal so you will need to trail your stop manually
First 15 Min High/Low//@version=5
indicator("First 15 Min High/Low", overlay=true)
// Define the session start time (adjust according to your market)
startHour = 9
startMinute = 30
endMinute = startMinute + 15
// Track the first 15 minutes of the day
isFirst15 = (hour == startHour and minute >= startMinute and minute < endMinute)
// New day logic
newDay = ta.change(time("D"))
// Hold values
var float first15High = na
var float first15Low = na
var bool isLocked = false
// Capture high/low during first 15 min
if newDay
first15High := na
first15Low := na
isLocked := false
if isFirst15 and not isLocked
first15High := na(first15High) ? high : math.max(high, first15High)
first15Low := na(first15Low) ? low : math.min(low, first15Low)
if not isFirst15 and not isLocked and not na(first15High) and not na(first15Low)
isLocked := true
// Plot
plot(isLocked ? first15High : na, title="First 15 Min High", color=color.green, linewidth=2, style=plot.style_line)
plot(isLocked ? first15Low : na, title="First 15 Min Low", color=color.red, linewidth=2, style=plot.style_line)