v0.3.0 — Freqtrade integration
Freqtrade Integration
VARRD now generates ready-to-run Freqtrade strategy files from validated edges. No more coding strategies blind — validate the idea
first, then deploy it.
What's new
from varrd import VARRD
from varrd.freqtrade import generate_strategy
v = VARRD()
result = v.discover("RSI oversold reversal on BTC")
if result.has_edge:
hyp = v.get_hypothesis(result.hypothesis_id)
strategy_code, config = generate_strategy(hyp)
with open("VARRDStrategy.py", "w") as f:
f.write(strategy_code)
# Drop into Freqtrade and run it
What it does
- generate_strategy() — Takes a VARRD-validated hypothesis and generates a complete Freqtrade .py strategy file with proper
populate_indicators(), populate_entry_trend(), ATR-based stop loss, take profit, and time-based exits. Includes full validation stats
in the header. - validate_strategy() — Already have a Freqtrade strategy? Parse it and validate through VARRD to check if the edge is real.