Price Distance to its MA by DGT

Prices high above the moving average (MA) or low below it are likely to be remedied in the future by a reverse price movement as stated in an Article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management

Here comes a study to indicate the idea of this article, Price Distance to its Moving Averages (P/MA Ratio)

The analysis expressed in the paper indicates that there is a connection between the distance of the prices to moving averages and subsequent returns : portfolios of stocks with lower prices to moving averages generally outperformed portfolios of stocks with higher prices to moving averages. This “overextended” effect is more pronounced when using shorter moving averages of 20 and 50 days, and is especially strong in short-term holding periods like one and two weeks. The highest annual returns are recorded when buying in the range of 0-5% below shorter moving averages of 20/50 days, and 0-10% below longer moving averages of 100/200 days. However, buying very far below almost all moving averages on almost all holding periods produces the lowest returns.

The concept of this study recognizes three different modes of action.
In a clearly established upward trend traders should be buying when prices are near or below the MA line and selling when prices move too far above the MA.
Conversely, in downward trend stocks should be shorted when reaching or going above the moving average and covered when they drop too far below the MA line.
In a sideways movement traders are advised to buy if the price is too low below the moving average and sell when it goes too far above it

Short-term traders can expect to outperform in a one or two week time window if buying stocks with lower prices compared to their 20 and 50 SMA / EMA , one to two-week holding periods is quite high, ranging from 72,09% to 90,61% for the SMA (20, 50) and 85,03% to 87,5% for the EMA (20, 50). The best results for the SMA 20 and 50, on average, are concentrated in the region of 0-5% below the MA for the majority of holding periods. Buying very far below almost all MA in almost all holding periods turns out to be the worst possible option

Candle patterns, momentum could be used in conjunction with this indicator for better results. Try Colored DMI and Ichimoku colored SuperTrend by DGT
릴리즈 노트: Price distance to its 10 * MA added as second line for better judgment. additionally the wide and narrow states of MA and 10 * MA can be used with analysis as well

Secondly, Exponential Moving Average (EMA) is added as option besides SMA as it has been analyzed with the article stated above
릴리즈 노트: small update : price to it’s slow moving average ratio (convergence/divergence) line made configurable by user
릴리즈 노트: small update : theshold lines made settabale
릴리즈 노트: Price Distance to its MA (P/MA) study when look closely you will observe similarities to The Relative Strength Index (RSI). Because of its similarity to RSI, the P/MA can be used in a similar way

Over bought and over sold levels needs to be adjusted based on the market. For crypto it is suggested 25/-25 (default setting) for forex and stocks 10/-10
릴리즈 노트: Display format updated as percentages since we measure changes in percentage with this study
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기


Thanks a lot for sharing this and the inspiration!
I was playing around quite a bit with the Distance-to-MA logic as a chop/range filter, see my outcome:
dgtrd nilux
Hello @nilux, very happy to hear this :-) thanks to @TradingView allowing us to share, learn from each other, get inspired from each other which leads us to increase the value of our studies

btw, chop/range filter, clever idea. clearly shows when to trade and when not, excellent
+1 응답
Hope it's work
dgtrd TiaSDavis
@TiaSDavis, I hope so, it could serve as an extra layer of technical analysis
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃