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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
61 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment