♥ 0 |
Hi there! I was trying to make a simple label to give me a general feel of where NQ futures are without having to go to that chart. I believe I am close on the code, but the colors/state do not seem to match. Any thoughts? Thanks!
input symbol = “/NQ”; def close01 = close(symbol, period = aggregationperiod.TEN_MIN); def avg1 = movAvgExponential (close01, 9, 0); addlabel(if ShowLabel == yes then 1 else 0, if close > avg1 then ” NQ – Bullish ” else if close < avg1 then ” NQ – Bearish ” else ” NQ – Flat “,
Marked as spam
|
Please log in to post questions.