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):
buy(sl=close - atr(14) * 2, tp=close + atr(14) * 3)
if crossunder(fast, slow):
close()
One order vocabulary, buy() / sell() / close(), is all there is.
The same script backtests today and (when the live driver ships) trades
live; the runner decides, the script never does.
Run it in one line:
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.
Metadata
Release files for bruedemo 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bruedemo-0.4.1.tar.gz | 112.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bruedemo-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 227.8 kB
Release files / bruedemo-0.4.1.tar.gz
| Download URL | bruedemo-0.4.1.tar.gz |
|---|---|
| Size | 112.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34e012435f1357124e82e732f136261104f912585c19dfab122781bebe21f717
|
|
BLAKE2b-256 checksum How to use checksums |
9d228c316c47aa43c8faa5fa3070790ceeeb7c9344c20d390a3bedd9569d6558
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / bruedemo-0.4.1-py3-none-any.whl
| Download URL | bruedemo-0.4.1-py3-none-any.whl |
|---|---|
| Size | 115.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8d9b4fa8b3c37337cf30bc37ef09f2c7cea017a624a4903e07add76ab569813
|
|
BLAKE2b-256 checksum How to use checksums |
446db235509759f627a68e1ea1e94ac6e05e6704704c4129d36367662de5fdb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|