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 cmoran13, Yesterday, 01:02 PM
        0 responses
        31 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        151 views
        2 likes
        Last Post CaptainJack  
        Working...
        X