Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a custom indicator

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

    #16
    imported post

    I assume you did this -

    tradingPrice = MyIndicator(1, 4, false, 80).Value[0];
    RayNinjaTrader Customer Service

    Comment


      #17
      imported post

      Well, no, I didn't, since that looks like another invocation. I thought after doing

      Add(MyIndicator(
      1, BidAskRatio, false, 80));

      that the values could be retrieved using

      tradingPrice = MyIndicator.Value[0];



      The good news is that trying this latest suggestion, doing

      tradingPrice = MyIndicator(1, 4, false, 80).Value[0];

      in the strategy works. Now my strategy code has both the Add of the indicator and the reference with inputs.


      The catch now is that the indicator isn't dispaying on the chart (though I am able to see the indicator values in the strategy). When I add the indicator by itself it does show on the chart, but when used from the strategy it does not.

      Thanks,

      Darryl

      Comment


        #18
        imported post

        Are there any error messages in the log? If not, could you email me the indicator?

        Ray
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 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
        554 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