Functions
input.price()
A price setting. The value comes back as a float. Unlike `input.float` it takes no bounds and no step, so use `input.float` where a range matters.
Syntax
input.price(const float defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input float
Arguments
defval required const float The price the control starts at. Required. title const string The label shown beside the control. tooltip const string Help text for the control. inline const string A key that puts several controls on one row. group const string A heading the control sits under. confirm const bool Asks the reader to confirm the value. Return Type
input float Example
indicator("Custom Price Input", overlay=true)
priceLevel = input.price(22300.0, title="Custom Price Level", confirm=true)
plot(priceLevel, title="Selected Price", color=color.blue, linewidth=2, style=plotStyle.scatter)