Vertical Horizontal Moving Average [AneoPsy & alexgrover]

Moving average adapting to the strength of the trend, this is made possible by using the square of the vertical-horizontal filter as a smoothing factor. Alerts are included with two different types of conditions available to the user.


  • Length : Period of the moving average
  • Src : Input data for the indicator
  • Alerts : Types of conditions to be used in the alerts, when set to "VHMA Direction Change" alerts are triggered once the VHMA is either rising or declining, else the alerts are based on the crosses between Src and the VHMA


The VHMA can be used as a fast or slow-moving average in a moving average crossover system, or as input for other indicators.

VHMA of with length = 25 and sma with length = 200.

VHMA with length = 25 used as input for the RSI with length = 14.


The vertical-horizontal filter is a measure of the strength of the trend and lay in a (0,1) range, to calculate it you just need to divide the rolling range over with the rolling sum of the absolute price changes, squaring the result allow to get lower results with higher values of length.

Squared vertical horizontal filter with length = 50, the value is low when the market is ranging and high when trending.

To set the alerts go in the alert panel, click on create alert, and select VHMA in "condition", choose between the buy or sell alert. If Src = closing price or another indicator dependant on the closing price select in options "once per bar close", if the indicator using the opening or lagged closing prices values as input select "One per bar" instead.


Thanks to AneoPsy for adding the color change, the idea to use two kinds of conditions for the alert, and for its feedback, you can follow him

and finally thanks to you for reading and for your support, only one last script left for the month, then we'll start July with some pretty interesting indicators, I hope you'll like them ^^/

즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
« Je suis las des cruautés de mes semblables, qui ne sont pas mes pareils.

« Je prendrai l’essor et je m’envolerai vers la mer.

« Je connaîtrai le goût des brises du large. J’entendrai les grands cris de la tempête.


Thank you sir
+3 응답
@THC001, You are welcome
Looks great Alex!
+2 응답
You are on fire! :p
+2 응답
Great. The indicator is really fast.
+1 응답
Impressive! Thank you.
+1 응답
+1 응답
dear alexgrover
it is possible to convert and publish this indicator to another trading platforms?
+1 응답
@mfejza, As long as you give appropriate credit to me and AneoPsy and use the same license, see
mfejza alexgrover
@alexgrover, yes of course. thanks mate
+1 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃