Brooks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Placement of user Method code?
Collapse
X
-
Placement of user Method code?
If I create a method, where within an indicator or strategy should I place the code?
BrooksTags: None
-
-
No, I don't think that was right. I need to place it outside the namespace definition like this, right?
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
/// <summary>
/// This file holds all user defined indicator methods.
/// </summary>
partial class Indicator
{
}
}
// This method prints out the data and time
private void PrintDateTime()
{
Print(DateTime.Now.ToString());
}
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
630 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
566 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment