Metadata-Version: 2.4
Name: bruedemo
Version: 0.3.0
Summary: Internal test build of the Brue trading-strategy language engine. Will be republished under its final name; do not depend on this package.
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# bruedemo

Internal TEST build of the Brue trading-strategy language engine
(pure Python). Published for real-world install testing by the
London Strategic Edge team only. The engine will be republished under
its final name; do not depend on this package.

A complete strategy is a few precise lines. The header is config only;
names are optional and unnecessary:

```
strategy(capital=100000, default_qty=0.25)

fast = ema(close, 12)
slow = ema(close, 26)

if crossover(fast, slow):
    entry("long", stop_loss=close - atr(14) * 2)
if crossunder(fast, slow):
    close_all()
```

Run it in one line:

```python
import brue

r = brue.run("trend.brue", "EURJPY_1h.csv")
r.stats          # winRate, profitFactor, sharpe, drawdown, ...
r.trades_frame() # the ledger as a pandas DataFrame
```

Fills are honest (orders fill at the NEXT bar's open; a stop beats a
target inside one bar), 143 indicators are built in, and `python -m brue`
adds montecarlo / walkforward on the same script.
