IBPY basic TEMPLATE to get stock quote and place bracket order then repeat

34 views
Skip to first unread message

Ross Demtschyna

unread,
Oct 7, 2016, 9:55:46 PM10/7/16
to IbPy Discuss
Hello,

I'm new to IBPY and have a simple logic strategy but are struggling to find a simple template to do the following.

Any help would be much appreciated.

I simply want to get the current stock quote of say google and pass this to a variable for logic processing.

Basic steps are =====
Go get current ask price.
Pass this to a variable
Do some logic testing to get my Bid price, my Profit Taker and Stop Loss
Place a the bracket order.
Watch Bracket order - if the Profit taker or Stop Loss executes, we loop through again.



Reply all
Reply to author
Forward
0 new messages