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).
Penunjuk dan strategi
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)
HAPatternsLibrary "HAPatterns"
isBearishRSIDivergence(price, rsi, pricePrevHigh, rsiPrevHigh)
Parameters:
price (float)
rsi (float)
pricePrevHigh (float)
rsiPrevHigh (float)
shouldExitSteepRise(curveShrinking, rsi, rsiPrev, adx, adxPrev, divergenceDetected)
Parameters:
curveShrinking (bool)
rsi (float)
rsiPrev (float)
adx (float)
adxPrev (float)
divergenceDetected (bool)
plotSteepRiseDebug(isSteep, shrinkExit, rsiExit, divergenceExit, adxExit)
Parameters:
isSteep (bool)
shrinkExit (bool)
rsiExit (bool)
divergenceExit (bool)
adxExit (bool)
New MA Cross Strategy V6 By BRC Different MA added with resolution to improve performance using higher time frame
HeikinAshiCurveCoreLibrary "HeikinAshiCurveCore"
haClose(srcOpen, srcHigh, srcLow, srcClose)
Parameters:
srcOpen (float)
srcHigh (float)
srcLow (float)
srcClose (float)
haOpen(srcOpen, srcClose)
Parameters:
srcOpen (float)
srcClose (float)
rollingBodySizes(haOpenSeries, haCloseSeries, window)
Parameters:
haOpenSeries (float)
haCloseSeries (float)
window (int)
detectCurve(bodySizes, compressionThreshold)
Parameters:
bodySizes (array)
compressionThreshold (float)
isSustainableCurve(bodySizes)
Parameters:
bodySizes (array)
isCompressionZone(bodySizes, flatThreshold)
Parameters:
bodySizes (array)
flatThreshold (float)
EMA Trend Dashboard
Trend Indicator using 3 custom EMA lines. Displays a table with 5 rows(position configurable)
-First line shows relative position of EMA lines to each other and outputs Bull, Weak Bull, Flat, Weak Bear, or Bear. EMA line1 should be less than EMA line2 and EMA line 2 should be less than EMA line3. Default is 9,21,50.
-Second through fourth line shows the slant of each EMA line. Up, Down, or Flat. Threshold for what is considered a slant is configurable. Also added a "steep" threshold configuration for steep slants.
-Fifth line shows exhaustion and is a simple, configurable calculation of the distance between EMA line1 and EMA line2.
--Lines one and five change depending on its value but ALL other colors are able to be changed.
--Default is somewhat set to work well with Micro E-mini Futures but this indicator can be changed to work on anything. I created it to help get a quick overview of short-term trend on futures. I used ChatGPT to help but I am still not sure if it actually took longer because of it.