PROTECTED SOURCE SCRIPT
Flip Flop

Flip Flop is a visual trend-flip indicator built around two Hull Moving Averages (HMAs): a fast “Short” HMA and a slower “Long” HMA. It plots both HMAs with user-selectable colors, thickness, and line styles, and can shade the area between them to highlight trend bias (green when the short HMA is above the long HMA, red when below).
When the HMAs cross, the script can:
• Color the crossover candle (bullish or bearish)
• Print BUY/SELL labels at the crossover bar
• Trigger alert conditions for both bullish and bearish crosses
A compact on-chart dashboard summarizes the current short/long HMA values, market status (BULLISH ▲ / BEARISH ▼), and the most recent crossover date.
Optional performance tracking simulates a simple long-only system: it “enters” on bullish crosses and “exits” on bearish crosses, tracking equity, total P&L (and %), trade count, win rate, and average win/loss based on your initial capital and position sizing percent.
When the HMAs cross, the script can:
• Color the crossover candle (bullish or bearish)
• Print BUY/SELL labels at the crossover bar
• Trigger alert conditions for both bullish and bearish crosses
A compact on-chart dashboard summarizes the current short/long HMA values, market status (BULLISH ▲ / BEARISH ▼), and the most recent crossover date.
Optional performance tracking simulates a simple long-only system: it “enters” on bullish crosses and “exits” on bearish crosses, tracking equity, total P&L (and %), trade count, win rate, and average win/loss based on your initial capital and position sizing percent.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.