Input Fields

Input

Creates a script input field. The type is depending on the default value. It can be a number, text or boolean (checkbox) field. Without default value, it will be a text field.
  • Input(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the input value.
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Dynamic
False
Number, Text, True, False
tooltip
String
False
Text
group
String
False
Text

InputAccount

Creates an account selection field.
  • InputAccount(label, [ tooltip ], [ group ])
Return the selected account guid.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
tooltip
String
False
Text
group
String
False
Text

InputAccountMarket

Creates an account, market & leverage dropdown.
  • InputAccountMarket(label, [ tooltip ], [ group ])
Returns a combined string. For example 9c9aaf1f-469b-4eea-bca3-df61db37c549BITFINEX_BTC_USD.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
tooltip
String
False
Text
group
String
False
Text

InputCdlTypes

Creates a dropdown with available Candlestick Pattern (CDL) types. Can be used in combination with CDL().
  • InputCdlTypes(label, defaultValue, [ tooltip ], [ group ])
Returns the selected CDL type as enum. For example ThreeCrowsType.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
True
TwoCrowsType, ThreeBlackCrowsType, ThreeInsideType, ThreeLineStrikeType, ThreeOutsideType, ThreeStarsInSouthType, ThreeWhiteSoldiersType, AdvanceBlockType, BeltHoldType, BreakawayType, ClosingMarubozuType, ConcealBabysWallType, CounterAttackType, DojiType, DojiStarType, DragonflyDojiType, EngulfingType, GapSideSideWhiteType, GravestoneDojiType, HammerType, HangingManType, HaramiType, HaramiCrossType, HignWaveType, HikkakeType, HikkakeModType, HomingPigeonType, IdenticalThreeCrowsType, InNeckType, InvertedHammerType, KickingType, KickingByLengthType, LadderBottomType, LongLeggedDojiType, LongLineType, MarubozuType, MatchingLowType, OnNeckType, PiercingType, RickshawManType, RiseFallThreeMethodsType, SeperatingLinesType, ShootingStarType, ShortLineType, SpinningTopType, StalledPatternType, StickSandwhichType, TakuriType, TasukiGapType, ThrustingType, TristarType, UniqueThreeRiverType, UpsideGapTwoCrowsType, XSideGapThreeMethodsType, AbandonedBabyType, DarkCloudCoverType, MatHoldType, MorningDojiStarType, MorningStarType, EveningDojiStarType, EveningStarType
tooltip
String
False
Text
group
String
False
Text

InputConstant

Creates a dropdown with available constant in the category of the defaultValue. If for example SignalLong is set as default, all the signal constants will be available in the dropdown.
  • InputConstant(label, defaultValue, [ tooltip ], [ group ])
Returns the selected constant type as constant.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
True
SmaType, EmaType, WmaType, DemaType, TemaType, TrimaType, KamaType, MamaType, T3Type
tooltip
String
False
Text
group
String
False
Text

InputGroupHeader

Creates a group header, separating input sets.
  • InputGroupHeader(label)
Return Type: Void
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-

InputInterval

Creates an interval dropdown.
  • InputInterval(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the selected interval in minutes.
Return Type: Number
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Number
False
Number
tooltip
String
False
Text
group
String
False
Text

InputLrTypes

Creates a dropdown with the available LR types.
  • InputLrTypes(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the selected LR type as enum.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
False
LR_Default, LR_Angle, LR_Slope, LR_Intercept
tooltip
String
False
Text
group
String
False
Text

InputMarket

Creates a market dropdown. The market options are related to the main account selection.
  • InputMarket(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the selected market. For example BITMEX_XBT_USD_XBTUSD.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
String
False
Text
tooltip
String
False
Text
group
String
False
Text

InputMaTypes

Creates a dropdown with available MA types. Can be used in combination with a variety of technical indicators like BBANDS() or PPO().
  • InputMaTypes(label, defaultValue, [ tooltip ], [ group ])
Returns the selected ma type as constant.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
True
SmaType, EmaType, WmaType, DemaType, TemaType, TrimaType, KamaType, MamaType, T3Type
tooltip
String
False
Text
group
String
False
Text

InputOptions

Creates a dropdown with custom options.
  • InputOptions(label, defaultValue, options, [ tooltip ], [ group ])
Returns the selected value as string.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
String
True
-
options
Dynamic
True
-
tooltip
String
False
Text
group
String
False
Text

InputOrderType

Creates a dropdown with the default available order types.
  • InputOrderType(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the selected order type as enum.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
False
LimitOrderType, MarketOrderType, NoTimeOutOrderType
tooltip
String
False
Text
group
String
False
Text

InputPriceSource

Creates a price source dropdown.
  • InputPriceSource(label, [ defaultValue ], [ tooltip ], [ group ])
Returns the selected price source as string. For example BITSTAMP.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
String
False
Text
tooltip
String
False
Text
group
String
False
Text

InputPriceSourceMarket

Creates a price source & market dropdown.
  • InputPriceSourceMarket(label, [ defaultValue ], [ tooltip ], [ type ], [ group ])
Returns the selected market as string. For example BITSTAMPBTC_USD.
Return Type: String
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
String
False
Text
tooltip
String
False
Text
type
Enum
False
SpotTrading, MarginTrading, LeverageTrading
group
String
False
Text

InputSignalManagement

Creates multiple dropdown options for signal management and mapping.
  • InputSignalManagement(label, signal, [ tooltip ], [ group ])
Returns the baked signal based on settings.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
signal
Enum
True
InputSignalTypes, IndicatorSignalCrossType, IndicatorCenterCrossType, SignalCenterCrossType, BothCenterCrossType, IndicatorThresholdType, SignalThresholdType, BothThresholdType
tooltip
String
False
Text
group
String
False
Text

InputSignalTypes

Creates a dropdown with available Signal Types. Can be used in combination with GetSuperSignal().
  • InputSignalTypes(label, defaultValue, [ tooltip ], [ group ])
Returns the selected signal type enum.
Return Type: Enum
Parameter Name
Parameter Type
Required
Suggested
label
String
True
-
defaultValue
Enum
True
InputSignalTypes, IndicatorSignalCrossType, IndicatorCenterCrossType, SignalCenterCrossType, BothCenterCrossType, IndicatorThresholdType, SignalThresholdType, BothThresholdType
tooltip
String
False
Text
group
String
False
Text

InputTable

Creates a dynamic input table.
  • InputTable(options, columns)
Returns the tables values per row. [[1,2,3,4], [5,6,7,8], [9,0,1,2]].
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
options
Dynamic
True
-
columns
DynamicParams
True
-

InputTableColumn

Creates an table column options object for InputTable()
  • InputTableColumn(name, [ values[] ])
Returns the options objects.
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
name
String
True
-
values[]
DynamicParams
False
-

InputTableOptions

Creates an options object for InputTable().
  • InputTableOptions([ title ], [ rows ], [ maxRows ], [ group ])
Returns the options objects.
Return Type: Dynamic
Parameter Name
Parameter Type
Required
Suggested
title
String
False
-
rows
Number
False
-
maxRows
Number
False
-
group
String
False
-
Copy link
On this page
Input
InputAccount
InputAccountMarket
InputCdlTypes
InputConstant
InputGroupHeader
InputInterval
InputLrTypes
InputMarket
InputMaTypes
InputOptions
InputOrderType
InputPriceSource
InputPriceSourceMarket
InputSignalManagement
InputSignalTypes
InputTable
InputTableColumn
InputTableOptions