OPEN-SOURCE SCRIPT
CRR BUY/SELL

This is a dual engine (BUY and SELL) for scalping/micro trading on XAUUSD (10–20 pips), all in a single indicator:
Reads 1m, 5m, 15m, 30m (trend + momentum).
It has separate BUY and SELL engines.
It shows you in a central HUD:
Left side → BUY status.
Right side → SELL status.
Bottom → indicators + extra info + NY time.
1️⃣ Internal Engines
🔹 Shared Multi-TF
On 1m, 5m, 15m, 30m it calculates:
EMA 15/30/200 → bullish/bearish trend.
MACD → momentum.
RSI → strength.
From this comes:
t1, t2, t3, t4 =
1 = bullish,
-1 = bearish,
0 = neutral.
bullScore = how many TFs are bullish.
bearScore = how many TFs are bearish.
2️⃣ BUY Engine (BUY BOX)
Own Inputs:
Mode: aggressiveMicroBuy → yes/no.
Sensitivity: Normal / High / Turbo.
Filter for:
strong upward candle (ticks ≈ pips),
minimum ATR in pips,
minimum 1m bullish candle body.
Calculations:
Converts ATR to pips (atrPipsBuy) and validates sufAtrBuy.
Calculates momentumBull1 (1m):
large bullish candle in pips,
MACD bullish,
RSI bullish.
1m Micro signal “BUY WITHOUT PULLBACK” (buyNoPull):
EMA 15 > EMA 30 > EMA 200 (strong bullish trend on 1m),
MACD crosses upwards,
Price above EMA 30 1m.
Multi-TF Bull (multiTfBull):
Normal Mode: 1m bullish and 5-15-30m not against. High/Turbo Mode: bullScore >= 2.
Final BUY condition:
Conservative:
buyNoPull + multiTfBull + sufAtrBuy + momentumBull1
Aggressive:
(t1 == 1 or bigPumpBuy) + 15m not bearish + sufAtrBuy
condBuyFinal chooses between conservative/aggressive based on aggressiveMicroBuy.
3️⃣ SELL Engine (SELL BOX)
It's the bearish mirror of the BUY:
Own inputs:
aggressiveMicroSell, SELL Sensitivity, strong drop in ticks, ATR SELL, minimum bearish body.
Calculations:
ATR → pips (atrPipsSell) and sufAtrSell.
momentumBear1: strong red candle in 1m + MACD bear + RSI bear.
1m Micro signal “SELL WITHOUT PULLBACK” (sellNoPull):
EMA 15 < EMA 30 < EMA 200 (strong bearish trend 1m),
MACD crosses downwards,
Price below EMA 30 1m.
Multi–TF Bear (multiTfBear):
Normal: 1m bearish and 5–15–30m not against.
High/Turbo: bearScore >= 2.
Final SELL condition:
Conservative:
sellNoPull + multiTfBear + sufAtrSell + momentumBear1
Aggressive:
(t1 == -1 or bigDropSell) + 15m not bullish + sufAtrSell
condSellFinal based on aggressiveMicroSell.
4️⃣ Clock and Sessions
Calculates New York time.
Classifies session:
TOKYO (20–03),
LONDON (03–08),
NEW YORK (08–17).
Displays clockText (NY time) in the HUD.
5️⃣ Central HUD (double)
Table at the top center with 6 columns:
Columns 0–2 → BUY
Row 1: STATUS: MICRO BUY / NORMAL BUY / NEUTRAL.
Row 2: Light bulb + text:
STRONG RISE,
MULTI TF BULLISH,
NO SETUP. Columns 3–5 → SELL
Row 1: STATUS: MICRO SELL / NORMAL SELL / NEUTRAL
Row 2: Lightbulb + text:
SHARP DROP,
MULTI TF BEARISH,
NO SETUP.
In BUY, column 2 of the last row shows the NY time.
6️⃣ Footprint on the chart
Only when a new signal appears (not repeated):
buySignal = condBuyFinal and not condBuyFinal[1].
sellSignal = condSellFinal and not condSellFinal[1].
Draw:
Bar color:
Green on BUY candle.
Red on SELL candle.
Triangles:
BUY below the candle.
SELL above the candle.
7️⃣ Alerts
CRR BUY SCALPING → when condBuyFinal is true.
CRR SELL SCALPING → when condSellFinal is true.
🧩 In a sentence:
This is your master micro-scalping BUY/SELL panel, which combines multi-timeframe analysis, 1m momentum, ATR in pips, and strong candles, and summarizes it for you in a dual HUD (BUY on the left, SELL on the right) + clear markers on the exact trigger candle.
Reads 1m, 5m, 15m, 30m (trend + momentum).
It has separate BUY and SELL engines.
It shows you in a central HUD:
Left side → BUY status.
Right side → SELL status.
Bottom → indicators + extra info + NY time.
1️⃣ Internal Engines
🔹 Shared Multi-TF
On 1m, 5m, 15m, 30m it calculates:
EMA 15/30/200 → bullish/bearish trend.
MACD → momentum.
RSI → strength.
From this comes:
t1, t2, t3, t4 =
1 = bullish,
-1 = bearish,
0 = neutral.
bullScore = how many TFs are bullish.
bearScore = how many TFs are bearish.
2️⃣ BUY Engine (BUY BOX)
Own Inputs:
Mode: aggressiveMicroBuy → yes/no.
Sensitivity: Normal / High / Turbo.
Filter for:
strong upward candle (ticks ≈ pips),
minimum ATR in pips,
minimum 1m bullish candle body.
Calculations:
Converts ATR to pips (atrPipsBuy) and validates sufAtrBuy.
Calculates momentumBull1 (1m):
large bullish candle in pips,
MACD bullish,
RSI bullish.
1m Micro signal “BUY WITHOUT PULLBACK” (buyNoPull):
EMA 15 > EMA 30 > EMA 200 (strong bullish trend on 1m),
MACD crosses upwards,
Price above EMA 30 1m.
Multi-TF Bull (multiTfBull):
Normal Mode: 1m bullish and 5-15-30m not against. High/Turbo Mode: bullScore >= 2.
Final BUY condition:
Conservative:
buyNoPull + multiTfBull + sufAtrBuy + momentumBull1
Aggressive:
(t1 == 1 or bigPumpBuy) + 15m not bearish + sufAtrBuy
condBuyFinal chooses between conservative/aggressive based on aggressiveMicroBuy.
3️⃣ SELL Engine (SELL BOX)
It's the bearish mirror of the BUY:
Own inputs:
aggressiveMicroSell, SELL Sensitivity, strong drop in ticks, ATR SELL, minimum bearish body.
Calculations:
ATR → pips (atrPipsSell) and sufAtrSell.
momentumBear1: strong red candle in 1m + MACD bear + RSI bear.
1m Micro signal “SELL WITHOUT PULLBACK” (sellNoPull):
EMA 15 < EMA 30 < EMA 200 (strong bearish trend 1m),
MACD crosses downwards,
Price below EMA 30 1m.
Multi–TF Bear (multiTfBear):
Normal: 1m bearish and 5–15–30m not against.
High/Turbo: bearScore >= 2.
Final SELL condition:
Conservative:
sellNoPull + multiTfBear + sufAtrSell + momentumBear1
Aggressive:
(t1 == -1 or bigDropSell) + 15m not bullish + sufAtrSell
condSellFinal based on aggressiveMicroSell.
4️⃣ Clock and Sessions
Calculates New York time.
Classifies session:
TOKYO (20–03),
LONDON (03–08),
NEW YORK (08–17).
Displays clockText (NY time) in the HUD.
5️⃣ Central HUD (double)
Table at the top center with 6 columns:
Columns 0–2 → BUY
Row 1: STATUS: MICRO BUY / NORMAL BUY / NEUTRAL.
Row 2: Light bulb + text:
STRONG RISE,
MULTI TF BULLISH,
NO SETUP. Columns 3–5 → SELL
Row 1: STATUS: MICRO SELL / NORMAL SELL / NEUTRAL
Row 2: Lightbulb + text:
SHARP DROP,
MULTI TF BEARISH,
NO SETUP.
In BUY, column 2 of the last row shows the NY time.
6️⃣ Footprint on the chart
Only when a new signal appears (not repeated):
buySignal = condBuyFinal and not condBuyFinal[1].
sellSignal = condSellFinal and not condSellFinal[1].
Draw:
Bar color:
Green on BUY candle.
Red on SELL candle.
Triangles:
BUY below the candle.
SELL above the candle.
7️⃣ Alerts
CRR BUY SCALPING → when condBuyFinal is true.
CRR SELL SCALPING → when condSellFinal is true.
🧩 In a sentence:
This is your master micro-scalping BUY/SELL panel, which combines multi-timeframe analysis, 1m momentum, ATR in pips, and strong candles, and summarizes it for you in a dual HUD (BUY on the left, SELL on the right) + clear markers on the exact trigger candle.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.