I've got a strategy that is writing some info to a file. It saves the file on the C: drive. The file appears on the C: drive as it should however it is empty, without any text written to it at all and it has "0" bytes. The very strange thing is, however, if I stop/remove the strategy from the chart the file then "populates" with the correct information as it should...I'm at a total loss to explain why this happens? I do believe it has something to do with the "historical only" code I placed in OnBarUpdate (i.e. if(historical){return;})...Any clues as to what causes this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Historical interferes with file write?
Collapse
X
-
Historical interferes with file write?
Greetings,
I've got a strategy that is writing some info to a file. It saves the file on the C: drive. The file appears on the C: drive as it should however it is empty, without any text written to it at all and it has "0" bytes. The very strange thing is, however, if I stop/remove the strategy from the chart the file then "populates" with the correct information as it should...I'm at a total loss to explain why this happens? I do believe it has something to do with the "historical only" code I placed in OnBarUpdate (i.e. if(historical){return;})...Any clues as to what causes this?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,967 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
4 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
55 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
6 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
8 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
Comment