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

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 xepher101, Yesterday, 12:19 PM
        2 responses
        28 views
        0 likes
        Last Post xepher101  
        Started by thumper57, Today, 04:30 PM
        0 responses
        4 views
        0 likes
        Last Post thumper57  
        Started by OllieFeraher, 05-09-2024, 11:14 AM
        5 responses
        16 views
        0 likes
        Last Post MisterTee  
        Started by jackiegils, Yesterday, 11:05 PM
        1 response
        11 views
        0 likes
        Last Post marcus2300  
        Started by Skifree, Today, 02:50 PM
        0 responses
        8 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Working...
        X