I have a scan using some custom code which is not triggering as expected. Please see below:
input lnrLength = 40;
def myLevel = lnrReg + (2 * stkATR);
def signalAbove = Close crosses above myLevel;
I have set this scan against a custom watchlist and it sends an alert every time a stock in my list meets this criteria. The code is set at the hourly level. However, I get the alert even before the hourly candle has closed.
What is the appropriate way to handle this so that I get the alert only if the Close crossed above this line after the candle has closed.
Marked as spam
Please log in to post questions.