OPEN-SOURCE SCRIPT
DRACO TOMAS EMA Trend Follower

🐉 DRACO TOMAS EMA Trend Follower
Description:
The DRACO TOMAS EMA Trend Follower is a simple yet powerful trend-following strategy designed to capture directional moves based on exponential moving average (EMA) crossovers. It automatically detects trend changes and manages positions dynamically.
Core Logic:
The strategy uses two EMAs — a Fast EMA (default 12) and a Slow EMA (default 21) — to identify the market trend.
When the Fast EMA crosses above the Slow EMA, the strategy opens a long position, signaling bullish momentum.
When the Fast EMA crosses below the Slow EMA, the strategy opens a short position, signaling bearish momentum.
The color of the EMAs changes dynamically: green for uptrends, red for downtrends.
Exit rules:
Longs are closed when the EMAs turn red (trend reversal to bearish).
Shorts are closed when the EMAs turn green (trend reversal to bullish).
Position Sizing:
The system uses 10% of equity per trade by default, allowing flexible risk management and compounding.
Purpose:
Designed for traders who want a clean and efficient EMA crossover system to follow trends automatically on any timeframe or asset.
Best Used For:
Swing trading and trend confirmation
Identifying major directional shifts
Testing EMA-based momentum systems
Description:
The DRACO TOMAS EMA Trend Follower is a simple yet powerful trend-following strategy designed to capture directional moves based on exponential moving average (EMA) crossovers. It automatically detects trend changes and manages positions dynamically.
Core Logic:
The strategy uses two EMAs — a Fast EMA (default 12) and a Slow EMA (default 21) — to identify the market trend.
When the Fast EMA crosses above the Slow EMA, the strategy opens a long position, signaling bullish momentum.
When the Fast EMA crosses below the Slow EMA, the strategy opens a short position, signaling bearish momentum.
The color of the EMAs changes dynamically: green for uptrends, red for downtrends.
Exit rules:
Longs are closed when the EMAs turn red (trend reversal to bearish).
Shorts are closed when the EMAs turn green (trend reversal to bullish).
Position Sizing:
The system uses 10% of equity per trade by default, allowing flexible risk management and compounding.
Purpose:
Designed for traders who want a clean and efficient EMA crossover system to follow trends automatically on any timeframe or asset.
Best Used For:
Swing trading and trend confirmation
Identifying major directional shifts
Testing EMA-based momentum systems
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.