Reading Assignment: Pinescript

  1. [] returns values of variables per the established “rule” set with the argument enclosed in []
  2. Input function allows variables editting through a script and can also be used to set minimum and maximum values of variables
  3. Strategy function allows to set strategy properties
  4. Volume - returns bar volume
1 Like
What does the language operator [] do? (Hint: It's not for regular arrays)
  • let you query previouse candles. The number inside tell which candle.

    What does the input function do? (Hint: Try it in Tradingview)

  • Input a value

    What does the Strategy function do?

  • setup differnet strategy properties

    What information does the Volume variable contain?

  • the candle volume (buy/sell) /Volume from prev. candles can be accessed by []

1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)

Inputs a message to the computer which instructs the computer, to 1.) “embrace specific data, then, 2.) “put the embraced data in a memory location.”
The final use is to output the embraced data from memory which is subject to the Order of the Current Program which sees over the strategy and the input function of the program.

  1. What does the input function do? (Hint: Try it in Tradingview)

The input function is the method of the path by which data is entered as a message to a program running within the computer. It is an interface to edit variables within the program.

  1. What does the Strategy function do?
    The strategy function’s action is defined by the particular paths of interaction within the program which operate upon the data according to various language-specific interactions, i.e., by the protocols of data manipulation, data entry, data manipulation and data output.
  2. What information does the Volume variable contain?
    The volume variable is the result of a summation of trading incidences occurring during a specified time interval or period
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    This is the Series Subscript. It does mean how many bars back from the current position. Float numbers will be rounded down meaning only integer numbers are accepted.
    So if I would like to go 2 bars back form current positions the expression would be:
    instrument[2]

  2. What does the input function do? (Hint: Try it in Tradingview)
    Adds an input area where the user can see and edit the inputs you provided. User can see and edit inputs on the format object dialog of the script and behave the same as the inputs of built in TA indicators

  3. What does the Strategy function do?
    This allows to set a number of strategy properties.

  4. What information does the Volume variable contain?
    It returns the current bar volume. In combination with the [] operator values of previous bars can be optained.

1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)

It saves value between bars, the number in bracets can indicate how many bars.

  1. What does the input function do? (Hint: Try it in Tradingview)

It adds input function in strategy.

  1. What does the Strategy function do?

It builds strategy based on inputs.

  1. What information does the Volume variable contain?

Of the current bar volume.

1 Like
  1. What does the language operator [] do?
    [] lets you query past instances of a variable. The number in the brackets is how many previous candles in the series the value is referring to.

  2. What does the input function do?
    Inputs are added to a script with the input() function. It lets you modify values without changing the script’s code.

  3. What does the Strategy function do?
    The strategy function emulates entering and exiting positions for back testing and forward testing according to your algorithms. Strategies can plot data and place, modify and cancel orders.

  4. What information does the Volume variable contain?
    Volume variable contains the buy/sell volume for the current candle or within the timespan that the candle represents.

1 Like
  1. What does the language operator [] do?
    It is used to save values between bars.

  2. What does the input function do?
    It adds an input to your script indicator.

  3. What does the Strategy function do?
    It makes the trader exit and enter positions.

  4. What information does the Volume variable contain?
    It gives current bar volume.

1 Like

1.saves the numbers and it can be used to access past data.
2. Allows Data input
3. it has many methods available to preform strategies.
4. The volume variable measures the immidiate volume

1 Like
  1. It gives you access to a previous value in a series
  2. Adds an input to your script indicator
  3. Sets a number of strategy properties
  4. Current bar volume
1 Like
  1. The language operator [] allows you to reference the number of previous candles you want to look at.
  2. The input function lets you modify values in a script.
  3. The strategy function lets the user create buy/sell orders.
  4. The volume variable shows the trades on a given bar.
1 Like
  1. Provides access to previous values of the variable; ex: open[1] would be the opening price of the previous candle.
  2. Adds an input to your script indicator.
  3. This function sets a number of properties to your trading strategy
  4. The traded volume corresponding to the current candle (or of one of the previous candles if used as volume[x])
1 Like
  1. Provide access to previous values of series expr1. expr2 is the number of bars, and must be numerical and can be used to save variable bars.

  2. In Python, it uses to take input from the user. Whatever you enter as input, the input function converts it into a string. If you enter an integer value still input () function convert it a string.

  3. Helps preparing an organization for the future, distinguishing an organization from others, provides an organization with some stability, serves as a common frame of reference, supports internal and external alignment and guides organizational action.

  4. Volume variance is an assessment tool that checks if there is a difference in actual quantity consumed or sold and its budgeted quantities and usually expressed in monetary terms by multiplying the difference between the two with the standard price per unit.

1 Like
  1. [] - Series subscript, allows you to get the previous value in a series x[] and the number of bars back is determined by the numerical value specified within the brackets ie. x[2]

  2. Input functions allow you to add your own script indicators that can be seen and edited in the same way as built-in TA indicators.

  3. Allows you to set the properties for a strategy call.

  4. The trading volume of the current candle.

1 Like
  1. What does the language operator [] do?
    Series subscript. Provides access to previous values of series expr1. expr2 is the number of bars back, and must be numerical. Floats will be rounded down.

  2. What does the input function do?
    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.

  3. What does the Strategy function do?
    The function sets a number of strategy properties.

  4. What information does the Volume variable contain?
    It contains the current bar volume of trades.

1 Like
  1. Provides access to previous values of series
  2. Adds an input to script’s indicator
  3. The function sets a number of strategy properties
  4. Trading volume of the current candle
1 Like

[quote=“filip, post:1, topic:7685”]

  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    Stores numbers, it can be used to pull previous data
  2. What does the input function do? (Hint: Try it in Tradingview)
    allows input of data
  3. What does the Strategy function do?
    the strategy is put in
  4. What information does the Volume variable contain?
    current bar volume
1 Like
  1. Series subscript; provides access to th previous values of expr.1 Expr.2 is used to count the numbers of bars you wanna go back n time.
  2. adds an input to your script indicator
  3. It sets. number of strategys to apply the logic of strategies.
  4. It contains the current volume information. For previous bar add [] operator.
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays) provide access to previous values.
  2. What does the input function do? (Hint: Try it in Tradingview) allow input of parameters by the user.
  3. What does the Strategy function do? declares an object so it can perform a strategy.
  4. What information does the Volume variable contain? the current time frame volume value
1 Like

It provides access to previous values of a variable. the value inside the brackets must be a number and denotes the number of bars back the required value is.

input function allows you to change the parameters of your script

Allows the user to set a number of properties of the strategy

the volume of contracts/shares/lots traded in the current bar/candle

1 Like
  1. Provides access to previous variable values of previous bars
  2. creates a menu with editable variables in the Format Object dialog of the script study
  3. it sets a number of strategy properties that can be called later (strategy.entry())
  4. current bar volume
1 Like