Draws points (lines) to high low and close. In some trading situations, this method is more convenient than candles or bars.
Рисует точки(линии) по high low и close. В некоторых ситуациях торговли такой способ бывает удобней, чем свечи или бары. На вкус и цвет все фломастеры разные =)
// The script is useful to inspect probability:
// If previous day closed at lowest price for several days
// how often next day would be red bar
// As one can see gray lines indicate bars with lowest close. If next bar is green, increment diff_hi, overwise increment diff_lo
// Probability is counted as diff_lo / (diff_hi+diff_lo)
// One can copy script and...
Confirmed highs when 1. it's higher than the 4 prior (lower) highs AND 2. higher than the 2 following (lower) highs.
Confirmed lows when 1. it's lower than the 4 prior (higher) lows AND 2. lower than the 2 following (higher) lows.
Updated Version with request for NDBMFB for swingHL, when "H" or "L" text appears it refers to the previous fractal in the series, as pinescript doesnt support dynamic offsetting, added a few more goodies :p