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!
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
NinjaTrader
Inserting code or quote in message
Collapse
X
-
How do you do what?
You mean for a forum message?
When replying to a specific message, use the "Quote" button in the lower right of that specific message. You should do this to get your reply started -- this reveals an editing window on the same web page with the quoted message inside special 'markup' delimiters -- type your reply below this.
Once you have your reply window started ...
study the buttons in the toolbar just above your editing window. That is, hover over each button for it's tooltip message.
You'll want to use the button with a giant '#' for marking code blocks.
-
Serialize
Code:[XmlIgnore()] [GridCategory("Parameters")] public string SoundFileName { get { return soundFileName; } set { soundFileName = value; } } [Browsable(false)] public string SoundFileNameSerialize { get { return soundFileName.ToString(); } set { soundFileName = (value); } }
I have not been able to find a syntax example for this
Comment
-
Originally posted by Pete77 View PostCode:[XmlIgnore()] [GridCategory("Parameters")] public string SoundFileName { get { return soundFileName; } set { soundFileName = value; } } [Browsable(false)] public string SoundFileNameSerialize { get { return soundFileName.ToString(); } set { soundFileName = (value); } }
I have not been able to find a syntax example for this
How the string gets passed to your code can only be assessed if we can see how you are passing the string to the code. The serialization is a separate issue.
Comment
-
Thanks Alan, I am still getting previously set default wav file, not the one I have changed to in the user dialog box
private string soundFileName = "Aert3.WAV";
[GridCategory("Parameters")]
public string SoundFileName
{
get { return soundFileName; }
set { soundFileName = value; }
}
[Browsable(false)]
public string SoundFileNameSerialize
{
get { return soundFileName.ToString(); }
set { soundFileName = (value); }
}Last edited by Pete77; 08-13-2018, 11:36 AM.
Comment
-
Hello,
Without the full code we're unable to test on our end.
If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.
I look forward to your reply.Alan P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
57 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
19 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
9 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment