♥ 0 |
Hi Pete, I have the following code which makes 2PM-230PM Candles yellow. My purpose is to see the candles between 2-230PM with specific color which is fulfilled when I am on 15 and 30 TF but not in lower than 15min TF. Another thing is I want to also see the 730-800AM candles with a specific color in 1 to 30 min TFs. 2-I tried to add two studies with two different times (2-230 &730-800) but I am getting error ” multiple studies are trying to manipulate color of the same bar” Your help is appreciated. input OpenTime = 1400; def secondsPassed = secondsFromTime(OpenTime); def CandleBlue = secondsPassed >= 0 and secondsPassed <= durationSec; AssignPriceColor(if candleblue then color.yelloW else color.CURRENT);
Marked as spam
|
Please log in to post questions.