Is there any way to calculate the price update colors that are
shown during price fluctuations to show whether it's rising/falling:
def priceChange = close - close[1];
def PC = priceChange / close[1];
AddLabel(Yes, round(close, 2),
if PC < -0.008 then color.red
else if PC < -0.006 then color.light_red
else if PC < -0.004 then color.dark_red
else if PC < -0.002 then color.light_red
else if PC < 0 then color.red
else if PC > 0 then color.green
else if PC < 0.002 then color.light_green
else if PC < 0.004 then color.dark_green
else if PC < 0.006 then color.light_green
else if PC < 0.008 then color.green
else color.gray);
This shows that but the fluctuations are really slow, would be
easier to do this if there was second based timeframes.
shown during price fluctuations to show whether it's rising/falling:
def priceChange = close - close[1];
def PC = priceChange / close[1];
AddLabel(Yes, round(close, 2),
if PC < -0.008 then color.red
else if PC < -0.006 then color.light_red
else if PC < -0.004 then color.dark_red
else if PC < -0.002 then color.light_red
else if PC < 0 then color.red
else if PC > 0 then color.green
else if PC < 0.002 then color.light_green
else if PC < 0.004 then color.dark_green
else if PC < 0.006 then color.light_green
else if PC < 0.008 then color.green
else color.gray);
This shows that but the fluctuations are really slow, would be
easier to do this if there was second based timeframes.