Also, is there a way to print statements to the trace or log files from w/i the code. Instead of print() to watch in the output window, is there a way to print to the files to study later?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Balance calculation
Collapse
X
-
Balance calculation
Can someone help with the code to calculate the balance in the account including trades the current day?
Also, is there a way to print statements to the trace or log files from w/i the code. Instead of print() to watch in the output window, is there a way to print to the files to study later?Tags: None
-
I suggest you check into this sample here showing how to work with the Performance class NinjaScript offers - http://www.ninjatrader-support2.com/...ead.php?t=4084
You can look into this one here to write to a txt file with System.IO for your custom logging - http://www.ninjatrader-support2.com/...ead.php?t=3477
In NinjaTrader 7 you can just right click in the output window and then save the contents to a txt file.BertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shai Samuel, Today, 12:22 PM
|
1 response
11 views
0 likes
|
Last Post
![]() |
||
Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
|
12 responses
729 views
0 likes
|
Last Post
![]()
by Adnoker
Today, 01:25 PM
|
||
Started by torento, Yesterday, 05:43 PM
|
3 responses
65 views
0 likes
|
Last Post
![]() |
||
Started by M_ichel, 01-29-2023, 11:17 AM
|
7 responses
114 views
0 likes
|
Last Post
![]()
by M_ichel
Today, 01:23 PM
|
||
Started by tkaboris, Today, 10:46 AM
|
6 responses
26 views
0 likes
|
Last Post
![]()
by tkaboris
Today, 01:19 PM
|
Comment