Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing a Market Analyzer in a Strategy

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

    Referencing a Market Analyzer in a Strategy

    I created a Market Analyzer to find the stocks with the largest increase for the day. However, I can't seem to figure out how to reference it in my strategy.

    Is there a way?

    Thanks,
    Benjamin​

    #2
    Hello Benjamin,

    Thanks for your post.

    To clarify, did you create a custom MarketAnalyzerColumn NinjaScript or did you create a custom Indicator NinjaScript?

    Indicator scripts could be accessed in a NinjaScript strategy but you can't access the market analyzer cells directly in a custom strategy.

    We are tracking interest in the ability to access market analyzer cells in an existing internal feature request ticket. Please let me know if you would like me to add your vote to this feature request.

    I look forward to assisting further.

    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Brandon,

      Please do add my vote. There are many more strategies that could be employed if you can select stocks that are starting a predictable pattern that lasts only a short amount of time.

      Also, would it be reasonable for an indicator to keep track of the several thousand stocks and send the cells with a 5% or greater increase for the day to a strategy?

      Thanks,
      Benjamin

      Comment


        #4
        Hello Benjamin,

        Thanks for your notes.

        I have added your vote to this feature request. This request is being tracked under the number SFT-6110.

        As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

        This would likely be possible but would possibly utilize a large number of resources.

        You could consider creating an indicator that calculates and tracks that value for individual instruments and writes information to a file using a StreamWriter and then use a StreamReader to read the data in the file. ​

        Or, the indicator could have exposed variables holding the calculated value that could be accessed in a NinjaScript strategy.

        Here are some reference samples you might find helpful.

        StreamWriter: https://ninjatrader.com/support/help...o_write_to.htm
        StreamReader: https://ninjatrader.com/support/help...o_read_fro.htm
        Exposing indicator values that are not plots: https://ninjatrader.com/support/help...alues_that.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        23 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        120 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        63 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        45 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X