James Bowler

Results 29 comments of James Bowler

Hi there!, Please post your fixed code? Thanks James

Hi @enriqueromualdez Apologies for not replying to your post in a timely manner. There are a million and one ways for coding a stop loss, I not 100% sure about...

If the current portfolio has a position, `self.portfolio_handler.update_portfolio_value()` will have something to update and decisions to make, which could generate further Events. Example using your code snipping. ``` self.strategy.calculate_signals(event) self.portfolio_handler.update_portfolio_value()...

Hi @enriqueromualdez, Give the RiskManager access to the Strategies object and then reset like this. ``` class Strategies(AbstractStrategy): """ Strategies is a collection of strategy """ def __init__(self, *strategies): self._lst_strategies...

Here is the abstract class. ``` from abc import ABCMeta, abstractmethod from collections import defaultdict class AbstractIndicator(object): """ AbstractIndicator is an abstract base class providing an interface for all subsequent...

Hi mate, Are you using the default data set? Cheers James On Mon, 10 Dec 2018, 09:03 douggie Hi, > > After following the installation instructions and running on max...

Hi there, I have this working on Linux, but I am stuck on the python SessionStatusListener. Need something to replace `CreateEvent(0, FALSE, FALSE, 0);`, `SetEvent(mSessionEvent);`, `CloseHandle(mSessionEvent);` as these are for...

Eventfd looks promising. https://github.com/palaviv/eventfd/blob/master/eventfd/_eventfd.py