Profile Picture

Problem with sending orders with Interactive brokers

Posted By omri1181 10 Years Ago
Posted Monday May 02 2011
im using the DEMO of interactive brokers. simply wrote simply system in rightedge to check if its working with IB
the stock is GOOG
i'm getting live data, seeing the ticks coming in,
when sending an order, it showing in open,pending, and then goes to closed. in rightedge everything looks like its working.
BUT in trad station of IB, i don't see ANY orders in trade log. i also added GOOG in API window there just in case.
API is enabled, also disabled firewall just in case (i got ticks also with firewall)
it looks like rightedge is managing some positions, but its not REALLY connected to IB software, which is open all the time.
i ordered GOOG through IB software, no problem, even saw orders in the trade log.

   public override void NewBar()
      // Put your trading code here
   public void GoMKT(int Size,double StopLoss,PositionType ThisPositionType,double Profit)

               PositionSettings posSettings = new PositionSettings();
               posSettings.PositionType = ThisPositionType;
               posSettings.OrderType = OrderType.Market;
               posSettings.Size = Size;
               posSettings.BarsValid = 10; //' Open position order is valid For 5 bars
               if(StopLoss > 0)
                  posSettings.StopLoss = StopLoss;
                  posSettings.StopLossType = TargetPriceType.AbsolutePrice;
               if(Profit > 0)
                  posSettings.ProfitTarget = Profit;
                  posSettings.ProfitTargetType = TargetPriceType.AbsolutePrice;            

               posSettings = null;
               //LogFile.Write("OpenPosition : Size " + Convert.ToString(Size) + " StopLoss " + Convert.ToString(StopLoss) );   


Posted Monday May 02 2011
You may be getting data from IB but using the paper broker for your trades. In your folder settings, what is the Broker Service set to?

It's also possible that the issue is with using IB's demo account. It is fairly limited and some things don't work the same. If you have an account with them and use the simulation mode, it's much more similar to live trading.

Posted Monday May 02 2011
ohh ofcourse..i missed it. thank you!! also fast reply
looks like its working
Posted Friday December 04 2020
A big problem is watched and encountered for the goals. Patent rights of the are fit for the goals. Skills are here for the use of the offered town for the seeding authority for the characters.
Posted Saturday December 12 2020
I don't have time to write a good essay. Tell me some other services?
Posted Saturday December 12 2020
My teacher at school never taught me how to write good essays. Service he told me that if you write an essay about a problem, the answer should be a conclusion about how to avoid it next time and what conclusions should be drawn. or, if the essay is about an event, the answer will be what it led to and whether it needs to be repeated.

Similar Topics

Reading This Topic

2005-2021 © RightEdge Systems