TSLA $4 Red Candle
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Magic-Charts

//@version=4
study("TSLA $4 Red Candle", overlay=true, max_labels_count=100)

diff = open - close
if(diff < 4.99 and diff > 3.99)
    label.new(bar_index, high, text="$" + tostring(diff) + " Candle" + "--\n" + tostring(open) + " --\n" + tostring(close), color=color.red)