♥ 0 |
I was able to update a column on a watchlist to add a label and background color based on the closing price being above or below the 34 ema. Here is the code I am using: plot data = close ; def MovAvgExponentia1 = ExpAverage(close, 34 ); AddLabel(yes, else if close < MovAvgExponential then “ 34ema – ” AssignBackgroundColor( This works perfectly most of the time. However there could be some occurrences when the 34ema and the closing price would be the same, hence I will just get a 34ema= against a black ground. I use this on the top 250 optional stocks on volume and there were several which showed this “34ema= label” which was in error and should have been caught and assigned the red or green background. I’ve checked the close and am not sure why this is happening – if you have any suggestions I would very much appreciate it.
Thanks, David
Marked as spam
|
Please log in to post questions.