Recent content by Sivon

  1. S

    2 bracket orders IB API(C++)

    but also I noticed that it happens only sometimes, not in all cases. Maybe because I'm using paper trading account and tws has some lags
  2. S

    2 bracket orders IB API(C++)

    They are independent, have different order id and have their own parent order. And when one stop loss triggers another being canceled (take profit order too)
  3. S

    2 bracket orders IB API(C++)

    Hi everyone, noticed an interesting thing. If I have 2 bracket orders (with take profit and stop loss) on the same contract and one stop loss triggered then it cancel another stop loss, but closes position with quantity specified in triggered bracket order. So I end up with open position without...
  4. S

    Historical data limitations in IB API (C++)

    Thought about that, but I need not only closing price, but also low, hight and open prices. That's why I need historical data. I read their rules a few more times and it seems like this limitations only for small bars(30 sec or less)...
  5. S

    Historical data limitations in IB API (C++)

    Hi, I'm developing a trading bot based on IB api (actually, I almost finished and it's working jast well), but jast found out that I can make only 60 requests for historical data in 10 minutes. I'm going to trade on around 170 instruments and I need 2 last closed bars for every instrument...
  6. S

    Can't get historical data with IB API C++

    void MyEwrapper::historicalData(TickerId reqId, const Bar& bar) { cout << "Open: " << bar.open << " Close: " << bar.close << endl; } You might missed that. Problem was that I didn't recieve any data but it's working now. Thank you.
  7. S

    Can't get historical data with IB API C++

    Thank yoy very much! It's working! Interesting fact: I never used Python but figured out how to connect to TWS and get hisyorical data in less than an hour (thanks to IBpy library) and spend almost 3 days to do the same in c++ . :)
  8. S

    Can't get historical data with IB API C++

    Hi, there is no errors and evetyrhing is working well but after calling C->reqHistoricalData(100, contract, "", "1 D", "1 hour", "MIDPOINT", 1, 1, false, TagValueListSPtr()); there is no return. Here is the whole code: #include "stdafx.h" #include <Contract.h> #include <Order.h> #include...
  9. S

    Candlestick pattern in IB API on c++

    Thank you! This is sad. I didn't found any 3rd party who can provide a functionality at list like Pine Script. There are some libraries for python like "Pandas" and I have no choise but to use them. There is almost nothing for C++. Only documentation from IB.
  10. S

    Candlestick pattern in IB API on c++

    I wonder if there some way to use c++ IB API for canndlestick patterns. There are functions like "get historical data" etc but they dont return nothing and just output data to concole. I have a few algorithms I backtested in tradingviews Pine Script and they worked very well so I decided to try...
Back
Top