Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Plotting values on a strategy chart
Collapse
X
-
Please give a tip on writing/reading it on a textfile. I tried it before but I have a difficulty on finding and getting the last written value in textfile. If you can give tips also on finding and getting the last written value then it would be great.
Comment
-
You can have a look into this dedicated sample for using System.IO - http://www.ninjatrader.com/support/f...ead.php?t=3477
Comment
-
-
You can always check into MSDN to work directly with the source of these C# methods, Google is of course helpful as well : http://msdn.microsoft.com/en-us/libr...(v=VS.90).aspx
Comment
-
Comment
-
please help on this:
private double lossCutOff = -10000;
[Description("Loss Cut-off")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName("Loss Cut-Off")]
public double LossCutOff
{
get { return lossCutOff; }
set { lossCutOff = Math.Max(0, value); }
}
I want to make a custom variable on system loss to negative but it will still 0 if I try to set the strategy to replay.
Comment
-
-
You can remove Math.Max() if you want to accept negative values for your input.
[Description("Loss Cut-off")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName("Loss Cut-Off")]
public double LossCutOff
{
get { return lossCutOff; }
set { lossCutOff = value; }
}Ryan M.NinjaTrader Customer Service
Comment
-
-
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
368 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
571 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment