my goal to get a last OHLC bar and upload it to a file.
then in my program(java) i want take data from this file and write some code.
my problem: this file is blocked by writer from ninjatrader. and i can't read data from file.
i have tryed to create a new thread and to wrote OHLC data from this thread with some Thread.sleep(50). but ninjatrade make crashdown all time.
i have tryed to use async method but indicator don't compile. cause don't to see async and await.
has anybody who can to give my good advice how resolve it?
ps. NT_7 .NET 4.5.2
Comment