Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry Prices For Bonds [ZB]

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

    Entry Prices For Bonds [ZB]

    I am writing a strategy for use on the ZB (30Yr Bond Future)--and I am getting some strange fills -or at least strange trade displays on the chart.

    I understand that the ZB is plotted in 32's - but are the internal prices on the bar data (open , high, low, close)--stored as decimal values?

    Here is my code for calc'ing the entry price: (Bracket is an integer of an offset--such as 2 which would be 2 ticks)--so in the following code--I want the entry price to be 2 ticks above the highest high from 5:20 Am to 6:20 AM

    entrypriceL = SampleGetHighLowByTimeRange(6, 20, 5, 20).HighestHigh[0]+(Bracket * TickSize);

    Is this the correct code for ZB?
    Jim-Boulder
    NinjaTrader Ecosystem Vendor - Elephant Tracks

    #2
    Hello Jim-Boulder,

    Thank you for your post.

    The internal bar data is going to be a decimal value. Represented by the 32nd's value times the TickSize

    Example 137'13 = 13 * 0.03125 = .40625 + 137 = 137.40625

    .03125 is the TickSize for the ZB.

    You want two ticks higher than you could take the Highest value + (2 * TickSize)

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    10 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    9 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X