- Removed v10 TradingView indicator (moneyline_v10_momentum_dots.pinescript) - Removed v10 penalty system from signal-quality.ts (-30/-25 point penalties) - Removed backtest result files (sweep_*.csv) - Updated copilot-instructions.md to remove v10 references - Simplified direction-specific quality thresholds (LONG 90+, SHORT 80+) Rationale: - 1,944 parameter combinations tested in backtest - All top results IDENTICAL (568 trades, $498 P&L, 61.09% WR) - Momentum parameters had ZERO impact on trade selection - Profit factor 1.027 too low (barely profitable after fees) - Max drawdown -$1,270 vs +$498 profit = terrible risk-reward - v10 penalties were blocking good trades (bug: applied to wrong positions) Keeping v9 as production system - simpler, proven, effective.
29 lines
536 B
Python
29 lines
536 B
Python
"""
|
|
Compatibility Support for Python 2.7 and earlier
|
|
"""
|
|
|
|
import platform
|
|
|
|
from setuptools.extern import six
|
|
|
|
|
|
def get_all_headers(message, key):
|
|
"""
|
|
Given an HTTPMessage, return all headers matching a given key.
|
|
"""
|
|
return message.get_all(key)
|
|
|
|
|
|
if six.PY2:
|
|
def get_all_headers(message, key):
|
|
return message.getheaders(key)
|
|
|
|
|
|
linux_py2_ascii = (
|
|
platform.system() == 'Linux' and
|
|
six.PY2
|
|
)
|
|
|
|
rmtree_safe = str if linux_py2_ascii else lambda x: x
|
|
"""Workaround for http://bugs.python.org/issue24672"""
|