OPEN-SOURCE SCRIPT

Win-Loss Streak Plotter

444
Win-Loss Streak Plotter

This indicator tracks the win/loss streaks of moving average crossovers (using simple moving averages for illustration purposes). It calculates the price change after each crossover, marking each as a win (green) or loss (red). The win rate is shown separately.

Inputs:

Source: Price series (default: open)

Fast MA: Fast moving average (default: open)

Slow MA: Slow moving average (default: open)

Total Crosses to Analyze: Number of crossovers to track

Crosses per Row: Number of crossovers per row in the table


Output:


A table displays each crossover’s result (win/loss).

A separate win rate table shows the percentage of wins.

Suggestions are always welcomed!

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.