pybroker icon indicating copy to clipboard operation
pybroker copied to clipboard

Algorithmic Trading in Python with Machine Learning

Results 7 pybroker issues
Sort by recently updated
recently updated
newest added

Hi there! I tried to run a sample code and got this error: "RuntimeError: Native library not available at ... /Users/usr/opt/anaconda3/envs/pybroker39/lib/python3.9/site-packages/py_mini_racer/libmini_racer.dylib Anyone had the same issue before?

Hi, @edtechre, Thank you for your wonderful tool. I have a trading scenario but don't know how to implement in pybroker. It's appreciated if you could give some suggestions. 1,...

def rotate(ctx: ExecContext): if ctx.long_pos(): if ctx.symbol not in pyb.param('top_symbols'): ctx.sell_all_shares() else: target_size = pyb.param('target_size') ctx.buy_shares = ctx.calc_target_shares(target_size) ctx.score = ctx.indicator('roc_20')[-1] 设置了ctx.score的值后,买入的具体原则是怎样的,这个ctx.score具体作用和影响是什么呢

Can we add support for Schwab API - https://github.com/alexgolec/schwab-py

Hi, Ed 1. numpy had released 2.0 at 20240617, ref: https://numpy.org/news/; 2. pybroker should consider update numpy 1.x to numpy 2.0 3. I have test numpy 2.0 in pybroker, we...

This should fix my issue in issue no #148 and allows pybroker to fetch adjusted market data from the alpaca API

It is not possible for pybroker to fetch market price data that is adjusted for stock splits. Despite most of the functionality already existing in the Alpaca class