"""Locate price in a rolling high-low window.

A value near 100 does not by itself imply an imminent decline.
All inputs are synthetic teaching examples. Run: python 25_stochastic-location.py
"""
from tv_math import *

v=stochastic(108,[107,110],[100,102])
assert v==80
print(v)
