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
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.
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.
์คํ ์์ค ์คํฌ๋ฆฝํธ
ํธ๋ ์ด๋ฉ๋ทฐ์ ์ง์ ํ ์ ์ ์ ๋ฐ๋ผ, ์ด ์คํฌ๋ฆฝํธ์ ์์ฑ์๋ ์ด๋ฅผ ์คํ์์ค๋ก ๊ณต๊ฐํ์ฌ ํธ๋ ์ด๋๋ค์ด ๊ธฐ๋ฅ์ ๊ฒํ ํ๊ณ ๊ฒ์ฆํ ์ ์๋๋ก ํ์ต๋๋ค. ์์ฑ์์๊ฒ ์ฐฌ์ฌ๋ฅผ ๋ณด๋ ๋๋ค! ์ด ์ฝ๋๋ ๋ฌด๋ฃ๋ก ์ฌ์ฉํ ์ ์์ง๋ง, ์ฝ๋๋ฅผ ์ฌ๊ฒ์ํ๋ ๊ฒฝ์ฐ ํ์ฐ์ค ๋ฃฐ์ด ์ ์ฉ๋๋ค๋ ์ ์ ๊ธฐ์ตํ์ธ์.
๋ฉด์ฑ ์ฌํญ
ํด๋น ์ ๋ณด์ ๊ฒ์๋ฌผ์ ๊ธ์ต, ํฌ์, ํธ๋ ์ด๋ฉ ๋๋ ๊ธฐํ ์ ํ์ ์กฐ์ธ์ด๋ ๊ถ์ฅ ์ฌํญ์ผ๋ก ๊ฐ์ฃผ๋์ง ์์ผ๋ฉฐ, ํธ๋ ์ด๋ฉ๋ทฐ์์ ์ ๊ณตํ๊ฑฐ๋ ๋ณด์ฆํ๋ ๊ฒ์ด ์๋๋๋ค. ์์ธํ ๋ด์ฉ์ ์ด์ฉ ์ฝ๊ด์ ์ฐธ์กฐํ์ธ์.
์คํ ์์ค ์คํฌ๋ฆฝํธ
ํธ๋ ์ด๋ฉ๋ทฐ์ ์ง์ ํ ์ ์ ์ ๋ฐ๋ผ, ์ด ์คํฌ๋ฆฝํธ์ ์์ฑ์๋ ์ด๋ฅผ ์คํ์์ค๋ก ๊ณต๊ฐํ์ฌ ํธ๋ ์ด๋๋ค์ด ๊ธฐ๋ฅ์ ๊ฒํ ํ๊ณ ๊ฒ์ฆํ ์ ์๋๋ก ํ์ต๋๋ค. ์์ฑ์์๊ฒ ์ฐฌ์ฌ๋ฅผ ๋ณด๋ ๋๋ค! ์ด ์ฝ๋๋ ๋ฌด๋ฃ๋ก ์ฌ์ฉํ ์ ์์ง๋ง, ์ฝ๋๋ฅผ ์ฌ๊ฒ์ํ๋ ๊ฒฝ์ฐ ํ์ฐ์ค ๋ฃฐ์ด ์ ์ฉ๋๋ค๋ ์ ์ ๊ธฐ์ตํ์ธ์.
๋ฉด์ฑ ์ฌํญ
ํด๋น ์ ๋ณด์ ๊ฒ์๋ฌผ์ ๊ธ์ต, ํฌ์, ํธ๋ ์ด๋ฉ ๋๋ ๊ธฐํ ์ ํ์ ์กฐ์ธ์ด๋ ๊ถ์ฅ ์ฌํญ์ผ๋ก ๊ฐ์ฃผ๋์ง ์์ผ๋ฉฐ, ํธ๋ ์ด๋ฉ๋ทฐ์์ ์ ๊ณตํ๊ฑฐ๋ ๋ณด์ฆํ๋ ๊ฒ์ด ์๋๋๋ค. ์์ธํ ๋ด์ฉ์ ์ด์ฉ ์ฝ๊ด์ ์ฐธ์กฐํ์ธ์.