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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
59 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
198 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
363 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
282 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment