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 ์ •์‹ ์— ๋”ฐ๋ผ, ์ด ์Šคํฌ๋ฆฝํŠธ์˜ ์ €์ž๋Š” ํŠธ๋ ˆ์ด๋”๋“ค์ด ์ดํ•ดํ•˜๊ณ  ๊ฒ€์ฆํ•  ์ˆ˜ ์žˆ๋„๋ก ์˜คํ”ˆ ์†Œ์Šค๋กœ ๊ณต๊ฐœํ–ˆ์Šต๋‹ˆ๋‹ค. ์ €์ž์—๊ฒŒ ๋ฐ•์ˆ˜๋ฅผ ๋ณด๋ƒ…๋‹ˆ๋‹ค! ์ด ์ฝ”๋“œ๋Š” ๋ฌด๋ฃŒ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ์ถœํŒ๋ฌผ์—์„œ ์ด ์ฝ”๋“œ๋ฅผ ์žฌ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ํ•˜์šฐ์Šค ๋ฃฐ์— ์˜ํ•ด ๊ด€๋ฆฌ๋ฉ๋‹ˆ๋‹ค. ๋‹˜์€ ์ฆ๊ฒจ์ฐพ๊ธฐ๋กœ ์ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ฐจํŠธ์—์„œ ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ฐจํŠธ์— ์ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?

๋ฉด์ฑ…์‚ฌํ•ญ