♥ 0 |
Hello Pete, I have the following custom TOS watchlist code for EMA crossing that works well but I was wondering if you could help me with the following two items i haven’t been able to figure out. 1- Eliminate after hours/pre-market data input so that only regular market data is used. 2- Add a timing feature so that the cross over (green) and cross under (red) signals are only displayed for one (1) minute after happening. Then the watchlist cell goes back to neutral (empty) Thank you for the help and great work.
def X = MovingAverage(AverageType.EXPONENTIAL, close, 8); def Y = MovingAverage(AverageType.EXPONENTIAL, close, 34); def Z = X – Y; AssignBackgroundColor(if X > Y then createcolor(50,180,50) else if X < Y then color.red else color.current); AddLabel(yes, AsText(Z, NumberFormat.TWO_DECIMAL_PLACES));
Marked as spam
|
Please log in to post questions.
Thank you for the quick response and the information provided.