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 carnitron, Today, 08:42 PM
    0 responses
    2 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    3 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,969 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    5 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X