Announcement

Collapse
No announcement yet.

Attach Order Ticket

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Attach Order Ticket

    Hello,
    is it possible to use another (complex) types of orders? For example trailing stops etc. in Attach Order Ticket? I installed plugin for IB and there is possible only to set Market, Limit and Stop orders. I would need execute following in one simple step:
    Buy stocks at price 20 USD, set StopLoss at 18, set ProfitTarget at 24 and trail StopLoss at 20 when price cross 22 USD.
    Is it possible to set this somewhere automatically?
    Or with the help of EFS? How works execute EFS functions in Order Ticket Designer?
    Thank you for your help...

  • #2
    Hello pavelevap,

    The attached order ticket is for discretionary trading. It does not have auto trading capabilities. To change the stop price you may need to modify the order or cancel it and place a new order with the new price level.

    The EFS feature in the attached order ticket allows you to specify a function from an EFS to be executed when you click the button in the order ticket. In the properties for the template you would point the template to an EFS file that contains your custom functions. Then in the Button Editor you set the Action field to "Execute EFS." In the EFS: input field you would then enter the EFS function to be executed (without the function call operators). Typically, these functions would execute trades using the Generic Broker functions.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Hello Jason,
      thank you for your explanation, I did not notice field for EFS formula in Template.
      Are there any examples of broker EFS files (with executions of trades)?
      When I add to my EFS formula file following function code from EFS help center: buyMarket( getSymbol(), 200 );
      Then I have to add to EFS executions only name of this function buyMarket (or buyMarket; or buyMarket() or buyMarket()?

      And what about this problem:

      Solved or not?

      Can you please help me with you advice if is it possible with help of EFS (and broker functions) prepare following or not?
      Price of stock is 100 USD. I want to buy it when price is 95. So, I can send Limit order. I think this is not problem with EFS. Then (after buying this stock) I want to automatically set StopLoss and ProfitTarget. That means I can automatically send two Stop Limit orders (with some type of range, for example 5 USD or % of stock price). This can be also done with EFS. But is it possible to set these values by trader before each trade (when using Attach Order Ticket)? Some type of calling input field? Is it possible to call similar function from EFS in EFS executions button (in Order Ticket Designer)? Then I need to set trailing StopLoss, that means when price is higher then 98 then trail StopLoss from 90 to 95. So I need to automatically change one Stop Limit order. But how I find with help of EFS which of them (StopLoss or ProfitTarget) is the right order to change?

      OK, that is all, thank you for your verdict and help...

      Comment


      • #4
        Hello pavelevap,

        There are a couple code examples at the link I provided in my prior reply.

        The cancelOrder() function cancels all orders for the specified symbol. This functionality has not been changed.

        For your strategy, I would recommend developing a formula that produces alerts and then use the order ticket to place your trades manually. Using EFS alone to produce a fully automated system is not possible at this time due to lack of position management functions.
        Jason K.
        Project Manager
        eSignal - an Interactive Data company

        EFS KnowledgeBase
        JavaScript for EFS Video Series
        EFS Beginner Tutorial Series
        EFS Glossary
        Custom EFS Development Policy

        New User Orientation

        Comment


        • #5
          Originally posted by JasonK
          Using EFS alone to produce a fully automated system is not possible at this time due to lack of position management functions.
          It seems high time someone at eSignal or IB would have put out a dll we could use from EFS to access all the functions available in IB's TWS API. What's the prognosis? Are you each waiting for the other to do it?

          Comment

          Working...
          X