거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

PSAR Zigzag (Non lagging) - MetaTrader 5용 지표

조회수:
2597
평가:
(3)
게시됨:
2025.03.31 21:12
업데이트됨:
2025.04.07 13:40
PSAR Zigzag.mq5 (11.07 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This indicator differs from the traditional zigzag you're already familiar with. The traditional zigzag serves a different purpose: it primarily highlights previous market swings and delays by the necessary number of bars before confirming the next swing. It works based on price action. A lagging and repainting indicator is not intended to detect real-time signals. The zigzag drawing is less commonly used in trend-following indicators. It is more commonly used to analyze historical pivot points in a market to predict future price movements.

This zigzag is something else entirely. It's a dynamic, trend-based zigzag with no lag up to the current bar. I base it on the SAR trend, which is a trend-following algorithm with no lag. Trend-following zigzags have been developed in the past, including one based on the PSAR, but they were delayed and produced invalid legs. Why have a lagging zigzag based on a non-lagging trend-following algorithm? This didn't seem logical to me. That's why I created this, because I think we should have a zero lag zigzag drawing.

A backstep is used to keep the legs valid. When searching for a high, it will find the highest high from the number of lookback bars defined in the backstep input, and will find the lowest low when searching for a low by the same number of lookback bars defined by the backstep figure. This means that the end of the segment will sometimes swing at the high or low, or at most recent support or resistance.The PSAR is known to struggle in ranging markets, and this is a shortcoming of it. Otherwise, it's quite a decent trend-following indicator. This zigzag structure is the most relevant part of the code. It was designed to be clean, efficient, and maintainable. I hope you appreciate the work and experimentation.


Candlestick Analysis EA R1 Candlestick Analysis EA R1

This MT5 Expert Advisor combines multi-timeframe candlestick pattern analysis with fundamental event filtering to execute trades with disciplined risk management.

Ranging Market Detector Ranging Market Detector

An indicator which attempts to highlight a ranging market area

SingleTesterCache SingleTesterCache

Tester's single pass data.

Calendar Calendar

Calendar - fundamental analysis on history and real-time.