OPEN-SOURCE SCRIPT
Long Short Entry Signals + Pre-Signal (Strings)

Long Short Entry Signals + Pre-Signal (!)
This indicator is designed to provide clear and structured trading setups for both long and short entries — including an early warning signal before a trade is fully confirmed.
---
🔹 Features
• Pre-Signal (!)
Displays a warning when a potential trade is forming.
The market already meets key conditions (trend + momentum), but the final confirmation candle is still missing.
• Long Signal (L – green)
Triggered when:
- Uptrend is established (EMA Fast > EMA Slow)
- Price is above the fast EMA
- RSI shows strength
- A bullish confirmation candle forms
• Short Signal (S – yellow)
Triggered when:
- Downtrend is established (EMA Fast < EMA Slow)
- Price is below the fast EMA
- RSI shows weakness
- A bearish confirmation candle forms
---
📊 Strategy Logic
The indicator combines multiple proven concepts:
- Trend filtering using EMAs
- Momentum confirmation via RSI
- Price action (break of previous candle high/low)
- Cooldown system to reduce signal noise
Additionally, Stop Loss and Take Profit levels are internally calculated using:
- ATR (volatility-based)
- Swing highs/lows
---
⚠️ Notes
- This is not a guarantee of profitable trades.
- Works best on timeframes like 5m – 1H
- Ideal for trending markets; less effective in ranging conditions
- Always use proper risk management
---
💡 How to Use
1. Watch for a "!" (Pre-Signal) → prepare for a possible setup 2. Wait for L or S → confirmed entry signal 3. Combine with your own strategy or higher timeframe analysis for best results
---
🚀 Tip
Use alerts to get notified in advance:
- "Prepare Long / Short" for early setups
- "Long / Short Signal" for confirmed entries
---
Built for traders who want early awareness + confirmed precision in one simple tool.
This indicator is designed to provide clear and structured trading setups for both long and short entries — including an early warning signal before a trade is fully confirmed.
---
🔹 Features
• Pre-Signal (!)
Displays a warning when a potential trade is forming.
The market already meets key conditions (trend + momentum), but the final confirmation candle is still missing.
• Long Signal (L – green)
Triggered when:
- Uptrend is established (EMA Fast > EMA Slow)
- Price is above the fast EMA
- RSI shows strength
- A bullish confirmation candle forms
• Short Signal (S – yellow)
Triggered when:
- Downtrend is established (EMA Fast < EMA Slow)
- Price is below the fast EMA
- RSI shows weakness
- A bearish confirmation candle forms
---
📊 Strategy Logic
The indicator combines multiple proven concepts:
- Trend filtering using EMAs
- Momentum confirmation via RSI
- Price action (break of previous candle high/low)
- Cooldown system to reduce signal noise
Additionally, Stop Loss and Take Profit levels are internally calculated using:
- ATR (volatility-based)
- Swing highs/lows
---
⚠️ Notes
- This is not a guarantee of profitable trades.
- Works best on timeframes like 5m – 1H
- Ideal for trending markets; less effective in ranging conditions
- Always use proper risk management
---
💡 How to Use
1. Watch for a "!" (Pre-Signal) → prepare for a possible setup 2. Wait for L or S → confirmed entry signal 3. Combine with your own strategy or higher timeframe analysis for best results
---
🚀 Tip
Use alerts to get notified in advance:
- "Prepare Long / Short" for early setups
- "Long / Short Signal" for confirmed entries
---
Built for traders who want early awareness + confirmed precision in one simple tool.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน