Comunidad

Indicadores y estrategias gratis con código fuente

522 scripts de la comunidad escritos en Deepwick Script, un subconjunto de Pine Script. Lee el código, añade cualquiera a un gráfico de cripto o CFD con un clic, haz backtest de las estrategias con comisiones y ejecución en la vela siguiente, y convierte sus condiciones en alertas.

522 scripts públicos

Publica el tuyo →
▼BOS▼BOS▼BOS▼BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS▼BOS▼BOS▼BOS▼BOS▼BOS▼BOS▼BOS▼BOS▼BOS▼BOS▲BOS▲BOS▲BOS▲BOS▲BOS▲BOS
indicador

Break of Structure (BOS)

Break of Structure (BOS) marks the bar where price takes out the previous swing high (bullish) or swing low (bearish) in the direction of the prevailing trend. - Bullish BOS = new high beyond the last swing high; bearish BOS = new low beyond the last swing low. - Triangles plot on break; an optional confirmClose filter requires the candle to close beyond the level. - Use BOS, not random breakouts, to align with smart-money positioning. - A BOS in the direction of the prevailing trend is a continuation signal; against the trend it is the precursor to a CHoCH. - Default swing = 5 (works well on 1m–1h); raise to 10+ on daily charts for structural breaks. - Pair with a higher-timeframe trend filter (HTF swing) for cleanest signals. - A BOS that closes strongly (full body through the level) is far more reliable than one that only touches the level with its wick. - Toggle the triangle markers off via showArrows if you want a cleaner chart.

loLabhiLabhiLabloLabhiLabloLabhiLabloLabhiLabloLabhiLabloLabhiLabhiLabloLab
indicador

Market Structure (HH/HL/LH/LL)

Market Structure classifies every confirmed swing as HH/HL/LH/LL so you can read the trend at a glance. - Step plot holds the most recent swing high/low until a new pivot prints. - Labels appear above/below each confirmed pivot: HH/LH above, HL/LL below. - Use the stair-step line + labels to trade with the dominant sequence. - Higher-Low after Lower-Lows is the textbook bullish change of character; Lower-High after Higher-Highs is the bearish mirror. - A clean HH/HL sequence (no LH/LL) is the highest-quality trend day you can find. - Combine with a higher-timeframe structure overlay to confirm whether internal structure agrees with the dominant trend. - Default swing = 5, which works well on 1m–15m charts; raise it to 10+ for swing structure. - The pivot confirmation is delayed by swing bars — there is no repaint on the live bar. - Use the colour inputs to theme the high/low stair-step lines independently.

estrategia

Volatility Regime Filter

The best-validated configuration in the research corpus, not a hunch. Trades only when realised volatility sits inside a normal band, and only in the direction of the long-term trend. - The filter: annualised realised volatility (40-bar stdev × √252) ranked against its own recent history; trade only when that percentile is between 10 % and 70 %. - The trend gate: only long when the close is above its level 252 bars ago. - Walk-forward validated on XAUUSD H1 (Dukascopy tick, 60,829 bars, 2016→2026) with the config frozen — no per-window optimisation. - 🚨 The percentile window is the parameter that matters, and it has to be long. The corpus ranked the volatility against the whole 10-year history; a short rolling percentile is a different filter, not a smaller version of the same one. Measured on the same walk-forward (median OOS Sharpe): rolling 160 bars → 2.57 (7 of 11 windows profitable) · rolling 500 → 2.76 (7 of 11) · rolling 1000 → 4.14 (8 of 11) · rolling 5000 → 3.89 (9 of 11). The default here is 1000 bars (25× the volatility lookback); anything under ~500 costs roughly half the edge. - The published Sharpe was not inflated by look-ahead — it was slightly diluted by it. The corpus computed the percentile with pandas rank(pct=True) over the whole series, so each bar's percentile used bars that come after it. Recomputing it causally (same window) makes it better, not worse: median OOS Sharpe 4.20 instead of 3.83, mean CAGR 17.4 % instead of 14.8 %, same 10 of 11 windows profitable. So the edge is real and the look-ahead was not what was propping it up. - 🚨 It does not generalise. The same filter on EURUSD peaks at Sharpe 1.23 (CAGR 1.8 %): it needs an asset whose volatility regime shifts line up with directional opportunity. Use it on gold-like instruments, not on range-bound FX. - 🚨 Sparse and not set-and-forget: ~11 trades a year, average max drawdown -11.4 %, and it struggles in chop (2021-2022 gold) while thriving in trends (2024-2026). It is a low-frequency system that can lose 10 %+ in a bad year. - No leverage assumed: the Sharpe above is unleveraged. Size it down — 0.5-1 % risk per trade.

▼S▼S▼S▲L▼S▼S▼S▲L▼S▲L▲L▲L▲L▲L▼S▼S▼S▼S▲L▲L▼S▼S▲L▲L▲L▼S▲L▲L▼S▲L▲L▼S▲L▼S
estrategia

IBS Mean Reversion

Internal Bar Strength mean reversion, from the paper Using Internal Bar Strength as a Key Indicator for Trading Country ETFs (arXiv:2306.12434). IBS measures where the close sits inside the bar's range: (close - low) / (high - low), from 0 (closed on the low) to 1 (closed on the high). - Buy below 0.2 (the bar was rejected at its low) and sell above 0.8 (closed on the high). - The paper measures the next-day return as ~0.54-0.61 positive after IBS < 0.2, against ~0.46-0.52 after IBS 0.8. - Holds for one day: the paper shows performance degrades with longer holding periods. - Caveat from the paper: IBS is computed at the close and entered at the close, which is hard in practice and costs slippage. The short side also pays a borrow rate that erodes the edge.