Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2nd instrument.fullname?

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

    #16
    Originally posted by Radical View Post
    I didn't know about that , very useful!

    To Steve R: Right click within the Ninjascript editor window, and you'll see it.
    lol Oh shoot, WITHIN the editor window, OK

    I ended up Copy>>Paste-copy>>Rename the .CS file, and then I had to edit one line of code...

    CS file found in ...Bin>>Custom>>Indicator folder..

    Evidently I do things the hard way.

    Either way it's already well on its way and will be a much better piece of code when she's done.

    Many thanks to Kevin Doren for making the Spread() indicator in the first place. He saved me an eternity of time. Now I'm gonna butcher it good for him.
    Last edited by Steve R; 08-02-2012, 09:16 PM.

    Comment


      #17
      Originally posted by Steve R View Post
      ...
      It's like I said before, Inst#1 and Inst#2 are the primary and secondary data series of the chart. (Multi-instrument chart I think you guys call it?)
      I think I begin to understand, and it means that you are not doing what you think you are doing, unfortunately. You have to understand the OO paradigm, and how NT fits it into its framework.

      Indicators/Strategies are separate objects from the Chart object. However, the NT framework is written so that when you apply an indicator or strategy onto a chart, the chart instrument is made available to the indicator. You have to remember that this is a primary instrument flow though only. You cannot access the instrument on another chart with an indicator on the primary chart. So having that secondary instrument on a chart is apropos of nothing. If you want an indicator/strategy to access multiple instruments, you must explicitly use the Add() syntax to load that second instrument into the indicator or strategy.

      When you call an indicator from another one, you must explicitly pass it its properties as parameters. Those parameters cannot be read from another chart: they must be explicitly related to the property needed. IOW, they must be stated. So I find it hard to understand what you mean when you say: "... Inst#1 and Inst#2 are the primary and secondary data series of the chart. " There is only one instrument that belongs to a chart, the so-called primary instrument that is loaded. The chart is not the indicator: the chart does not have a secondary instrument; the indicator may have multiple instruments.

      Comment


        #18
        Originally posted by koganam View Post
        I think I begin to understand, and it means that you are not doing what you think you are doing, unfortunately. You have to understand the OO paradigm, and how NT fits it into its framework.

        Indicators/Strategies are separate objects from the Chart object. However, the NT framework is written so that when you apply an indicator or strategy onto a chart, the chart instrument is made available to the indicator. You have to remember that this is a primary instrument flow though only. You cannot access the instrument on another chart with an indicator on the primary chart. So having that secondary instrument on a chart is apropos of nothing. If you want an indicator/strategy to access multiple instruments, you must explicitly use the Add() syntax to load that second instrument into the indicator or strategy.

        When you call an indicator from another one, you must explicitly pass it its properties as parameters. Those parameters cannot be read from another chart: they must be explicitly related to the property needed. IOW, they must be stated. So I find it hard to understand what you mean when you say: "... Inst#1 and Inst#2 are the primary and secondary data series of the chart. " There is only one instrument that belongs to a chart, the so-called primary instrument that is loaded. The chart is not the indicator: the chart does not have a secondary instrument; the indicator may have multiple instruments.
        yeah, no kidding. ya figure that's why I'm here asking questions maybe? lol

        Matthew gave me the answer 6 hours ago. I'm looking for another passage-way to freedom that I might be able to navigate.
        Last edited by Steve R; 08-02-2012, 10:09 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        332 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X