Announcement

Collapse
No announcement yet.

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.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        66 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        141 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X