- The [] operator allows the programmer to access previous bars ie. [2] references 2 bars prior to the current bar.
2.The input function tells the script what to display - The strategy function sets the strategy property
- The Volume variable contains the current bar’s volume
-
[] allows you to set values from previous candle data.
-
The input function allows you to add an input into the script.
-
The strategy function sets properties used for your strategy.
-
The current bar volume.
1 [] Allows you to input a variable to access previous data.
2 It adds a input to your scrip indicator.
3 A strategy function sets a number of strategy properties.
4 The volume variable contains the buy, sell data for the reliant bar
-
What does the language operator [] do? (Hint: It’s not for regular arrays)
Accesses value of current or previous bar depending on number in square brackets. -
What does the input function do? (Hint: Try it in Tradingview)
Its a named constant -
What does the Strategy function do?
Allows you to test your strategy -
What information does the Volume variable contain?
Gives volume of the current bar or of previous bar [].
- What does the language operator [] do? (Hint: It’s not for regular arrays)
Accessing previous data points - What does the input function do? (Hint: Try it in Tradingview)
Adds input to script indicators - What does the Strategy function do?
Sets a number of strategy properties - What information does the Volume variable contain?
Accesses previous volume data
-
Provides access to previous values of series
-
Adds an input to your script indicator. User can see and edit inputs on the Format Object dialog of the script study. Script inputs look and behave exactly the same as inputs of built-in Technical Analysis indicators.
-
The function sets a number of strategy properties.
strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, max_lines_count, max_labels_count, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule, margin_long, margin_short, max_boxes_count) → void
- it shows the buy/sell volume for the current bar
- Saves and allows access to previous bars in your strategy
- For going long or short on a position
3.This allows you to test your strategy - The amount of obv in a trade
- “[ ]” can be used to set numerical values between the bars.
- The “Input” function adds an input to my script indicator.
- The “Strategy” function sets a number of strategy properties.
- The “Volume” variable contains the current bar volume.
- What does the language operator [] do? (Hint: It’s not for regular arrays) Makes it possible to refer to historical values of an variable of a series type.
- What does the input function do? (Hint: Try it in Tradingview) Edits input on the Format Object dialogue of the script study.
- What does the Strategy function do? The strategy function sets a number of strategy properties.
- What information does the Volume variable contain? Volume contain a non-literal volume amount
- What does the language operator [] do? (Hint: It’s not for regular arrays)
provides access to previous values of series - What does the input function do? (Hint: Try it in Tradingview)
adds an input to your script indicator. For example, you can set the Symbol, change resolution, change the date range, set plot color. - What does the Strategy function do?
create a strategy that you can run / test by defining the parameters - What information does the Volume variable contain?
Current bar volume
- What does the language operator [] do? (Hint: It’s not for regular arrays)
It provides access to previous values of series. - What does the input function do? (Hint: Try it in Tradingview)
It’s for inputing types into your script. Example input( string) - What does the Strategy function do?
It inputs strategy properties. - What information does the Volume variable contain?
It contains the volume of trading conducted in a bar.
- What does the language operator [] do? (Hint: It’s not for regular arrays)
Provides access to previous values in a series with a dynamic index (the number inside the operator [] is the number of bars that the code goes back to in the series from a specified point).
- What does the input function do? (Hint: Try it in Tradingview)
It creates an indicator (like the ones built in already in Traidingview), but we can specify what we want to have in the indicator settings
- What does the Strategy function do?
It sets up the parameters of the strategy (e.g. which currency to use, number of units to trade, how far back in history we want the strategy to be tested)
- What information does the Volume variable contain?
The volume of the current bar (or any previous bar if the [] operator is used)
- [] Provides access to previous values of a series. The number inside the square brackets is the number of bars back.
- The input function adds an input to the script indicator, allowing users to see and edit inputs on the Format Object dialog of the script study. Script inputs look and behave exactly as inputs of built-in Technical Analysis indicators.
- The strategy function sets a number of strategy properties.
- The volume variable shows the volume of the current bar, or that of previous bars by adding the square brackets operator.
-
The language operator
[]
provides access to previous values in a series of values. -
The input function adds input to your script indicator.
-
The strategy function sets a number of strategy properties.
-
The volume variable contains information on the current bar volume.
- It is the operator that provides access to calling upon previous values of a set of candles; ex. currentVale[previousVal].
- It is a way of inputting, editing or deleting a form of user interface, using script, that displays information in a manner that is similar to Technical Analysis indicator scripts.
- This function allows for input within the startegy function itself and sets the strategy properties for when it is called.
- It contains the most current candlestick’s volume of its open/close rectangle.
- It can be used to “save” variable value between bars. For example past instances of candle volume.
- Adds an input to the script indicator. It can be to input color, integer, string to name a few.
- The function sets a number of strategy properties. It is used for back testing.
- Current bar volume. Previous values can be accessed thru the language operator [].
- The [] operator engages in allocating the previous value of a variable. Could be used to check if for example the open of a candle is greater, less than, or equal to that of the close.
- The input function essentially allows you to assign a function to a variable and easily edit it later. The inputs then act similar to that of built in indicators.
- The strategy function allows you to set many strategy properties.
- It contains the current bar volume, or it can present previous volume with using the [] operator.
1 It gives access to previous values depending on the variable contained [var].
2 An input function allows you to enter data for a strategy that you are building.
3 A strategy function sets a predefined set of commands to create a strategy.
4 The volume variable contains all the buys and sells for the time period specified.
-
What does the language operator [] do?
Provides access to previous values of series expr1. expr2 is the number of bars back, and must be numerical. -
What does the input function do?
Adds an input to your script indicator. -
What does the Strategy function do?
The function sets a number of strategy properties. -
What information does the Volume variable contain?
It represents the current bar volume.
- What does the language operator [] do? (Hint: It’s not for regular arrays)
- “Series subscript. Provides access to previous values of series” Lets you go back to previous values from current value.
- What does the input function do? (Hint: Try it in Tradingview)
- “Adds an input to your script indicator.” It lets you define your own variables.
- What does the Strategy function do?
- “The function sets a number of strategy properties.” Via this function you code your actual strategy. The suffix of the strategy.suffix defines what action the strategy should take with the predefined set of rules.
- What information does the Volume variable contain?
- “Current bar volume.”