OPEN-SOURCE SCRIPT
KAMA Flip strategy

I built this strategy because I wanted something that doesn’t overcomplicate trading.
No 20 indicators, no guessing, no “maybe I should close here.”
Just a clear momentum flip, a defined stop, and a defined take profit. (for me on 1D BTC chart it works best with 6% stoploss and 3% takeprofit, lookback should be 40, everything else standard)
The idea is simple: when momentum shifts, I want to be on the right side of it.
KAMA is good for this because it speeds up when the market moves and slows down when it doesn’t.
I normalize it so it becomes a clean zero-line oscillator.
Above zero means momentum is turning up. Below zero means it’s turning down.
That’s the entire entry logic. A flip is a flip.
The exit logic is just as simple: one stop loss, one take profit, both fixed percentages from the entry.
The position closes 100% at the target or the stop. No scaling in, no scaling out, no trailing.
It’s straightforward and easy to analyze because every trade has the exact same structure.
I originally made this for BTC on the daily chart, but nothing stops you from trying it on other charts.
If you want it only to go long, only to go short, or take both sides, you can set that.
All the KAMA parameters are open so you can play with how reactive the signal is.
The visuals and SL/TP lines can be turned on or off depending on how clean you want your chart.
This isn’t financial advice. It’s just a system I like because it’s simple, objective, and does exactly what it’s supposed to do.
Test it, adjust it, break it, rebuild it — do whatever fits your own approach.
No 20 indicators, no guessing, no “maybe I should close here.”
Just a clear momentum flip, a defined stop, and a defined take profit. (for me on 1D BTC chart it works best with 6% stoploss and 3% takeprofit, lookback should be 40, everything else standard)
The idea is simple: when momentum shifts, I want to be on the right side of it.
KAMA is good for this because it speeds up when the market moves and slows down when it doesn’t.
I normalize it so it becomes a clean zero-line oscillator.
Above zero means momentum is turning up. Below zero means it’s turning down.
That’s the entire entry logic. A flip is a flip.
The exit logic is just as simple: one stop loss, one take profit, both fixed percentages from the entry.
The position closes 100% at the target or the stop. No scaling in, no scaling out, no trailing.
It’s straightforward and easy to analyze because every trade has the exact same structure.
I originally made this for BTC on the daily chart, but nothing stops you from trying it on other charts.
If you want it only to go long, only to go short, or take both sides, you can set that.
All the KAMA parameters are open so you can play with how reactive the signal is.
The visuals and SL/TP lines can be turned on or off depending on how clean you want your chart.
This isn’t financial advice. It’s just a system I like because it’s simple, objective, and does exactly what it’s supposed to do.
Test it, adjust it, break it, rebuild it — do whatever fits your own approach.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.