I tried to do so using the property Instrument.MasterInstrument.Name, with no result both in StreamWriter and Print().
Which syntax should I use in the StreamWriter to be able to print out as file name the ticker I'm currently using?
In your example it was
private string path = Cbi.Core.UserDataDir.ToString() + "MyTestFile.txt";
I'd like to achieve something like private string path = Cbi.Core.UserDataDir.ToString() + "SPY.txt";
if I'm currently running the StreamWriter on SPY.
Many thanks!
Comment