i wrote a script to detect the divergence between the price and the Rsi. Each time there is a divergence (bullish or bearish), the script send me an email, to alert me.
i tried to run this script on daily on the 500 equities of the S&P to get after the close an email with all the equities where there is a divergence.
My problem is that i wrote the script CalculateOnBarClose=true, and the email is sent after the open of the next day, not on the close of [0].
in fact, i want to receive the emails after the US session like that i have all the morning (French time) to verify the signals and to select the best oppotunities.
I tried with CalculateOnBarClose=false but i receive a thousand emails... is there a solution to get the signal without waiting the open on the next day bar ?
Thx
Comment