Hammer/Inv Hammer + ema and other settings + stratok, so thrown everything at this one as the previous only had longs.
so we have all the options, but main feature is the ema to divide up the longs and short, shorts above, longs below, we all know price ends up back to the ema at some point.
I have added a volume filter, this calculates the average volume from the last "20" candles (which can be adjusted) then when a hammer appears it has to be larger than the average volume to be valid.
Also added trading hours in, if you are switching between RTH and ETH it can cause issue if it enters a position EOD then you get an anomaly trade as we can hold positions past certain times.
Also added some trading strategy, so after 2 wins it wont trade again that day or after 1 loss. you decide.
So much to play with now.
Indicators and strategies
GOLD 5m PA ScalperXAUUSD 5-Minute Price Action Scalper with HTF Confirmation
This Pine Script is a trend-following scalping strategy designed specifically for XAUUSD (Gold) on the 1,3,5-minute timeframe.
Its main goal is to reduce noise and false signals by combining lower-timeframe price action with higher-timeframe (15-minute) structure.
CORE IDEA
Trade only in the direction of the dominant trend and only when price reacts from a strong higher-timeframe Order Block.
Daily & Pre-Market Key Levels (v5)Plots:
- Today's high/low
- Pre-market High/Low
- Yesterday's high/low/close
- Day before yesterday high/low
SCOTTGO - RSI Divergence IndicatorRSI Divergence Indicator
This indicator combines the Relative Strength Index (RSI) with an automatic divergence detection system.
It is designed to help traders spot potential trend changes by:
Color-Coded RSI: The main RSI line dynamically changes color (e.g., green/red) above and below a user-defined threshold (default 50) to highlight strong or weak momentum instantly.
Divergence Signals: It automatically identifies and plots four types of RSI divergences (Regular Bullish, Hidden Bullish, Regular Bearish, and Hidden Bearish) between the price and the oscillator.
Custom Alerts: Includes alerts for all divergence types so you can be notified when a new signal is found.
This tool helps visualize momentum shifts and potential reversals in the market.
SCOTTGO - Buy Sell Volume📊 SCOTTGO - Buy Sell Volume Bars - Delta - Up Down Volume Bars
This indicator disaggregates the total volume traded on each bar into estimated Buying Volume and Selling Volume to visualize market pressure and dominance directly in a dedicated sub-pane.
Key Features:
Volume Disaggregation: Uses a standard formula to estimate how much of a bar's total volume was associated with upward (buying) pressure and how much was associated with downward (selling) pressure.
Visual Clarity: Plots the Buy Volume (teal, upward) and Sell Volume (red, downward) as separate columns against a transparent total volume background, allowing for quick assessment of pressure balance.
Real-Time Badge: A dynamic badge is fixed to the corner of the chart (default: Top Right) providing a numeric summary of the latest bar:
Buy %: Percentage of the bar's total volume estimated as Buying Volume.
Sell %: Percentage of the bar's total volume estimated as Selling Volume.
Delta %: The magnitude of the volume difference (Delta) as a percentage of total volume, indicating the strength of the dominant side.
Dominance Indicator: The background color of the badge changes dynamically to immediately signal whether Buying (customizable color, default: Teal) or Selling (customizable color, default: Red) pressure was dominant on the current bar.
Usage:
Traders can use this tool to identify periods of heavy accumulation (high Buy Volume) or distribution (high Sell Volume), providing insight into the conviction behind price movements.
225 SMA CrossoverWell-known strategy from Zahlengraf from the Mauerstrassenwetten subreddit for you to test yourself.
You can change the length of the SMA and whether to trade long, short or both directions.
Pivot Points High LowGaneshA Pivot Points High/Low indicator that:
Detects swing highs (ta.pivothigh) and swing lows (ta.pivotlow) using configurable left/right bar lengths.
Draws labels at the confirmed pivot points:
Down labels at pivot highs (potential resistance).
Up labels at pivot lows (potential support).
Lets you customize text color and label fill color separately for highs and lows.
It’s designed for overlay (on-price chart), with max_labels_count=500 to allow many labels.
GMMA fill (v5) + Golden Crossover HighlightsGMMA Fill (v5) + Golden Crossover Highlights
This setup combines the Guppy Multiple Moving Average (GMMA) Fill version 5 with Golden Crossover signals to identify strong trend continuation and potential breakout points. GMMA provides layered moving averages for short- and long-term trend analysis, while the Golden Crossover highlights bullish momentum shifts, making it ideal for spotting entry opportunities in trending markets.
All-in-One Momentum Composite The Four Components (and Why They're Chosen)
RSI (Relative Strength Index) – Classic overbought/oversold oscillator (14-period default). Measures speed and change of price movements.
Stochastic (%D line) – Smoothened momentum indicator that compares closing price to the price range over a period. Excellent at spotting reversals in ranging markets.
WaveTrend – Very popular in crypto and forex communities (originally by LazyBear). It’s essentially a momentum oscillator based on overbought/oversold channels, similar to a faster, smoother RSI/Stochastic hybrid. Known for early divergence signals and clean crossovers.
MACD Histogram – Captures momentum changes and trend strength via the difference between fast and slow EMAs. The histogram shows acceleration/deceleration.
H1 Bias Rhythmic Lite Public V1.0 by SRTH1 Bias Rhythmic Lite Public V1.0 by SRT
Version: 1.0 (Public Lite)
Author: SRT
Platform: TradingView / Pine Script v6
Overlay: Yes (works directly on price chart)
Purpose: Provide H1 directional bias with D1 alignment and basic rhythm signals. Perfect for traders looking for clean bias visualization without clutter.
💡 Key Features
H1 Bias (Primary Engine)
Uses EMA7, EMA40, SMA150, and SMA200 for H1 directional bias.
Clearly identifies bullish, bearish, and neutral conditions.
Stack-based logic ensures consistency and reliability.
D1 Bias Alignment
Pulls higher timeframe (daily) EMA40, SMA150, SMA200.
Confirms H1 bias alignment with daily trend.
Helps filter trades in the direction of the larger trend.
Flush Detection
H1 flushes: Price fully “flushed” beyond EMA7 for bullish/bearish setups.
D+H1 flush: Aligns H1 flush with D1 bias for stronger context.
Visual dots with configurable sizes and colors indicate flush levels.
Price Action Signals
Engulfing (EB) detection with ATR filtering and body % thresholds.
Long Tail Body (LTB) detection with optional body % filter for precise swing points.
Both EB and LTB signals show clear labels above/below the candle for instant recognition.
ATR-Based Dynamic Offsets
Uses ATR (configurable length) to scale labels and flush dot offsets dynamically.
Ensures signals are proportionate to volatility.
Daily Pivot & Session Lines
Daily pivot plotted automatically.
Option to show daily session high-low lines and day labels.
Easily configurable label sizes and colors.
Bias Summary Table
Top-right table shows:
D1 bias
H1 bias
LTB allowed (Yes/No)
Color-coded for easy reference: green = Bull, red = Bear, gray = Neutral.
Alerts
H1 flush and D+H1 flush alerts.
LTB active alerts when bias is aligned.
Perfect for keeping an eye on actionable swings.
⚙️ User Inputs
Moving Average Lengths: EMA7, EMA40, SMA150, SMA200
Show/Hide MAs: Toggle to declutter the chart
ATR Settings: Length and % threshold for EB/LTB sizing
Signal Toggles: Show/Hide EBull, EBear, LTB Bull, LTB Bear, Flush Dots
Daily Pivot & Label Settings: Toggle visibility, label size, line/text colors
✅ Advantages for Users
Lightweight and fast — minimal lag on H1 charts.
Clear visualization of market bias and swing points.
Free access to core H1 Bias Rhythmic methodology.
Serves as a learning tool for traders who want to upgrade later.
⚠️ Limitations
No automatic entries, stops, or take profits (manual trade execution required).
Lite version only offers simplified signals and bias visualization.
Advanced rhythm and multi-timeframe alerts are reserved for the Premium version.
📢 Short Promo for Premium
For traders who want full power, check out H1 Bias Rhythmic Premium V1.0 by SRT — complete multi-phase alerts, advanced LTB & EB filters, EMA/SMA flip confirmations, and professional-level rhythm signals. Upgrade to premium for the full H1 trading experience.
Opposite Candle Zone Identifier (v6) - Extended🔍 Opposite Candle Zone Identifier (Extended)
Opposite Candle Zone Identifier is a price-action based indicator designed to identify potential reversal or absorption zones by detecting candles that move against the surrounding trend.
The indicator highlights a central opposite candle (or group of candles) that is surrounded by candles moving in the opposite direction, both before and after the central candle.
This structure often represents areas where institutional activity, absorption, or supply/demand imbalance may occur.
📌 How the Indicator Works
The indicator analyzes price action using three configurable blocks:
1️⃣ Candles Before (Backward)
A user-defined number of candles before the central candle(s) must follow a consistent trend:
Bullish candles for a bearish zone
Bearish candles for a bullish zone
2️⃣ Central Candle(s)
The core of the pattern:
Default: 1 opposite candle
Can be increased (up to 5) to adapt the indicator to lower timeframes or noisier markets
This central block must move against the previous trend, signaling a potential shift or absorption area.
3️⃣ Candles After (Forward)
A user-defined number of candles after the central candle(s) must resume the original trend, confirming the pattern.
⚠️ The signal is confirmed only after the “after” candles are completed.
This avoids repainting and ensures structural confirmation.
📐 Zone Concept
The highlighted central candle (or candles) can be used to define a price zone:
The high and low of the central candle(s) represent a potential supply or demand zone
These zones can be used for:
Reversal areas
Reaction zones
Entry refinement
Stop placement
⚙️ Inputs & Customization
Number of candles before
Controls how many candles must follow the initial trend.
Number of candles after
Defines how many candles are required for confirmation.
Central candles count
Default is 1, but can be increased (e.g. 2) for:
Lower timeframes
More reliable structure
Reduced noise
ATR-based offset
Labels are positioned using a dynamic ATR offset to improve chart readability across different markets and timeframes.
📈 Bullish & Bearish Zones
🟢 Bullish Zone
Bearish candles before
Bullish central candle(s)
Bearish candles after
Indicates potential demand or accumulation zone
🔴 Bearish Zone
Bullish candles before
Bearish central candle(s)
Bullish candles after
Indicates potential supply or distribution zone
🧠 Best Use Cases
Works best on 15m and higher timeframes
Effective on:
Indices
Forex majors
Liquid cryptocurrencies
Can be combined with:
Trend filters (EMA, VWAP)
Support & resistance
Market structure analysis
⚠️ Notes
This indicator is confirmation-based, not predictive
Signals appear only after pattern completion
It does not repaint
Best used as a confluence tool, not as a standalone trading system
🎯 Summary
Opposite Candle Zone Identifier helps traders:
Detect opposite-direction candles within strong trends
Identify potential supply and demand zones
Adapt the pattern to different timeframes
Improve price-action based decision making
Impulse Trend Suite LITE - v3🚀 Impulse Trend Suite (LITE) — v3
Smart trend visualization with precise flip arrows. A lightweight, momentum-filtered trend tool designed to stay clean, avoid repeated signals, and keep you focused only on real market direction.
✨ What’s New in v3
*Added Blue fill between MA lines
*Updated labels
*Fill color selection added
📌 Core Features
*Trend flip arrows (no spam, 1 signal per turn)
*Continuous background zones (gap-free trend shading)
*Adaptive Baseline + ATR structure channel
*RSI + MACD momentum filter (suppresses weak signals)
*Trend Status Panel (UP, DOWN, NEUTRAL)
🔍 Quick Guide
BUY setup = green arrow + green background
SELL setup = red arrow + red background
Stay in the move while color doesn’t change
ATR channel helps avoid chasing overextended candles
🆚 LITE vs PRO
========================================================
Feature LITE PRO
--------------------- -------- ------------------------------
Trend shading + arrows ✔ ✔ + confirmations
Neutral trend state ✔ ✔ enhanced
Alerts ✖ ✔ full suite
Reversal Zones ✖ ✔ predictive boxes
HTF Filter ✖ ✔ smarter trend bias
Included strategies ✖ ✔ + PDF training
🔓 Upgrade to PRO
Reversal Zones • Alerts • HTF Filter • Trend Continuation Strategy
📈 Works on Forex, Stocks, Crypto, Indices, Metals
⌚ Scalping • Intraday • Swing • Long-term
==========================================================
Happy trading! — FxShareRobots Team
JK Scalp - Nishith RajwarJK Scalp Nishith Rajwar
Multi-Stochastic Rotation & Momentum Scalping Framework
JK Scalp is a rule-based momentum and rotation oscillator designed for short-term scalping and intraday execution.
It focuses on how momentum rotates across multiple stochastic speeds, instead of relying on a single oscillator or lagging averages.
This is an execution aid, not a predictive indicator.
🧠 Concept & Originality
Unlike standard stochastic tools, JK Scalp uses four synchronized stochastic layers:
• Fast (9,3) → execution timing
• Medium (14,3) → structure confirmation
• Slow (44,3) → swing context
• Trend (60,10,10) → dominant momentum regime
The core idea is quad-rotation:
High-probability trades occur when all momentum layers rotate together after reaching an extreme.
This script combines:
• Momentum rotation
• Divergence logic
• Flag continuation logic
• Trend-state filtering
into a single cohesive framework, not a simple indicator mashup.
📊 How to Use (Step-by-Step)
1️⃣ Best Timeframes
• Scalping: 1m – 3m
• Intraday: 5m – 15m
• Avoid higher timeframes (not designed for swing holding)
Works best on:
• Index options
• Index futures
• Highly liquid stocks
• Crypto majors
2️⃣ Understanding the Signals
🔁 Quad Rotation (Core Signal)
A valid rotation requires:
• Fast, Medium, Slow, and Trend stochastic moving in the same direction
• Momentum exiting Overbought / Oversold zones
• Trend stochastic supporting the move
This filters out random oscillator noise.
3️⃣ Entry Conditions
🟢 LONG Setup
• Bullish quad rotation
• Either:
– Bullish divergence OR
– Bullish flag pullback
• Fast stochastic turning up
🔴 SHORT Setup
• Bearish quad rotation
• Either:
– Bearish divergence OR
– Bearish flag pullback
• Fast stochastic turning down
⚠️ Signals are confirmation-based, not anticipatory.
4️⃣ SUPER LONG / SUPER SHORT
These appear only when:
• Quad rotation
• Divergence confirmation
They represent high-confidence momentum inflection zones, not guaranteed reversals.
5️⃣ Stop-Loss Visualization
Optional SL zones are plotted using:
• Recent swing high / low
• ATR-based buffer (configurable)
This helps traders visualize risk, not automate exits.
🎨 Visual System (Why It Looks Different)
• Multi-layer glow effects → momentum strength
• Dynamic cloud → fast vs trend dominance
• Color-shifting fast line → acceleration vs decay
• Chart overlays → execution clarity without clutter
Everything is designed for speed and readability during live trading.
⭐ Unique Selling Points (USP)
✅ Multi-speed stochastic rotation (not single-line signals)
✅ Context-first, not signal spam
✅ Built-in divergence + continuation logic
✅ Non-repainting logic
✅ Designed for scalpers, not hindsight analysis
✅ Works across indices, options, crypto, and futures
⚠️ Important Notes
• Not a standalone trading system
• Best combined with:
– Market structure
– Key levels
– Session timing
• Avoid low-liquidity or news-spike candles
This indicator guides execution, it does not replace discretion.
👤 Who This Is For
• Scalpers & intraday traders
• Options traders needing precise timing
• Traders who understand momentum & structure
• Users who want fewer but higher-quality signals
🏁 Summary
JK Scalp helps you trade momentum rotation, not overbought/oversold myths.
Wait for alignment. Execute with discipline.
CRT+ Advance Engulfing | @stefandimovCRT+ Lite implements institutional-style Candle Range Theory logic to identify displacement-driven engulfing structures with precision.
The script focuses on wick-based liquidity grabs, strict body closes, and optional higher-timeframe confirmation to highlight structurally valid bullish and bearish reversals.
Includes a Daily-only multi-market scanner and a compact dashboard for fast top-down analysis.
Designed for traders who prioritize structure, execution precision, and HTF alignment.
Rolling VWAP Structure [MTF]Core Logic: Rolling VWAP & MTF**
* **Rolling VWAP (Volume-Weighted Average Price):** Unlike a simple Moving Average, this centerline weighs price by volume. It represents the true "Institutional Cost Basis" over the rolling period (default 20).
* **MTF (Multi-Timeframe) Capability:** The indicator is locked to the **Daily (1D)** timeframe by default. This acts as a stable "Lighthouse," ensuring that intraday noise does not distort the major structural levels.
* *Stepped Lines:* On lower timeframes, the lines appear stepped. This is intentional. It shows that the structural value remains constant throughout the day until the daily close shifts the calculation.
**3. Market Profile Logic: Balance vs. Imbalance**
This indicator visually decodes the market cycle using Auction Market Theory:
* **Orange Zone (Squeeze) = Balance:** When the bands contract (and turn Orange), the market is in equilibrium. This is a high-volume node where price is accepted. **Note:** Historical Orange Zones often act as strong Support/Resistance upon retest.
* **Grey Cloud (Expansion) = Imbalance:** When price breaks into the Grey "Highway" (1.0 - 2.0 StdDev), the market enters Price Discovery mode (Trending).
**4. Key Features & Settings**
* **Fixed Timeframe:** Select the timeframe you want to monitor (e.g., "1D" for Daily structure, "1W" for Weekly).
* **Clean Visuals:** The bottom signal dots have been removed for a cleaner chart.
* **Squeeze Toggle:** You can now **hide the Orange Squeeze color** in the settings if you prefer a unified Grey look for strictly structural analysis.
---
### **中文说明**
核心逻辑:Rolling VWAP 与 跨周期 (MTF)**
* **Rolling VWAP (滚动成交量加权均价):** 与简单移动平均线不同,中轨根据成交量对价格进行加权。它代表了滚动周期内(默认20)真实的“机构持仓成本”。
* **MTF (跨周期) 能力:** 指标默认锁定在 **日线 (1D)** 周期。这就像一座稳定的“灯塔”,确保日内的短期噪音不会扭曲主要的结构性点位。
* *阶梯状线条:* 在小周期图表上,轨道呈现阶梯状。这是有意设计的,代表当天的结构价值是固定的,不会随秒级波动而改变。
**3. 市场轮廓逻辑:平衡与失衡**
本指标利用拍卖市场理论可视化解码市场周期:
* **橙色区域 (挤压) = 平衡 (Balance):** 当布林带收缩(并变橙色)时,市场处于均衡状态。这是筹码密集的高成交量区。**注意:** 历史上的橙色区域在未来回踩时往往起到强力的 支撑/阻力 作用。
* **灰色云带 (扩张) = 失衡 (Imbalance):** 当价格突破进入灰色“高速公路”(1.0 - 2.0 标准差)时,市场进入价格发现模式(趋势)。
**4. 主要功能与设置**
* **Fixed Timeframe (锁定时间框架):** 选择你想要监控的周期(例如 "1D" 看日线结构,"1W" 看周线结构)。
* **视觉净化:** 移除了底部的信号圆点,让主图背景更加纯粹干净。
* **Squeeze Toggle (挤压色开关):** 你现在可以在设置中**隐藏橙色挤压显示**。如果你更偏向纯粹的结构分析,可以选择让通道始终保持灰色。
Manipulation Candle SystemThis indicator is based on One Candle Scalping Strategy by ProRealAlgos
## **Manipulation Candle System – Simple Explanation**
This indicator helps traders identify **potential market manipulation** during the **US stock market session (New York)** and highlights **key reversal signals**.
---
### **1. Daily ATR (Average True Range)**
* Measures the **average price movement** of the day.
* Helps determine if a move is **normal** or **abnormally large**.
* The indicator calculates **daily ATR** automatically.
* If 15 minute opening candle is more than 25% of Daily ATR, we can call it manipulation is happen .
---
### **2. 15-Minute Opening Candle Box**
* Highlights the **first 15-minute candle** of the US session.
* The box **extends for 2 hours** after the market opens.
* **Color indicates market condition**:
* **Red box** → the opening candle range is bigger than 25% of the daily ATR → potential **manipulation**.
* **Blue box** → the opening candle range is normal → **neutral session**.
* Helps traders visually spot when the market might be trying to **trap traders**.
---
### **3. 5-Minute Reversal Detection**
* Looks for **reversal candle patterns** on the 5-minute chart:
* Bullish engulfing or strong bullish pin → **buy reversal**.
* Bearish engulfing or strong bearish pin → **sell reversal**.
* Only checks during the **US session**, after 15 minute opening candle.
* Helps traders **time entries** in the direction of potential market reversals.
---
### **4. Buy / Sell Signals**
* Shows **triangle markers** on the chart:
* **Green triangle below candle** → buy signal.
* **Red triangle above candle** → sell signal.
* The signal text also indicates:
* `"BUY (Trap Reversal)"` → if the reversal occurs during manipulation.
* `"BUY (Normal Reversal)"` → if the reversal occurs during a neutral session.
* `"SELL (Trap Reversal)"` → if a sell reversal occurs during manipulation.
* `"SELL (Normal Reversal)"` → otherwise.
---
### **5. Info Table**
* Appears at the **top-right** of the chart.
* Shows:
1. Daily ATR value.
2. 15-minute opening candle range.
3. Session condition → `"MANIPULATION"` or `"NEUTRAL"`.
4. Current reversal signal text.
---
### **How a New Trader Can Use It**
1. Look at the **color of the opening box**:
* Red → be cautious, price may trap traders.
* Blue → normal market behavior.
2. Watch for **reversal signals** on the 5-minute chart.
3. Use the **info table** to confirm ATR, session bias, and signals.
4. Combine this with **risk management** before entering trades.
Buy the dips StrategyThis strategy getting in long position only after the price drop- Buy the dips
The % of the drop is Determined by SMA for the first trade
The inputs of SMA and % of the drop can be adjust from the User
After that Strategy start taking safe trades if not take profit from the first trade
The safe trades are Determined by step down deviation % and by quantity
There is no Stop loss is not for one with small tolerance to getting under
if any question ask
8menutakeshi//@version=5
indicator("猛の掟・初動スクリーナー(完全版:8項目コメント表示)", overlay=true, max_labels_count=50)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Inputs
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
showPanel = input.bool(true, "コメント表示")
panelPos = input.string("右上", "コメント位置", options= )
lastBarOnly = input.bool(true, "最後の足だけ更新(推奨)")
// EMA
lenEma1 = input.int(5, "EMA 5", minval=1)
lenEma2 = input.int(13, "EMA 13", minval=1)
lenEma3 = input.int(26, "EMA 26", minval=1)
// MACD
macdFast = input.int(12, "MACD fast", minval=1)
macdSlow = input.int(26, "MACD slow", minval=1)
macdSig = input.int(9, "MACD signal", minval=1)
// Volume
volMaLen = input.int(5, "出来高平均(N日)", minval=1)
volMinMul = input.float(1.3, "出来高倍率Min", step=0.1)
volMaxMul = input.float(2.0, "出来高倍率Max", step=0.1)
volFinalMul = input.float(1.5, "最終三点:出来高倍率(>=)", step=0.1)
// Candle
wickBodyMult = input.float(1.8, "下ヒゲ判定:下ヒゲ/実体 >=", step=0.1)
atrLen = input.int(14, "ATR長", minval=1)
bigBodyATR = input.float(1.2, "大陽線判定:実体 >= ATR×", step=0.1)
// Breakout / Pullback
resLookback = input.int(20, "レジスタンス:過去N日高値", minval=5)
pullMinPct = input.float(5.0, "押し目Min(%)", step=0.5)
pullMaxPct = input.float(15.0, "押し目Max(%)", step=0.5)
retestAllowPct = input.float(1.0, "ブレイク価格の許容下抜け(%)", step=0.1)
stateExpireBars = input.int(30, "ブレイク状態の期限(本数)", minval=5)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Series
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ema5 = ta.ema(close, lenEma1)
ema13 = ta.ema(close, lenEma2)
ema26 = ta.ema(close, lenEma3)
= ta.macd(close, macdFast, macdSlow, macdSig)
volAvg = ta.sma(volume, volMaLen)
volMul = volAvg == 0 ? na : (volume / volAvg)
atr = ta.atr(atrLen)
// Candle parts
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 1-3: トレンド
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ema5Up = ema5 > ema5
ema13Up = ema13 > ema13
ema26Up = ema26 > ema26
allEmaUp = ema5Up and ema13Up and ema26Up
golden = (ema5 > ema13) and (ema13 > ema26)
above26_2days = (close > ema26) and (close > ema26 )
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 4: MACD(ゼロライン上GC)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
macdZeroGC = ta.crossover(macdLine, macdSignal) and (macdLine > 0)
histShrinkToUp = (macdHist > macdHist ) and (macdHist < macdHist ) // 参考表示
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 5: 出来高
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
volOK = not na(volMul) and (volMul >= volMinMul) and (volMul <= volMaxMul)
volStrongOK = not na(volMul) and (volMul >= volFinalMul) // 最終三点用
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 6: ローソク(ピンバー/包み/大陽線)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
longLowerWick = (body > 0) and ((lowerWick / body) >= wickBodyMult) and (upperWick <= lowerWick * 0.6) and (close > open)
bullEngulf = (close < open ) and (close > open) and (open <= close ) and (close >= open )
bigBull = (close > open) and (body >= atr * bigBodyATR) and (open < ema13) and (close > ema5)
candleOK = longLowerWick or bullEngulf or bigBull
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 7-8: ブレイク後押し目(押し目 -5〜15%)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
res = ta.highest(high, resLookback)
breakout = ta.crossover(close, res)
var bool inBreak = false
var float breakPrice = na
var int breakBar = na
var float postBreakHigh = na
if breakout
inBreak := true
breakPrice := res
breakBar := bar_index
postBreakHigh := high
if inBreak
postBreakHigh := na(postBreakHigh) ? high : math.max(postBreakHigh, high)
pullPct = (inBreak and not na(postBreakHigh) and postBreakHigh != 0) ? (postBreakHigh - close) / postBreakHigh * 100.0 : na
pullOK = not na(pullPct) and (pullPct >= pullMinPct) and (pullPct <= pullMaxPct)
retestOK = inBreak and not na(breakPrice) and (close >= breakPrice * (1 - retestAllowPct/100.0))
breakoutPullbackOK = inBreak and retestOK and pullOK
if inBreak and not na(breakBar) and (bar_index - breakBar > stateExpireBars)
inBreak := false
breakPrice := na
breakBar := na
postBreakHigh := na
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 8項目チェック(1つでも欠けたら見送り)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
chk1 = allEmaUp
chk2 = golden
chk3 = above26_2days
chk4 = macdZeroGC
chk5 = volOK
chk6 = candleOK
chk7 = pullOK
chk8 = breakoutPullbackOK
all8 = chk1 and chk2 and chk3 and chk4 and chk5 and chk6 and chk7 and chk8
// 最終三点(ヒゲ×出来高×MACD)
// ※「成立時は買い確定」の定義に合わせて、all8に加えてfinal3も必須にしている
final3 = longLowerWick and volStrongOK and macdZeroGC
judge = (all8 and final3) ? "判定:買い" : "判定:見送り"
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// コメント文字列(←txt を必ず先に定義)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
fMark(x) => x ? "達成" : "未達"
txt =
"【8項目チェック】 " +
"1 EMA全上向き: " + fMark(chk1) + " " +
"2 黄金隊列: " + fMark(chk2) + " " +
"3 26EMA上2日: " + fMark(chk3) + " " +
"4 MACDゼロ上GC: " + fMark(chk4) + " " +
"5 出来高" + str.tostring(volMinMul) + "-" + str.tostring(volMaxMul) + ": " + fMark(chk5) + " " +
"6 ローソク条件: " + fMark(chk6) + " " +
"7 押し目-" + str.tostring(pullMinPct) + "〜" + str.tostring(pullMaxPct) + "%: " + fMark(chk7) + " " +
"8 ブレイク後押し目: " + fMark(chk8) + " " +
"最終三点(ヒゲ×出来高×MACD): " + (final3 ? "成立" : "未成立") + " " +
judge + " " +
"(参考)出来高倍率=" + (na(volMul) ? "na" : str.tostring(volMul, "#.00")) +
" / 押し目率=" + (na(pullPct) ? "na" : str.tostring(pullPct, "#.0")) + "%" +
" / hist転換=" + (histShrinkToUp ? "YES" : "NO")
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Table(位置は if で確定。三項演算子で改行しない)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
var pos = position.top_right
if panelPos == "右上"
pos := position.top_right
else if panelPos == "左上"
pos := position.top_left
else if panelPos == "右下"
pos := position.bottom_right
else
pos := position.bottom_left
var table t = table.new(pos, 1, 1)
// 描画条件
drawNow = showPanel and (lastBarOnly ? barstate.islast : true)
bg = (all8 and final3) ? color.new(color.lime, 80) : color.new(color.gray, 15)
fg = color.white
if drawNow
table.cell(t, 0, 0, txt, text_color=fg, bgcolor=bg, text_size=size.small)
else
table.cell(t, 0, 0, "", text_color=fg, bgcolor=color.new(color.black, 100))
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 視覚補助
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
plot(ema5, color=color.new(color.yellow, 0), title="EMA5")
plot(ema13, color=color.new(color.orange, 0), title="EMA13")
plot(ema26, color=color.new(color.red, 0), title="EMA26")
plotshape(all8 and final3, title="BUY", style=shape.triangleup, location=location.belowbar,
color=color.new(color.lime, 0), size=size.tiny, text="BUY")
Futures Risk-Based Position CalculatorFutures Risk‑Based Position Calculator — Description
This TradingView indicator automatically calculates and displays Entry, Stop Loss (SL), and Take Profit (TP) levels for futures trades based on a fixed dollar‑risk amount.
What it does
Uses your account balance, dollar risk, number of contracts, point value, and tick size to compute how far the stop should be from the entry.
Determines the take‑profit level using a chosen risk‑to‑reward ratio.
Draws three lines on the chart:
Entry line
Stop loss line
Take profit line
Places labels next to the SL and TP lines showing prices and point distances.
Key features
Supports long or short calculation mode.
Configurable line styling:
Width, style (solid/dashed/dotted), color, opacity.
Separate styling for entry, SL, and TP.
Configurable label behavior:
Optional background.
Text color choices.
Adjustable vertical offset to avoid overlapping the lines.
Lines extend left/right by user‑defined bar amounts.
Values are always rounded to the market's tick size.
How levels are calculated
Entry = current close rounded to tick size.
Stop distance (points) = dollarRisk / (contracts × pointValue).
SL = entry − distance (long) or entry + distance (short).
TP = entry + distance × RR (long) or entry − distance × RR (short).
Visual behavior
Lines and labels update only on the last bar to avoid clutter.
Labels show:
SL: price, point distance, and contract count.
TP: price and point distance.
Global Net Liquidity (with offset Trail2Crypto)Click settings and set the offset to 70 days to have the perfect fit.




















