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

Are screen objects/characteristics accessible in csharp for strategy development?

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

    Are screen objects/characteristics accessible in csharp for strategy development?

    Hi,

    I purchased a few addon studies and this one in particular based on Input variables will color price bars signifying long/short entry, exits, trailing stops values etc.

    In the screen shot attached the indicator is loaded into the chart and the bars are colored based on the input variables.

    I also display the indicator property screen for the indicator.

    Is it possible in the strategy builder or in "unlocked" native csharp routine to detect the bar colors?

    I also have other indicators that will have input parameters to determine when and where on the chart objects like up and down arrows are drawn , is there anyway in csharp to detect these visuals?

    thank you

    [email protected]
    Attached Files
    Last edited by demarcog; 03-02-2021, 10:18 AM.

    #2
    Originally posted by demarcog View Post
    Is it possible in the strategy builder or in "unlocked" native csharp routine to detect the bar colors?
    Take a look here.

    Comment


      #3
      Originally posted by demarcog View Post
      I also have other indicators that will have input parameters to determine when and where on the chart objects like up and down arrows are drawn , is there anyway in csharp to detect these visuals?
      Take a look here.

      Comment


        #4
        Hello demarcog,

        Thank you for your post.

        bltdavid is correct. The color of a bar could be detected using BarBrushes. The BarBrushes property is a brush series type object. Accessing this property via an index value [int barsAgo] returns a Brush object representing the referenced bar's color.

        See the help guide documentation below for more information about BarBrushes.
        BarBrushes - https://ninjatrader.com/support/help...barbrushes.htm

        You may use the DrawObjects array to get all draw objects on the chart. DrawObjects holds all of the drawn chart objects on the char, for all series. The draw objects can be manually drawn or generated by the script.

        See the help guide documentation below regarding DrawObjects.
        DrawObjects - https://ninjatrader.com/support/help...rawobjects.htm

        ​​​​​​​Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tim-c, Today, 03:54 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rocketman7, Today, 01:00 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        3 responses
        76 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        9 responses
        46 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by timko, Today, 06:45 AM
        1 response
        8 views
        0 likes
        Last Post gaz0001
        by gaz0001
         
        Working...
        X