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

Click event for indicators

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

    Click event for indicators

    Hello there,

    I was just wondering if there is a click event code in NinjaTrader8 for frontend. I wanted to manipulate (hide/show) the content of each indicators. For example, if I click ChaikinMoneyFlow, it would hide Bars Ago input. If I click the other indicator, which is KeltnerChannelUpper, it would show Bars Ago input. Is there anyway I could do this? Thank you in advanceClick image for larger version

Name:	screenshot.PNG
Views:	198
Size:	26.8 KB
ID:	1190272

    #2
    Hello itgoesbrrrrrr,

    You would not need a mouse event for that, you could use the property descriptor collection. There is a sample in the help guide that shows toggling properties visibility based on another property as input: https://ninjatrader.com/support/help...r_to_custo.htm

    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello NinjaTrader_Jesse,

      So I am actually able to use inputs/dropdowns to hide/show other properties but not when I click indicators which is what I wanted. I've been searching for the code for it but I was not able to.

      Click image for larger version

Name:	screenshot.PNG
Views:	191
Size:	39.4 KB
ID:	1190298

      I saw the documentation but it doesn't say anything about clicking the indicator to hide other properties

      Comment


        #4
        Hello itgoesbrrrrrr,

        The selection of the left side menu would have no visible event to the applied indicator. Any changes to the right side list would need to be done by using the property descriptor collection or using a Browsable attribute on that property however that only applies to properties of the custom indicator.

        From the image I cannot tell menu that is but it appears to have an indicator selection similar to the market analyzer indicator column. If that is the case that section also appears to be a built in feature of that menu so it would not be something the indicator could control with its properties.

        If you have more details of what tool/menu that is that could help to provide more details on what possibilities there could be. It would also be helpful to understand why you are trying to remove that property as it appears to be necessary for the section it is in.










        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello NinjaTrader_Jesse,

          I wanted to hide some inputs because some indicators were not supposed to have those inputs. That was the reason why I asked if there is a click event available or similar method.

          Comment


            #6
            Hello itgoesbrrrrrr,

            Could you provide more specific detail about what menu that is?

            From the image you provided the BarsAgo appears to belong to that SignalType/Value selection which is not part of the indicator and appears to be part of the tool.


            JesseNinjaTrader 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