Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetPropertyName is not available as shown in help

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

    SetPropertyName is not available as shown in help

    Hi, I was trying to use the SetPropertyName method, as described in:



    and got the error CS0103 (does not exist).

    Any example?

    #2
    SetPropertyName is not part of managing orders. For example, you might do it if you are making a custom bar type.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello Shai Samuel,

      Thanks for your post.

      How exactly are you trying to use SetPropertyName() in your script?

      As QuantKey_Bruce has stated, SetPropertyName is not part of managing orders.

      SetPropertyName() sets a default property name to a custom string to be displayed on the UI.

      See this help guide page for more information about SetPropertyName() and sample code: https://ninjatrader.com/support/help...opertyname.htm

      Let me know if I 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


        #4
        Hi Brandon and QuantKey_Bruce, and thank you. I am sorry, but I did post the wrong link. the one I wanted to post was exactly the one you posted, Brandon.

        With what the help guide explains, I was expecting the method to be available on OnStateChange of an Indicator or Strategy, to handle the UI. For some reason it is not available and using the code shown on the help guide, I do get the error CS0103.

        Can you reference a sample code on how to use it?

        Comment


          #5
          Hello Shai Samuel,

          Thanks for your note.

          SetPropertyName() is not available to use in a custom NinjaScript indicator or strategy. SetPropertyName() is only available to use within a custom ChartStyle NinjaScript. Note that SetPropertyName() is located in the ChartStyle section of the help guide, not the Indicator or Strategy sections.

          You may view the ChartStyle scripts that come default with NinjaTrader to see how these are used in a ChartStyle NinjaScript. For example, you could open a New > NinjaScript Editor window, open the ChartStyles folder, double-click on say the CandleStyle file to open it, and view the OnStateChange() section of the CandleStyle ChartStyle NinjaScript.

          Let me know if I 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, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X