Sample DDE order for TWS API

Discussion in 'Automated Trading' started by TraDaToR, Sep 6, 2008.

  1. TraDaToR

    TraDaToR

    Hello,

    I have lost my previous works on an excel ATS, and I am always having problems to submit exact order line, forgetting some _, _{}_ , or required fields. It's beginning with : =edemo|ord!id1?place?BUY_1....

    Should someone post a sample working DDE order command, please?

    Thank you very much.
     
  2. TraDaToR

    TraDaToR

    Please,

    Nobody has a sample TWS DDE futures limit order ?

    Thanks.
     
  3. Bob111

    Bob111

    there is an example excel file in API folder. also-TWSAPI yahoo group.you can ask your question over there.
     
  4. TraDaToR

    TraDaToR

    Thanks Bob,

    I've already posted it on the yahoo group and no answer. I have a sample forex order command that works but when i want a futures order with expiry, LMT order type and limitprice, it doesn't work...
     
  5. TraDaToR

    TraDaToR

    If someone knows where the error is???

    =server|ord!'id134238352?place?
    SELL_1_SB_FUT_200903_NYBOT_USD_LMT_0.1440_{}
    _DAY_{}_{}_{}_{}_HelloWorld_1_{}_0_0_0_0_0_0_{}'

    Thanks
     
  6. Bob111

    Bob111

    you should get some errors back,if order was invalid or something missing. any errors?
     
  7. TraDaToR

    TraDaToR

    No, in fact nothing happens. The spreadsheet cell returns 0. The sample forex order command that I have ( with no expiry, LMT, and limitprice fields works perfectly, order showing on sim TWS...

    Thanks, bob.
     
  8. Bob111

    Bob111

    i'm not an expert in all this s**t, but i would start from checking expiration date format.
     
  9. TraDaToR

    TraDaToR

    Thanks.

    Someone gave me a sample on the yahoo group. Haven't tried it yet.