pacificbay / sar

Lucid SAR - a parabolic SAR indicator, written in Pine Script, based on section II of J. Welles Wilder, Jr.'s book “New Concepts in Technical Trading Systems” (1978)
MIT License
21 stars 9 forks source link

Handle multiple parabolic SAR reversals in one candle #4

Closed casey-bowman closed 4 years ago

casey-bowman commented 4 years ago

Realtime candles with multiple reversals intra-candle do not reflect the proper SAR of the final intra-candle reversal after the candle closes.

After a parabolic SAR reversal in a realtime candle, keep track of highs and lows and enable subsequent reversals in the same candle with SARs placed at these highs and lows.

Issue was brought to my attention by Sawcruhteez on Sep 9. I suggested the simple solution of keeping track of subsequent highs and lows in Telegram conversation, illustrating this with diagrams

casey-bowman commented 4 years ago

Fix committed and pushed. Tagged v1.1.6

casey-bowman commented 4 years ago

Additional code committed and pushed. Tagged v1.1.7

casey-bowman commented 4 years ago

Simplified code committed and pushed. Tagged v1.1.8

casey-bowman commented 4 years ago

Published v1.1.8