sonnyparlin

OBV MA Strategy

sonnyparlin 업데이트됨   
The On Balance Volume + Moving Average Strategy

Parameters: 1H candles, ETHUSDT on BINANCEUS, commission percent uses Binance's maker/taker fees of 0.075%
Strategy: I create a 30 day moving average of the On Balance Volume "obvSma = ta.sma(ta.obv, 30)." Then I use the following buy conditions:

  • OBV crosses above the OBV moving average
  • The obv drops x% below the OBV moving average (buy a dip)
  • The OBV moving average is rising, the OBV is greater than the OBV moving average and the OBV is rising

The first buy condition is attempting to buy into an uptrend. When the OBV rises above the OBV moving average, people are buying and it's a good time to enter the trade.
The idea behind the second buy condition is to buy a dip so make sure you are careful to not set it too shallow or you'll end up buying the dip before the dip before the dip. :) I recommend 10% or more.
The third buy condition is there in case our trailing stop takes us out of a trade but the trend is still rising, we don't want to miss out on that profit so if the OBV is above the OBV moving average, the average is rising and the OBV is rising, we are likely in the middle of an uptrend and we should buy in.
릴리즈 노트:
Changed some default parameters for the chart and also updated a variable name to be more clear.

`takeProfit` is now `activation`

I initially called it takeProfit because I tend to keep my trailing stop loss very tight so that if the candle hits the activation level but then starts to fall, the trailing stop will activate. The downside of this is that you end up missing opportunities, but overall, you see much more profit with a tighter trailing stop. The trick is to set your activation level to where you're happy taking profit. Setting it too low produces less profit, setting it too high wins you less trades. I tend to keep my activation level anywhere between 0.5% and 2% depending on the asset.
릴리즈 노트:
Added user configurable moving average length for the OBV moving average.
릴리즈 노트:
Removed
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?