I'm using Streamwriter to dump data into a txt file, from inside an indicator script. This gets called inside OnBarUpdate(). Works great except at 4:00 P.M. which I suppose has to do with when a bar gets updated - I can live with that - don't need an explanation if that's just the way things are.
So my question is:
Is there another way to execute Streamwriter from somewhere else besides inside OnBarUpdate(), so that it gets executed at or after 4:00 P.M.? Like in a "Main()" or something? ( e.g. if (time.now = 160100) then (blah, blah, blah) )
Obviously, I'm not a C# or Ninjascript whiz, and I have a strong feeling the answer is something obvious or basic.
Thanks.
Comment