ECIDiv is not built to be used with a strategy.
There is programming involved if this is of interest to you and the code is available (GPL).
There is no problem in using the ECIDiv with bar close true/false.
If you use it on bar close, the bar is closed so there is no doubt in having/not a divergence.
If you use it on forming bar, you will be aware of a divergence sooner, but it will fail more often since the bar can close with no divergence.