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 AaronKoRn, Today, 09:49 PM
        0 responses
        2 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Today, 08:42 PM
        0 responses
        8 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        9 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,975 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X