OPEN-SOURCE SCRIPT

Impulse BF 🚀

Thanks to rasantos for the idea for this strategy.

The 2 lines are based on the sum number of impulses for x bars back. So total "up impulses" is the sum of the bars where price closed higher, and vice versa for "down impulses". The strategy is simple - a long signal is generated when the total up impulses exceeds the total down impulses. A short signal is generated when total down impulses exceeds total up impulses.

I included a rate of change function to filter out some of the sideways action, denoted by a white background.

I included the option of a stop loss since it may be useful for some settings but the default is 100% which will not be triggered. If we get stopped out and we still have the conditions for our position on candle close, we re-enter.

INSTRUCTIONS
  • Bright Green = go long
  • Bright Red = go short
  • Green = we have conditions for a long
  • Red = we have conditions for a short
  • White = no trade


NB: the length parameters are set to 18 by default. The higher this number, the more long term this strategy becomes. So for a macro trader, a setting of 84 would provide a small number of trades per year.
impulseTrend Analysis

āļŠāļ„āļĢāļīāļ›āļ•āđŒāđ‚āļ­āđ€āļžāļ™āļ‹āļ­āļĢāđŒāļ‹

āļ”āđ‰āļ§āļĒāđ€āļˆāļ•āļ™āļēāļĢāļĄāļ“āđŒāļŦāļĨāļąāļāļ‚āļ­āļ‡ TradingView āļœāļđāđ‰āđ€āļ‚āļĩāļĒāļ™āļŠāļ„āļĢāļīāļ›āļ•āđŒāļ™āļĩāđ‰āđ„āļ”āđ‰āđ€āļœāļĒāđāļžāļĢāđˆāđ€āļ›āđ‡āļ™āđ‚āļ­āđ€āļžāļ™āļ‹āļ­āļĢāđŒāļŠ āđ€āļžāļ·āđˆāļ­āđƒāļŦāđ‰āđ€āļ—āļĢāļ”āđ€āļ”āļ­āļĢāđŒāļŠāļēāļĄāļēāļĢāļ–āđ€āļ‚āđ‰āļēāđƒāļˆāđāļĨāļ°āļ•āļĢāļ§āļˆāļŠāļ­āļšāđ„āļ”āđ‰ āļ•āđ‰āļ­āļ‡āļ‚āļ­āļšāļ„āļļāļ“āļœāļđāđ‰āđ€āļ‚āļĩāļĒāļ™! āļ—āļĩāđˆāđƒāļŦāđ‰āļ„āļļāļ“āđƒāļŠāđ‰āđ„āļ”āđ‰āļŸāļĢāļĩ āđāļ•āđˆāļāļēāļĢāļ™āļģāđ‚āļ„āđ‰āļ”āļ™āļĩāđ‰āđ„āļ›āđƒāļŠāđ‰āđƒāļ™āļāļēāļĢāđ€āļœāļĒāđāļžāļĢāđˆāļ‹āđ‰āļģāļˆāļ°āļ•āđ‰āļ­āļ‡āļ­āļĒāļđāđˆāļ āļēāļĒāđƒāļ•āđ‰ āļāļŽāļĢāļ°āđ€āļšāļĩāļĒāļšāļāļēāļĢāđƒāļŠāđ‰āļ‡āļēāļ™ āļ„āļļāļ“āļŠāļēāļĄāļēāļĢāļ–āļ•āļąāđ‰āļ‡āđ€āļ›āđ‡āļ™āļĢāļēāļĒāļāļēāļĢāđ‚āļ›āļĢāļ”āđ€āļžāļ·āđˆāļ­āđƒāļŠāđ‰āļšāļ™āļŠāļēāļĢāđŒāļ•āđ„āļ”āđ‰

āļ•āđ‰āļ­āļ‡āļāļēāļĢāļ—āļĩāđˆāļˆāļ°āđƒāļŠāđ‰āļŠāļ„āļĢāļīāļ›āļ•āđŒāļ™āļĩāđ‰āļšāļ™āļŠāļēāļĢāđŒāļ•āđƒāļŠāđˆāđ„āļŦāļĄ?

āļ„āļģāļˆāļģāļāļąāļ”āļŠāļīāļ—āļ˜āļīāđŒāļ„āļ§āļēāļĄāļĢāļąāļšāļœāļīāļ”āļŠāļ­āļš