Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 popecapllc, 08-09-2023, 07:42 PM
        8 responses
        1,336 views
        0 likes
        Last Post Johng22
        by Johng22
         
        Started by ETFVoyageur, 04-30-2024, 02:04 PM
        11 responses
        97 views
        0 likes
        Last Post ETFVoyageur  
        Started by bubblegum, 03-18-2024, 10:41 AM
        3 responses
        44 views
        0 likes
        Last Post vjsworld  
        Started by JamesK1, Today, 02:48 PM
        1 response
        11 views
        0 likes
        Last Post JamesK1
        by JamesK1
         
        Started by llanqui, Today, 03:51 PM
        0 responses
        9 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Working...
        X