Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

spread thoretical entry / execution price

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

    spread thoretical entry / execution price

    Hello,
    what is the best/fast way to calculate the difference between theoretical entry and execution price? for example, I would entry long at x price but the trade entry at Y price( 2 ticks over x). how can i caclulate the delta y-x?
    Thank you!

    #2
    Hello zteck,

    Are you looking for the historical difference or an implied future value? For example are you looking for historical slippage values?

    If you could please provide more detail that would be helpful.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello Alan_p and thank you for your reply.
      I'm looking for slippage value after the entry. For example, if my target is z ticks from theoretical entry X but my trade started at Y price, I would to set my target z-( y-x) from y. if i know the slippage I'll calculate
      the y-x delta.

      Comment


        #4
        Hello zteck,

        What you could do is when the entry order is submitted, save the bid/ask or last price to a variable. Then within OnExecutionUpdate you could check the fill price against the bid/ask/last value you saved to a variable when the order was submitted.

        Please see OnExecutionUpdate section of our helpguide,
        http://ninjatrader.com/support/helpG...tionupdate.htm

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Franck Z, Today, 09:49 AM
        0 responses
        4 views
        0 likes
        Last Post Franck Z  
        Started by pvtrader, Today, 08:02 AM
        2 responses
        7 views
        0 likes
        Last Post pvtrader  
        Started by Natoc, Today, 03:04 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Rudy2323, Today, 02:56 AM
        2 responses
        26 views
        0 likes
        Last Post Rudy2323  
        Started by tonynt, Yesterday, 02:07 PM
        1 response
        34 views
        0 likes
        Last Post NinjaTrader_Jason  
        Working...
        X