PROTECTED SOURCE SCRIPT
Aggiornato Another EMA trend indicator

"Another EMA Trend Indicator" is a dynamic trend-following tool. Blending customizable Moving Averages (EMA or SMA) with an automated, visualized trade management system. It identifies bullish and bearish trend shifts based on short- and long-term MA crossovers, dynamically calculates optimal entry points, stop-losses, and take-profits, and visually manages trades on the chart with optional clouds, lines, and labels.
Main Features:
Moving Average Trend Detection:
Choice between EMA (Exponential Moving Average) or SMA (Simple Moving Average).
Two customizable lengths: a short MA and a long MA.
Detects bullish and bearish switches based on MA crossover events.
Entry, SL, and TP Calculation:
Entries are calculated dynamically after a signal using a combination of historical candle high/low analysis and a risk divider.
Stop-loss and take-profit levels are automatically set based on the trend's recent volatility and user-defined risk parameters.
Supports fixed or dynamic profit targets.
Risk Management Settings:
Define minimum and maximum acceptable profit percentages.
Set maximum stop-loss distance and apply a stop-loss multiplier for added flexibility.
Limit maximum trade duration to avoid endless open trades.
Trade Visualization:
Optional debug mode to display:
Entry, stop-loss, and take-profit lines.
Buy/sell signals via shapes on the chart.
Trend cloud between short and long MAs.
Historical trend levels for better visualization.
Dynamic Statistics Panel:
Real-time display of:
First trade date.
Total number of trades.
Number of profitable and losing trades.
Average and maximum trade duration.
Win rate and average profit/loss percentages.
Inputs:
MA Type: Choose between "EMA" or "SMA."
Short/Long MA Length: Customize lengths to control sensitivity.
Source: Apply to typical price values like hl2.
Risk Settings:
Minimum, maximum, and fixed profit percentages.
Stop-loss settings and risk dividers.
Trade Behavior Settings:
Max trade length.
Visualization Toggles:
Show/hide debug labels, lines, clouds.
Use Case:
This indicator is ideal for trend-following traders who prefer a semi-automated trading framework. It helps maintain consistency in entries and exits while visualizing important trend dynamics and trade health directly on the chart.
Best suited for swing trading crypto coins.
Main Features:
Moving Average Trend Detection:
Choice between EMA (Exponential Moving Average) or SMA (Simple Moving Average).
Two customizable lengths: a short MA and a long MA.
Detects bullish and bearish switches based on MA crossover events.
Entry, SL, and TP Calculation:
Entries are calculated dynamically after a signal using a combination of historical candle high/low analysis and a risk divider.
Stop-loss and take-profit levels are automatically set based on the trend's recent volatility and user-defined risk parameters.
Supports fixed or dynamic profit targets.
Risk Management Settings:
Define minimum and maximum acceptable profit percentages.
Set maximum stop-loss distance and apply a stop-loss multiplier for added flexibility.
Limit maximum trade duration to avoid endless open trades.
Trade Visualization:
Optional debug mode to display:
Entry, stop-loss, and take-profit lines.
Buy/sell signals via shapes on the chart.
Trend cloud between short and long MAs.
Historical trend levels for better visualization.
Dynamic Statistics Panel:
Real-time display of:
First trade date.
Total number of trades.
Number of profitable and losing trades.
Average and maximum trade duration.
Win rate and average profit/loss percentages.
Inputs:
MA Type: Choose between "EMA" or "SMA."
Short/Long MA Length: Customize lengths to control sensitivity.
Source: Apply to typical price values like hl2.
Risk Settings:
Minimum, maximum, and fixed profit percentages.
Stop-loss settings and risk dividers.
Trade Behavior Settings:
Max trade length.
Visualization Toggles:
Show/hide debug labels, lines, clouds.
Use Case:
This indicator is ideal for trend-following traders who prefer a semi-automated trading framework. It helps maintain consistency in entries and exits while visualizing important trend dynamics and trade health directly on the chart.
Best suited for swing trading crypto coins.
Note di rilascio
"Error on bar {bar_index}: The requested historical offset ({num1}) is beyond the historical buffer's limit ({num2})." error fixNote di rilascio
Signals now seem to be more accurate but every crypto coin tends to have its sweet spot for minimum profit and trend offsetImprovements
- Trend detection
- Trade entry/profit/loss logic
- Trend lines (improved start of trend display)
New inputs
- Max entry length - candle amount to start entry or cancel signal
- Minimum trend offset - dynamic offset, changes a lot for signal accuracy
TODO:
- Option to automatically adjust inputs for best signal accuracy
- Performance improvements
Note di rilascio
Improvements- Start time - input for more accurate trade statistics
- Added statistics for long and short trades
- Small change for signal entry accuracy
Note di rilascio
Updated signal entry value logicScript protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.