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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
57 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment