Reading Assignment: Pinescript

Hey @Schafishere, hope you are great.

Thats a complex question, pine script is based for tradingview, further in the course we teach you to program directly on JavaScript connecting to an exchange through an API, so that method can be used in multiple platforms that allow a trading methods over an API.

Carlos Z

  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    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? (Hint: Try it in Tradingview)
    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?
    It adds detailed instructions of what parameters we are looking for to accomplish a buy or sell order.

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

1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    It let us access previous values of the candles, e.g. we can input: [N] we will get the values up to the Nth previous candle.
  2. What does the input function do? (Hint: Try it in Tradingview)
    Adds an script to edit variables.
  3. What does the Strategy function do?
    It is a backtest for potential market positions to be opened.
  4. What information does the Volume variable contain?
    It contains the current candle trade volume.
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    [] it provides access to previous values.

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

  3. What does the Strategy function do?
    Sets numerous functionality to our trading strategy

  4. What information does the Volume variable contain?
    Can help us to know the quantity of a coin to sell or to buy on limit order

1 Like
  1. The language operator allows you to query specific values from previous candles.

  2. Input function on trading view allows you to add an input to the current script.

  3. The strategy function sets a number of strategy properties to perform in the script.

  4. The volume bar gives the current volume for the candle stick bar you’ve selected or to refer back to a previous bar’s volume using brackets [].

1 Like

1 What does the language operator do?
save value between bars.

2 What does the input function do?
Add new input.

3 What does the Strategy function do?
To set up different strategy properties.

4 What information does the Volume variable contain?
volume of current bar and previous bar

1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
    It is a series subscript that gives you access to previous values in the series.
  2. What does the input function do? (Hint: Try it in Tradingview)
    allows you to add to your script a new input
  3. What does the Strategy function do?
    allows you to set multiple strategy properties
  4. What information does the Volume variable contain?
    It contains the current bar volume
1 Like
  1. In Tradingview [] let us access to the previous candle data. The number between [] indicates how many previous candles it has to check.

  2. It adds an input on the script that can be plot on the screen.

  3. The function sets a number of strategy properties.

  4. The current bar volume value. [] may be used to show previos bar volume value.

1 Like

What does the language operator [] do? (Hint: It’s not for regular arrays)
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.
expr1[expr2]

What does the input function do? (Hint: Try it in Tradingview)
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.

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

What information does the Volume variable contain?
Current bar volume.
TYPE
series[float]
REMARKS
Previous values may be accessed with square brackets operator [], e.g. volume[1], volume[2].

1 Like
  1. it can be used to save value between bars.

  2. Add new input.

  3. To set up different strategy properties.

  4. the volume of current bar and previous bar

1 Like
  1. Series subscript. Provides access to previous values of series
  2. 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. The function sets a number of strategy properties.
  4. Current bar volume
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)

[] is Series subscript. Provides access to previous values of series

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

The Input Function is an Interface which adds a new input variable and even set the defaults values to one’s script indicator which can be edited via Script settings

  1. What does the Strategy function do?

the Strategy function adds parameters to the strategy’s script so the system can execute the desired code. Strategy Function allows one to cancel, send or modify (sell/buy) orders; emulate data sets history (backtesting) and forward testing (real time trading strategy)

  1. What information does the Volume variable contain?

the Strategy function contains the current candle/bar’s trading volume information yet can also show previous candle’s buy/sell trades volumes

1 Like
  1. References past candles.
  2. Allows values to be directly entered into the strategy
  3. defines miscellaneous parameters wrt the trading strategy
  4. The current bar volume
1 Like
  1. The [] query the previous value of series (the previous candlestick for example)
  2. The input function provides an interface where you can edit a variable chosen data via script setting
  3. Allow an entry/exit/open/close value of the trading strategy
  4. The amount of the trades
1 Like
  1. The language operator develops indicators and strategies composed of functions and variables. Functions instruct the described calculations and variables save the values used or created.

  2. The input function calculates user-defined, built-in and annotation functions.

  3. The strategy function configures the characteristics of a trading strategy, ie order size and pyramid settings.

  4. The Volume variable contains the current number of transactions of a specific amount of time.

1 Like
  1. The operator [] in Pinescript lets us access previous data from variables, such as variable at the open of a candle to the close
  2. Allows user to add manual inputs to the code
  3. Declares a number of variables to be used as the strategy’s properties.
  4. the trading volume of the current candle.
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)
  2. Its a series subscript .[] Can be used to save a variable between bars and lets you query pasts instances of a variable
  3. What does the input function do? (Hint: Try it in Tradingview)
  4. The input function adds an input to the script indicator .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
  5. What does the Strategy function do?
  6. The Strategy function sets a number of properties that are used in the strategy
  7. What information does the Volume variable contain?
  8. The volume variable contains the current var volume
1 Like
  1. What does the language operator [] do? (Hint: It’s not for regular arrays)

Provides access to the previous value

  1. 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. Supported inputs are bool, color, integer, float, string, symbol, resolution, session, source and time.

  1. What does the Strategy function do?

Sets a number of strategy properties

  1. What information does the Volume variable contain?

Current bar volume

1 Like

1- They provide acces to previoues values.
2- The input function add to the script indicator.
3- Sets a number of strategy properties.
4- It cotains volume of a bar and can access previous values using the square brakets operator.

1 Like
  1. [] provides access to previous values of series and it can save variable value between bars.
  2. Adds input to script indicator. This function is used to format inputs, which then behave exactly as the inputs of built-in TA indicators. Function returns value of inputs and should be assigned to a variable.
  3. Strategy function sets strategy properties, many arguments are available to use.
  4. Volume variable contains the current bar volume.
1 Like