"""Compare identical signals at two cost settings.

The costlier simulation should not outperform the same execution path with zero fees and slippage.
All inputs are synthetic teaching examples. Run: python 41_execution-cost-sensitivity.py
"""
from tv_math import *

a=equity_backtest([100,110,90],[105,100,95],[1,0,0],1000,0,0)
b=equity_backtest([100,110,90],[105,100,95],[1,0,0],1000,1,10)
assert b['net']<a['net']
print({'free':a['net'],'costed':b['net']})
