Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SetPropertyName is not available as shown in help
Collapse
X
-
Tags: None
-
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
-
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
-
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
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment