♥ 0 |
Hi Pete, big thanks for all the info you provide on the TOS platform as I’ve found it super helpful. I’m trying to create a watchlist column for an hourly timeframe that shows me the type of candle and whether the price is increasing or decreasing. The code below works great on daily, weekly, monthly, etc timeframes but I provides inaccurate data for anything shorter than a day. Do you have any hints or ideas on what I’m doing wrong? I’ve included an example screenshot. <code> plot CandleType; plot CandleDirection; addLabel(yes, if CandleType == 3 then “3” else if CandleType == 1 then “1” else “2”, if CandleDirection == 2 then color.white else if CandleDirection == 1 then color.black else color.white); assignBackgroundColor(if CandleDirection == 1 then color.green else if CandleDirection == 2 then color.red else color.yellow); </code>
Marked as spam
|
Please log in to post questions.
Thank you sir