import sys
sys.path.insert(0, "/opt/docker/PythagorasGoal/scripts/research/skyhook")
import skyhooklib as sk
from src.strategies.skyhook import SkyhookParams
V1 = SkyhookParams(ptn_n=55, sl_atr=2.5, tp_atr=6.0, vola_lo=35, vola_hi=95, vol_lo=0.0)
rep = sk.study("SKH01-V1", V1)
print(sk.fmt(rep))
print("causality:", sk.causality(V1))
print("\n--- marginal vs TP01 (does it ADD as a sleeve?) ---")
import altlib as al
print(al.fmt_marginal(dict(name="SKH01-V1", marginal=sk.marginal(V1),
      abs_grade=rep["verdict"]["grade"], marginal_verdict=sk.marginal(V1).get("marginal_verdict"),
      earns_slot=False)))
