PROTECTED SOURCE SCRIPT

Flip Flop

55
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.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。