"""Locate a close inside its range.

A close at the midpoint gives zero multiplier; this is not a buyer-seller trade classification.
All inputs are synthetic teaching examples. Run: python 24_money-flow-location.py
"""
from tv_math import *

v=money_flow_multiplier(110,100,108)
assert abs(v-.6)<1e-12
print(v)
