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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment