Search results

  1. Warren

    How to avoid major events volatility

    Yes, there are many economic calendar you can check. But there seems to be many events off the calendar. Like revision of job market data, which can catch you off guard. How to deal with those ?
  2. Warren

    How to avoid major events volatility

    Attached is what is happening at 2024.09.04. I checked the top economic events in the US, nothing important whether data release or what is coming at sep 04. So I was thrown out by this large minute bar. And my questions is how to get the news for major events, so that I can avoid those...
  3. Warren

    Any clue for the spike on MES?

    You are right ! another spike
  4. Warren

    Any clue for the spike on MES?

    So, this morning(2024-05-14 07:30:00). There is a big spike on MES. Almost 30 points in range. I checked the news, without finding any big events happening. Any clue, why is this?
  5. Warren

    How to trigger a function when a new minute bar comes in.

    Yes, I know this trick as it appears in the example codes. The problem now is, your_function() defined this way, can not take extra variables such as historic data.
  6. Warren

    How to trigger a function when a new minute bar comes in.

    Hi, As I am using ibapi in Python to retrieve minute data, I need some mechanism to trigger the data processing function when a new minute bar matured. While ib_insync offers this function by the eventkit( onBarUpdate += some_function), it does not seem to incorporate extra variables, for...
  7. Warren

    Python - Backtesting library with variable position sizing

    Well, as for your need, I guess you may try the backtrader library, which has a more comprehensive functionality than backtesting.py.
  8. Warren

    A Semi-automated system with Python and IB api

    Some recent experience to share(1): Tossing around with IB's native package ibapi and the third party package ib_insync these days. Like people said, IB's native api has a very steep learning curve. While I am still determined to use ibapi from the beginning. The consideration is mainly about...
  9. Warren

    Which one to take as 'tick' price from the IB snap-shot?

    And at this moment, this is becoming even more ridiculous: Ticker(contract=ContFuture(conId=497954518, symbol='MES', lastTradeDateOrContractMonth='20220916', multiplier='5', exchange='GLOBEX', currency='USD', localSymbol='MESU2', tradingClass='MES'), time=datetime.datetime(2022, 8, 24, 15, 37...
  10. Warren

    Which one to take as 'tick' price from the IB snap-shot?

    So, when the bar updates, for example 1 minute, IB cleansed ticks that look ridiculous? And if I use a third party data source, could there be a problem that the order price I send to IB does not match with IB's current price? I am not sure, whether IB will send all orders to the exchange, or...
  11. Warren

    Which one to take as 'tick' price from the IB snap-shot?

    As I am trying to retrieve tick data from IB through python API. I encountered a 'definition' problem. As far as I know, IB does not offer real tick by tick data, but a 250ms snap-shot(for US stock and futures etc.). So, the 'tick' price is a mini bar having its own open, high, low, close...
  12. Warren

    Tick Charts and IB - possible?

    So, the 'tick' you get from IB is a 250ms snap shot, that has its open, high, low, close, or a mini bar. If it is not high frequency trading, I guess it is enough for most traders. And the ticker I got through a python API, looks like this: Ticker(contract=ContFuture(conId=497954518...
  13. Warren

    A Semi-automated system with Python and IB api

    Well, I guess it is because many traders here are from a programming background. At this moment, I am working on bokeh server to get the IB real time streaming data plotted on a candlestick chart. And I am quiet pragmatic: as long as the code can realize what I need, I do not care how this is...
  14. Warren

    Getting Started with Algorithic Trading and the IB API

    Anyone Well, I am up to a similar endeavor. While for someone like me who does not have a programming background, it is not that straightforward. And there are a lot to do. It is not only Python, also packages like: numpy, pandas, bokeh, backtesting.py, ib_insync.... Now, I am working on a...
  15. Warren

    A Semi-automated system with Python and IB api

    finplot seems to be a great package. pity that it does not work in Jupyter Lab. As this far, all my work are done in jupyter lab. For charting, I copied some code from backtesting.py for auto-scale(JavaScript which I do not know) and use bokeh together to plot a candlestick chart.
  16. Warren

    A Semi-automated system with Python and IB api

    That's a lot of information in it. Thank you Steve !
  17. Warren

    A Semi-automated system with Python and IB api

    Step 1: I chat with a technical assistant with IB. It is impossible to integrate python code in the back ground of TWS. So, it can only be done on the python side. Let's go for it !
  18. Warren

    A Semi-automated system with Python and IB api

    Cool, I am using a Ubuntu version of Linux
  19. Warren

    A Semi-automated system with Python and IB api

    yes, you are right. at this moment. I am using the bokeh package for charting purpose. I can plot candle sticks, and indicators on it, or in a separate grid. But, if I need some more functionality, like plotting a trend line on it. I have to dig into JavaScript. I am not from a programming...
  20. Warren

    A Semi-automated system with Python and IB api

    The reason I am done with those 'concealed' platform, is that, you are playing with a black box. While for the open source software, like it said, with enough eye balls, the bugs in the code is easier to spot.
Back
Top