"""Summarize a net trade distribution.

Zero-profit trades remain in the denominator. Costs should already be included in supplied P&L.
All inputs are synthetic teaching examples. Run: python 10_trade-expectancy.py
"""
from tv_math import *

s=trade_summary([200,-100,0,100])
assert s['expectancy']==50 and s['win_rate']==.5
print(s)
