Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get values from custom indicator

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

    Get values from custom indicator

    I am trying to get the values from a custom indicator. I am using the following to get the value.
    print("Value is..." + CF_CFRN(5,0).CF_BBC[0].ToString());

    I have an attached file that shows the plot I am trying to get the value for and it also shows the "label" of the indicator. Please use the url to see the attached

    http://screencast.com/t/7wEZ3qHWij

    I am trying to get the cf_bbc value???

    Any help would really be appreciated.
    Thanks,
    Dpmsurf



    #2
    Hello Dpmsurf,

    Thank you for your post.

    While you are using the correct method to get the values.

    Are you running into an error for the code? or is the value not printing?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply - I am receiving the following 'NinjaTrader.Indicator.CF_CFRN' is a 'type' but is used like a 'variable'

      Comment


        #4
        Hello Dpmsurf,

        It looks like the Name of the indicator is incorrect and the Label input below is not the Name of the Indicator itself.

        Do you have access to the source code of this Indicator? If you do you should see it when you go to "Tools -> Edit NinjaScript -> Indicators" you will need to call it by the class name like "SMA" as the name can be changed when you select it from a list.

        public class SMA : Indicator

        If you do not see the indicator here and you see it inside of the File -> Utilities -> Remove NinjaScript Assembly then this means that you do not have access to view the source code of this indicator and you may have to contact the vendor on the name of this Indicator so that you can try to programmatically use it.

        Let me know if you have any further questions.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X