path = NinjaTrader.Core.Globals.UserDataDir + @"C:\Users\DG_Mobile_PC\Desktop\MyTestFile.txt" ;
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Text FIle Read/Write not working
Collapse
X
-
Text FIle Read/Write not working
Hello, I've downloaded the sample ReadWrite file. but since I didn't know where the program was creating the Text file. I changed the path. I still can't see any new file. Any idea how to make a simple path to write a text file to the Desktop of windows? I triedand I tried [CODE] path = @"C:\Users\DG_Mobile_PC\Desktop\MyTestFile.txt" ; /CODE].Code:Tags: None
-
ChriL. Thanks for reply, I finally got the file to write. However, I just need help with one more thing. If you look at the attached file. I keep getting an error, about accessing a OnBarUpdate method on bar 0. I'm just trying to write the previous Day's Close to the text file. Any help is appreciated.Attached Files
Comment
-
Hi Chris. I got the indicator to write the proper Close of day to a file. Can you help me with one last thing. How do I turn a String into a Double? or should I say. If I want another indicator to read the text from the File, I'd like to take that "String" that it reads, and plot a Line using the numbers (daily close)
Comment
-
Hi, ginx10k
There is a Double.Parse method you can use:
https://docs.microsoft.com/en-us/dot...e?view=net-5.0 (publicly available)
Best regards,
-ChrisL
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment