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.

    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    6 responses
    36 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X