![]() Orders with an allocation are ususally completed by calling function SET_FA_MEMBERS with transmit flag=1.īefore you call PLACE_ORDER with transmit flag=-1 (and some SET_ORDER_VAL, if required, also with transmit flag=-1). Perhaps you should also set TS to start only 1 process for scripts. Ids are used for same scripts, because the API grants control about orders through the clientid.įor instance, if you connect with clientid=1234, then you place a limit, then, when you start TS next time and TWSLink connectsĪgain and you connect with clientid=534535, you can get control about this limit order: Only the client with id=1234 is getting control.īut i think here are some TS 9 users who already solved this. You also need a technique, that always the same client Each instance makes its own connection to API (TWS/Gateway) and so you need toĭo some work in order to use different clientids for each connection. ![]() ![]() But in particular TradeStation may has some stumbling blocks, as it spreads into multiple processesĪnd so TWSLink is loaded multiple times. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |