Announcement

Collapse
No announcement yet.

Paper Trade Fill Price

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

  • Paper Trade Fill Price

    Hi all,

    I have an efs that executes a papertrade market order on certain indicators. I need to build in a stop loss on this system and therefor need the fill price. How do I do that?

    I guess I could submit a limit order at the bid (when going long) or ask (when short) but there is no guarentee that the order will be filled and I have not seen anything re using efs to cancel an open papertrade order.

    Help is appreciated.

    Thanks

    Dennis
    Last edited by daugustine; 08-05-2003, 07:38 PM.

  • #2
    Possible Solution

    The way I handle this is as follows....

    First, I create the following logical variables for my code to use..

    var StrategyisInTrade = false;
    var StrategyisShort = false;
    var StrategyisLong = false;

    Once your system enters a trade, reset the necessary variables to true.

    then...

    if ((StrategyisLong) && (close() <= nstopprice)) {
    trade.Sell(getSymbol(),(0-OpenContracts),PaperTradeBroker.MARKET);
    }
    if ((StrategyisShort) && (close() >= nstopprice)) {
    trade.Buy(getSymbol(),OpenContracts,PaperTradeBrok er.MARKET);
    }

    This is the only way to handle stops at the moment because there is no way to cancel pending orders (unless you do it manually). I'm sure these changes will be made to future versions of the esig app - we just have to wait.

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Thanks Brad, but I think that perhaps I wasn't making myself clear. So here goes again: The trouble I'm having is that I do not know what the stop price should be because I do not know what price the market order Paper Trade was filled at. What I need is a method to determine what the fill price actually was.

      Thanks & ttfn,

      Dennis
      Last edited by daugustine; 08-06-2003, 12:29 AM.

      Comment


      • #4
        Hello Dennis,

        Currently we don't have a specific function that returns the fill price. Our development team will look into adding some functionality to cover this in one of our future versions. For now, you will have to track the fill prices manually.
        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
          Thanks Jay,

          I'll look forward to that feature. Do you know whether or not there is some mechanism for retrieving fills via efs using either MB or Interactive Brokers as an integrated borker?

          Dennis

          Comment


          • #6
            Hello Dennis,

            Sorry, I don't believe we have that ability yet for MB or Interactive Brokers either.
            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


            • #7
              Possible Solution...

              The only way I know of to retrieve a fill price from IB is by using dynaorder (www.dynaorder.com). I have used this application in the past and currently - it is pretty simple to develop EFS around.

              It allows you to ..

              Place
              Cancel
              Poll
              and request fill prices

              fairly easily.

              Hope this helps..

              Brad
              Brad Matheny
              eSignal Solution Provider since 2000

              Comment


              • #8
                Brad,

                You rock! $250 is a small price to pay to build in a little more peace of mind into my trading system.

                I'm installing the trial right now. I'll let ya know how it works out form me.

                Thanx a bunch.

                Dennis

                Comment

                Working...
                X