Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

treasury question

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

    treasury question

    Is there any way to use the strategy builder to take a securities price, calculate its notional value of one contract and divide that by the current ( or close of last bar) price of say, the notional value of one contract of gold, or silver? I'm trying to get an indicator that shows whether something is overvalued or undervalued by some kind of objective measure.

    I saw paul_h do some crazy tweaks with variables in the strategy builder. Can it be done or does it have to be custom code? Thanks.

    #2
    Hello terminatorT1000,

    Thank you for your post.

    To clarify, is this post regarding NinjaTrader 8's Strategy Builder or the NinjaTrader 7 Strategy Wizard? You've posted in the NinjaTrader 7 forum, but the Strategy Builder is only available in NinjaTrader 8.

    However, this would be fairly clunky in the Builder and would require you to specify the point sizes of the contracts via user inputs, as there would be no way to retrieve those in the Strategy Builder, so you would need to get those point sizes for both every time. You could then use custom series to store the notational values of each instrument by assigning the series the value of the Close price with an arithmetic offset multiplying that by your point size input, and then divide the values of those 2 series, again using an offset, and assign that to a third series.

    This could be done considerably more elegantly via manual coding as that would allow you to access the point sizes of each instrument through code, and wouldn't depend on user input.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    88 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    30 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    68 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X