Is it possible that OnBarUpate() is concurrently running several times or is each OnBarUpdate() returning to NT and then NT calls again into OnBarUpdate()
My point: what happens if your Close[0] is updated every 1/10 of second but OnBarUpdate() calculated 0,5s every now and then.
Will NT wait for OnBarUpdate to return or will it call into it several times?
Best regards
Andreas
Comment