OPEN-SOURCE SCRIPT
Advanced Algo [From India]

Here is a **shortened, more concise, and TradingView-ready version** of the description, with
**“TG – SWIFT Algo V1.1” replaced by “Advanced Algo [From India]”** and explanations tightened while keeping clarity and professionalism.
---
🙏 Introduction & Gratitude
> *I have taken so much from this TradingView community over the years — ideas, learning, and inspiration.
> It’s time to give back a small contribution with gratitude.*
**Advanced Algo [From India]** is a **non-repainting, rule-based intraday indicator** designed primarily for **crypto markets**, optimized for **5-minute and 15-minute timeframes**.
The goal is to provide **clean signals, disciplined trade structure, and consistent execution logic**.
---
📌 Indicator Overview
**Advanced Algo [From India]**:
* Generates **confirmed BUY / SELL signals**
* Automatically plots **Entry, Take-Profit, and Stop-Loss levels**
* Maintains **one active trade at a time** to avoid over-trading
* Tracks results via a **lightweight statistics table**
This is a **decision-support tool**, not a prediction system or financial advice.
---
## ⚙️ High-Level Logic
### 1️⃣ Adaptive Moving Average Engine
The indicator compares two adaptive moving averages:
* **Fast MA** (close-based)
* **Slow MA** (open-based)
Selectable MA types:
* **TEMA**
* **Hull MA**
* **ALMA** (default – low lag & smooth)
A small **price delay** is applied to ensure **true non-repainting behavior**.
---
### 2️⃣ Signal Generation (Confirmed Bars Only)
* **BUY** → Fast MA crosses above Slow MA
* **SELL** → Fast MA crosses below Slow MA
Signals are generated **only after candle confirmation**.
---
### 3️⃣ Trade Lifecycle Control
Once a trade starts:
* Entry price is fixed
* TP & SL are calculated using percentage inputs
* No new trades are allowed until the current trade exits
This prevents signal clustering and emotional over-trading.
---
### 4️⃣ Intrabar TP & SL Handling
Although entries are bar-confirmed:
* **Take-Profit and Stop-Loss execute intrabar**
* Trades exit immediately when price is touched
This closely matches real-market behavior on lower timeframes.
---
## 📊 Visuals & Statistics
* **Blue** → Entry
* **Purple** → Take Profit
* **Maroon** → Stop Loss
* Green & red fills show reward and risk zones
Optional labels mark:
* Entries
* TP hits
* SL hits
A simple stats table tracks:
* Buy TP / Sell TP
* Buy SL / Sell SL
---
## ⏱ Recommended Usage
**Best suited for:**
* Crypto markets (BTC, ETH, liquid altcoins)
* **5m and 15m timeframes**
* Trending or moderately volatile conditions
**Tips:**
* Start with default settings
* Adjust TP & SL based on volatility
* Avoid low-volume or highly ranging markets
---
## 🔔 Alerts & Automation
The script includes structured alerts for:
* Entries
* TP & SL exits
These can be used for **manual alerts or automated execution workflows**.
---
## ⚠️ Disclaimer
* No indicator guarantees profits
* Always backtest and forward-test before live trading
* Proper risk management is essential
This script is shared **for educational and analytical purposes only**.
---
## 🤝 Closing Note
If this tool adds structure or clarity to your trading, then it has fulfilled its purpose.
Feedback and constructive suggestions are always welcome.
**Trade responsibly and stay disciplined.**
**“TG – SWIFT Algo V1.1” replaced by “Advanced Algo [From India]”** and explanations tightened while keeping clarity and professionalism.
---
🙏 Introduction & Gratitude
> *I have taken so much from this TradingView community over the years — ideas, learning, and inspiration.
> It’s time to give back a small contribution with gratitude.*
**Advanced Algo [From India]** is a **non-repainting, rule-based intraday indicator** designed primarily for **crypto markets**, optimized for **5-minute and 15-minute timeframes**.
The goal is to provide **clean signals, disciplined trade structure, and consistent execution logic**.
---
📌 Indicator Overview
**Advanced Algo [From India]**:
* Generates **confirmed BUY / SELL signals**
* Automatically plots **Entry, Take-Profit, and Stop-Loss levels**
* Maintains **one active trade at a time** to avoid over-trading
* Tracks results via a **lightweight statistics table**
This is a **decision-support tool**, not a prediction system or financial advice.
---
## ⚙️ High-Level Logic
### 1️⃣ Adaptive Moving Average Engine
The indicator compares two adaptive moving averages:
* **Fast MA** (close-based)
* **Slow MA** (open-based)
Selectable MA types:
* **TEMA**
* **Hull MA**
* **ALMA** (default – low lag & smooth)
A small **price delay** is applied to ensure **true non-repainting behavior**.
---
### 2️⃣ Signal Generation (Confirmed Bars Only)
* **BUY** → Fast MA crosses above Slow MA
* **SELL** → Fast MA crosses below Slow MA
Signals are generated **only after candle confirmation**.
---
### 3️⃣ Trade Lifecycle Control
Once a trade starts:
* Entry price is fixed
* TP & SL are calculated using percentage inputs
* No new trades are allowed until the current trade exits
This prevents signal clustering and emotional over-trading.
---
### 4️⃣ Intrabar TP & SL Handling
Although entries are bar-confirmed:
* **Take-Profit and Stop-Loss execute intrabar**
* Trades exit immediately when price is touched
This closely matches real-market behavior on lower timeframes.
---
## 📊 Visuals & Statistics
* **Blue** → Entry
* **Purple** → Take Profit
* **Maroon** → Stop Loss
* Green & red fills show reward and risk zones
Optional labels mark:
* Entries
* TP hits
* SL hits
A simple stats table tracks:
* Buy TP / Sell TP
* Buy SL / Sell SL
---
## ⏱ Recommended Usage
**Best suited for:**
* Crypto markets (BTC, ETH, liquid altcoins)
* **5m and 15m timeframes**
* Trending or moderately volatile conditions
**Tips:**
* Start with default settings
* Adjust TP & SL based on volatility
* Avoid low-volume or highly ranging markets
---
## 🔔 Alerts & Automation
The script includes structured alerts for:
* Entries
* TP & SL exits
These can be used for **manual alerts or automated execution workflows**.
---
## ⚠️ Disclaimer
* No indicator guarantees profits
* Always backtest and forward-test before live trading
* Proper risk management is essential
This script is shared **for educational and analytical purposes only**.
---
## 🤝 Closing Note
If this tool adds structure or clarity to your trading, then it has fulfilled its purpose.
Feedback and constructive suggestions are always welcome.
**Trade responsibly and stay disciplined.**
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.