.png)


๐ง ATR_RR_SignalPanel โ Technical & Detailed Description (EN) ๐ง ๐
ATR_RR_SignalPanel is an overlay indicator for cTrader that generates trend-change entry signals using a Fast EMA vs Slow EMA regime, then builds a complete virtual trade framework (Entry ๐, Stop Loss ๐, Final Take Profit ๐ฏ, Intermediate Targets ๐ข) using ATR-based risk sizing and a configurable Risk:Reward multiplier โ๏ธ.
๐งญ Core Logic (Signal Engine) ๐ฆ
- The indicator computes:
- Fast EMA โก and Slow EMA ๐ข on Close.
- ATR (Wilder smoothing) ๐ก๏ธ for volatility-based stop distance.
- A trend regime is defined as:
- Bull trend ๐ข when
Fast EMA > Slow EMA - Bear trend ๐ด when
Fast EMA < Slow EMA
- Bull trend ๐ข when
- A Trend Change ๐ triggers when the bull/bear state differs from the previous bar (equivalent to Pineโs
bullTrend != bullTrend[1]).
๐ฏ Entry Conditions (BUY/SELL) ๐ฉ๐ฅ
When a trend change occurs:
- BUY signal ๐ข if:
- Bull trend is active and a trend change is detected
- Optional candle confirmation โ : Close > Open (bullish candle)
- SELL signal ๐ด if:
- Bear trend is active and a trend change is detected
- Optional candle confirmation โ : Close < Open (bearish candle)
๐งช Virtual Position Management (Not a cBot) ๐งฉ
This indicator does not place orders. Instead it simulates an internal โvirtual positionโ:
- On a new BUY/SELL signal it sets:
- Entry Price = current close ๐
- Stop Loss = candle extreme ยฑ ATR ร multiplier ๐
- Final Take Profit = Entry ยฑ (Risk ร RiskReward) ๐ฏ
- Intermediate TP levels = steps at 1R, 2R, โฆ up to floor(RR)-1 ๐ข
- It monitors price action bar-by-bar:
- If TP final is touched โ marks ๐ฏ and closes virtual position โ
- If SL is touched โ marks ๐ and closes virtual position โ
- Intermediate TP hits are tracked only once ๐งท
๐ Invalidation Logic (Opposite Signal While Active) โ ๏ธ
If a new signal arrives while a virtual trade in the opposite direction exists:
- The previous entry is marked as INVALIDATED โ ๏ธ (INV BUY / INV SELL)
- The prior virtual position is terminated ๐งฏ
- A new virtual position is created in the new direction ๐
๐งผ Multi-Instance Safe (Multiple Copies on Same Chart) ๐งฉ๐งฉ
Each indicator instance generates a unique internal ID ๐, so:
- Lines/text from one instance wonโt overwrite another instance โ
- You can run several configurations in parallel (e.g., scalping + swing) ๐ง ๐
๐งฏ Anti-Clutter Controls (Markers Limiter) ๐งนโจ
To keep charts readable, it can:
- Limit the number of text markers drawn (BUY/SELL/TP/SL/INV/TP1โฆ) ๐งพ
- Automatically delete older markers when the limit is exceeded โป๏ธ
๐งท Optional โKeep Last Risk Linesโ ๐ง ๐
When enabled, the last Entry/SL/TP lines remain visible even after TP/SL closes:
- Great for post-trade review ๐งโ๐ฌ
- Great for journaling ๐โ
โ๏ธ Parameters โ Detailed Explanation (EN) ๐๐
๐ Signal & Risk Core
โก Fast EMA
- What it does ๐ง : Sets the period of the fast EMA used to detect regime shifts.
- Effect ๐: Lower values = more reactive โ more signals; higher = smoother โ fewer signals.
- Typical ranges ๐๏ธ: 3โ10 for fast markets โก, 10โ20 for calmer setups ๐ข
๐ข Slow EMA
- What it does ๐ง : Sets the period of the slow EMA used as the trend baseline.
- Effect ๐: Higher slow EMA = stronger filtering โ fewer trend-change triggers.
- Typical ranges ๐๏ธ: 13โ55 depending on style ๐งญ
๐ก๏ธ ATR Period
- What it does ๐ง : Controls volatility measurement length for ATR.
- Effect ๐: Short ATR reacts quickly (tighter SL), long ATR stabilizes (steadier SL).
- Typical ranges ๐๏ธ: 10โ21 is common โ
๐ SL Multiplier (ATR)
- What it does ๐ง : Defines Stop Loss distance in ATR units.
- Long ๐ข:
SL = Low - ATR * Mult - Short ๐ด:
SL = High + ATR * Mult - Effect ๐ฏ: Higher multiplier = wider SL (fewer stops, bigger risk); lower = tighter SL (more stops).
- Typical values ๐๏ธ: 0.3โ2.0 depending on volatility ๐ช๏ธ
โ๏ธ Risk:Reward (R:R)
- What it does ๐ง : Multiplies the โriskโ distance to compute final TP.
- Formula ๐:
- Risk = |Entry โ SL|
- Final TP = Entry ยฑ Risk ร RR ๐ฏ
- Intermediate TPs ๐ข: TP1 at 1R, TP2 at 2R, โฆ up to
floor(RR)-1 - Example ๐งช: RR=3 โ TP1 (1R), TP2 (2R), Final TP (3R) ๐ฏ๐ฏ๐ฏ
โ Require candle confirmation
- What it does ๐ง : Adds candle direction validation on the signal bar.
- BUY ๐ข: requires Close > Open
- SELL ๐ด: requires Close < Open
- Effect ๐งฝ: Filters out weak flips, reduces noise, may enter later โณ
๐ EMAs Display
๐๏ธ Show Fast EMA
- What it does ๐ง : Shows/hides the fast EMA line.
- Use case ๐ก: Hide if you want a clean chart ๐งผ
๐๏ธ Show Slow EMA
- What it does ๐ง : Shows/hides the slow EMA line.
- Use case ๐ก: Keep visible for trend context ๐งญ
๐๏ธ Visual Controls (Clutter Management) ๐งนโจ
๐ฆ Show Signals
- What it does ๐ง : Shows/hides BUY/SELL markers.
- Includes ๐งท: BUY ๐ข / SELL ๐ด markers (only)
- Tip ๐ก: Disable for โlines-onlyโ mode ๐
๐ท๏ธ Show TP Labels
- What it does ๐ง : Shows/hides labels like TP1, TP2โฆ
- Effect ๐งผ: Turning OFF removes lots of text noise on higher TFs ๐
- Note ๐งท: Labels appear only once per TP hit โ
โ ๏ธ Show Invalidation Marks
- What it does ๐ง : Shows/hides INV BUY / INV SELL markers.
- Use case ๐ง : Useful when you want to study signal reversals ๐
๐ฏ๐ Show Final TP/SL Marks
- What it does ๐ง : Shows/hides final TP and SL markers.
- Use case ๐: Great for reviewing outcome distribution ๐ฒ
๐ Show Risk Lines (Entry/SL/TP)
- What it does ๐ง : Draws Entry ๐, SL ๐, Final TP ๐ฏ lines on the chart.
- Effect ๐: Visualizes the virtual trade structure instantly ๐ง
๐ข Show Intermediate TP Lines
- What it does ๐ง : Draws dotted lines for TP1/TP2/... levels.
- Tip ๐งผ: Disable if chart gets too โgreen spaghettiโ ๐๐ข
๐ Keep Last Risk Lines
- What it does ๐ง : Keeps the last Entry/SL/TP lines visible after virtual exit (TP/SL).
- Why itโs useful ๐: Perfect for journaling & post-trade analysis ๐งโ๐ฌโ
๐งพ Max Markers On Chart (0=unlimited)
- What it does ๐ง : Limits how many text objects the indicator leaves on the chart.
- How it works โป๏ธ: When the limit is exceeded, the oldest markers are removed automatically.
- Recommended ๐๏ธ: 80โ200 depending on timeframe and history depth ๐ฐ๏ธ
๐งพ Show Info Panel
- What it does ๐ง : Displays a compact status panel on the chart.
- Shows ๐: Status (LONG/SHORT/No Position), Entry, SL, TP, computed RR.
- Tip ๐ก: Keep ON while testing, OFF for clean final visuals ๐งผ
.jpg)
.jpg)
.png)
 (1).png)
.png)
.png)
.png)
.jpg)
.png)
.png)
.png)
.jpg)
.jpg)
.png)
.jpg)
.png)
.png)
 (2).png)













.png)


