people with nt,
regards.
i need a 2 second delay for some of the events that take place inside an indicator i have been developing, and i really have been having a torrid time trying to code this in nt.
i have an indicator that creates text files that serve as log entries. i share a file of an indicator as an attachment that uses streamwriter to create text files as log entries. i run it on 4 second bars and it generates alternating text files according to odd or even bar numbers.
there are four different file types, two of which i want to be created only after a 2 second delay. on a 4 second chart this means that the events without any delays should generate text files on the index 0 and the two types that should be delayed should generate text files right in the middle of this 4 second interval on the index 1.
it took me several days to code this and now the indicator as i share it does generate text files of 4 different types, however, i don't think the delay is being observed as the files appear two by two on the folder where they are created to. ¿is there any way to ensure a 2 second delay for the events i'm interested in?
this has the utmost importance for me so i think i would even pay for assistance if i'm unable to code this myself. hopefully i should be able to code this myself to perform as intended as i think i'm not far away from the intended objective.
very well, regards.

Comment