Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Writing to text file
Collapse
X
-
I have a data base that analyses data using stored procedures.
It would take me waaay too long to write the logic as Ninja Script.
I can load the initial data via export from NT but I would like to
write to a text file on a 1 minute chart then as a back ground process I will have a scheduled job in my database which will read that file
and analyse it on 1min, 3min, 5min, 15min and 1hour basis
it will then alert me if anything interesting is developing.
I will conduct my own tests but do you think System.FileIO will perform okay doing small frequent writes?
Comment
-
Freddo, not sure what you mean, the sample exports the history to a text file and the adds in realtime to it...as result it displays the current days OHLC to the output window.
The file created sits in the MyDocuments\NinjaTrader 6.5 folder and is named 'SampleFileReadWrite-MyTestFile' per default.
Comment
-
Hi Bertrand,
it exports the historical then starts updating and stops.
I do not see the days OHLC.
I am wondering if when the indicator script is trying to update the text file
and my program is reading the same file then my data base loader utility is reading it.
Regards
Freddo
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment