PROTECTED SOURCE SCRIPT

CENDERE ALLTIME

15
What is CENDERE ALLTIME?
CENDERE ALLTIME is a sophisticated moving average crossover trading indicator that helps you identify buy and sell opportunities in the market. It compares two moving averages (fast and slow) and generates signals when they cross each other.

Key Features
✅ Flexible MA Selection - Choose from 8 different moving average types
✅ Automatic Backtesting - Test your strategy on historical data
✅ Signal Labels - Visual buy/sell signals with profit/loss percentages
✅ Optimization Engine - Finds the best MA combinations automatically
✅ Dual Statistics - View performance for both backtest period and all-time data

How It Works
The Strategy Logic
BUY Signal (Entry):

Triggers when the Fast MA crosses ABOVE the Slow MA
Entry price: Closing price of the signal candle
A blue label appears showing the entry price

SELL Signal (Exit):

Triggers when the Fast MA crosses BELOW the Slow MA
Exit price: Opening price of the signal candle
A green/red label appears showing exit price and profit/loss percentage


Settings Overview
1. MA Settings
Fast MA (Green Line by default)

Type: Choose from SMA, EMA, WMA, VWMA, RMA, HMA, DEMA, ALMA
Length: 10-100 bars (default: 20)
Color: Customizable

Slow MA (Red Line by default)

Type: Choose from SMA, EMA, WMA, VWMA, RMA, HMA, DEMA, ALMA
Length: 10-100 bars (default: 30)
Color: Customizable

💡 Tip: Fast MA should always be shorter than Slow MA for proper crossover signals.
2. Backtest Settings

Initial Capital: Starting amount for simulation (default: $1000)
Backtest Bar Count: Number of recent bars to test (default: 500)

3. Display Settings

Show MA Lines: Toggle visibility of moving average lines
Show Buy/Sell Signals: Toggle signal markers on chart
Show Optimization Table: Display best MA combinations
Show Labels: Toggle buy/sell price labels with P&L

4. Line Customization

Line Width: 1-5 pixels thickness
Line Style: Solid, Dashed, or Dotted


Reading the Signals
Buy Signal (Blue Label)
Example: 45.3

Appears below the candle
Shows the entry price (closing price)
Enter long position at this price

Sell Signal (Green/Red Label)
Example: 48.7
+7.52%

Appears above the candle
Top number: Exit price (opening price)
Bottom number: Profit/loss percentage
Green = Profit | Red = Loss


Understanding Statistics
The indicator tracks two sets of statistics:
Current Backtest Period

Tests only the last X bars (defined in settings)
Resets when you change the backtest period
Useful for recent performance analysis

All-Time Statistics

Tests from the beginning of available data
Never resets
Shows overall strategy performance

Key Metrics:

Total Return %: Overall profit/loss percentage
Win Rate: Percentage of profitable trades
Number of Trades: Total completed trades
Final Capital: Ending balance after all trades
Average Duration: Average bars held per trade


Optimization Feature
The indicator automatically tests 45 different MA combinations and ranks them by performance.
Tested Combinations:

Fast MA: 10, 20, 30, 40, 50, 60, 70, 80, 90
Slow MA: 20, 30, 40, 50, 60, 70, 80, 90, 100
Only valid pairs where Fast < Slow

How to Use:

Enable "Show Optimization Table" in settings
View the table showing top-performing combinations
Note the best Fast/Slow MA lengths
Manually adjust your MA settings to match the optimal values


Best Practices
For Beginners

Start with default settings (20/30 SMA)
Test on 500 bars to see recent performance
Look for combinations with high win rate (>50%)
Prefer strategies with reasonable trade frequency (not too many/few)

For Advanced Users

Experiment with different MA types (EMA for faster response, SMA for smoothness)
Test various timeframes (4H, 1D, 1W)
Combine with other indicators for confirmation
Consider market conditions (trending vs ranging)

Risk Management Tips
⚠️ Always use stop-losses (indicator doesn't include stops)
⚠️ Past performance doesn't guarantee future results
⚠️ Verify signals with volume and price action
⚠️ Start with small position sizes when live trading

Common MA Types Explained
TypeDescriptionBest ForSMASimple Moving AverageSmooth, reliable, general useEMAExponential MAFaster response, trending marketsWMAWeighted MARecent price emphasisVWMAVolume-Weighted MAVolume-based tradingRMARSI Moving AverageSmoothing volatilityHMAHull MAVery fast, reduced lagDEMADouble Exponential MAReduced lag, fast signalsALMAArnaud Legoux MASmooth with low lag

Troubleshooting
Problem: No signals appearing

Check if Fast MA < Slow MA in length
Increase backtest bar count
Verify indicator is applied correctly

Problem: Too many signals

Increase MA lengths (less sensitivity)
Try slower MA types (SMA instead of EMA)
Switch to higher timeframe

Problem: Labels overlapping

Reduce zoom level
Disable labels and use signal markers only
Adjust line width to make chart cleaner

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.