OPEN-SOURCE SCRIPT
ALMASTO – Pro Trend & Momentum (v1.1)

ALMASTO — Pro Trend & Momentum Strategy
Description:
This strategy is designed for precision trading in both Forex (FX) and Crypto markets.
It combines multi-timeframe trend confirmation (EMA200), momentum filters (RSI, MACD, ADX), and ATR-based dynamic risk management.
ALMASTO — Pro Trend & Momentum Strategy automatically manages take-profit levels, stop-loss, and breakeven adjustments once TP1 is reached — providing a structured and emotion-free trading approach.
Optimal Use
Works best on lower timeframes (5m–15m) with strong liquidity sessions.
Optimized for pairs like EURUSD, XAUUSD, and BTCUSDT.
Built for trend-following setups and momentum reversals with high volatility confirmation.
Recommended Settings
🔹 Forex – 5m
EMA Fast = 34, EMA Slow = 200, HTF = 1H
RSI (14): Long ≥ 55 / Short ≤ 45
MACD (8 / 21 / 5), ADX Len 10 / Min 27
ATR Len 7, Stop Loss = ATR × 2.1
TP1 = 1.1 RR, TP2 = 2.3 RR
Session = 07:00–11:00 & 12:30–16:00 (Exchange Time)
Risk = 0.8% per trade
🔹 Forex – 15m
EMA Fast = 50, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 53 / Short ≤ 47
MACD (12 / 26 / 9), ADX Min 24
ATR Len 10, SL = ATR × 1.9
TP1 = 1.2 RR, TP2 = 2.6 RR
Risk = 1.0% per trade
🔹 Crypto – 5m (BTC/USDT)
EMA Fast = 34, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 56 / Short ≤ 44
MACD (8 / 21 / 5), ADX Min 30
ATR Len 7, SL = ATR × 2.2
TP1 = 1.0 RR, TP2 = 2.5 RR
Session = 00:00–06:00 & 12:00–22:00 (UTC)
Risk = 0.5% per trade
Core Features
✅ Auto breakeven after TP1
✅ Dual take-profit system (1:1 & 1:2 RR)
✅ ATR-based stop & trailing logic
✅ Filters for session time, volume, and volatility
✅ Candle-body vs ATR size filter to avoid noise
✅ Optional cooldown between trades
Important Notes
Use bar close confirmation only (barstate.isconfirmed) to avoid repainting on lower timeframes.
Adjust commission (0.01–0.03%) and slippage (1–2 ticks) in Strategy Tester for realistic results.
Avoid low-liquidity hours (after 21:00 UTC for FX / after midnight for crypto).
Backtest using realistic broker data (e.g., BlackBull Markets / Bybit / Binance Futures).
Best results occur during London & New York sessions with moderate volatility.
⚠️ Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice.
Use proper risk management and test thoroughly before using on live accounts.
Developed by KING FX Labs
Built and optimized by Yousef Almasto — combining advanced price-action logic, multi-timeframe EMA structure, and volatility-adaptive ATR management.
Tested across Forex, Gold, and Crypto markets to ensure consistent performance and minimal drawdown.
📈 “Precision Trading. Zero Emotion. Pure Momentum.”
Description:
This strategy is designed for precision trading in both Forex (FX) and Crypto markets.
It combines multi-timeframe trend confirmation (EMA200), momentum filters (RSI, MACD, ADX), and ATR-based dynamic risk management.
ALMASTO — Pro Trend & Momentum Strategy automatically manages take-profit levels, stop-loss, and breakeven adjustments once TP1 is reached — providing a structured and emotion-free trading approach.
Optimal Use
Works best on lower timeframes (5m–15m) with strong liquidity sessions.
Optimized for pairs like EURUSD, XAUUSD, and BTCUSDT.
Built for trend-following setups and momentum reversals with high volatility confirmation.
Recommended Settings
🔹 Forex – 5m
EMA Fast = 34, EMA Slow = 200, HTF = 1H
RSI (14): Long ≥ 55 / Short ≤ 45
MACD (8 / 21 / 5), ADX Len 10 / Min 27
ATR Len 7, Stop Loss = ATR × 2.1
TP1 = 1.1 RR, TP2 = 2.3 RR
Session = 07:00–11:00 & 12:30–16:00 (Exchange Time)
Risk = 0.8% per trade
🔹 Forex – 15m
EMA Fast = 50, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 53 / Short ≤ 47
MACD (12 / 26 / 9), ADX Min 24
ATR Len 10, SL = ATR × 1.9
TP1 = 1.2 RR, TP2 = 2.6 RR
Risk = 1.0% per trade
🔹 Crypto – 5m (BTC/USDT)
EMA Fast = 34, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 56 / Short ≤ 44
MACD (8 / 21 / 5), ADX Min 30
ATR Len 7, SL = ATR × 2.2
TP1 = 1.0 RR, TP2 = 2.5 RR
Session = 00:00–06:00 & 12:00–22:00 (UTC)
Risk = 0.5% per trade
Core Features
✅ Auto breakeven after TP1
✅ Dual take-profit system (1:1 & 1:2 RR)
✅ ATR-based stop & trailing logic
✅ Filters for session time, volume, and volatility
✅ Candle-body vs ATR size filter to avoid noise
✅ Optional cooldown between trades
Important Notes
Use bar close confirmation only (barstate.isconfirmed) to avoid repainting on lower timeframes.
Adjust commission (0.01–0.03%) and slippage (1–2 ticks) in Strategy Tester for realistic results.
Avoid low-liquidity hours (after 21:00 UTC for FX / after midnight for crypto).
Backtest using realistic broker data (e.g., BlackBull Markets / Bybit / Binance Futures).
Best results occur during London & New York sessions with moderate volatility.
⚠️ Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice.
Use proper risk management and test thoroughly before using on live accounts.
Developed by KING FX Labs
Built and optimized by Yousef Almasto — combining advanced price-action logic, multi-timeframe EMA structure, and volatility-adaptive ATR management.
Tested across Forex, Gold, and Crypto markets to ensure consistent performance and minimal drawdown.
📈 “Precision Trading. Zero Emotion. Pure Momentum.”
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.