-
It provides access to the previous values.
-
Adds inputs to your script indicator and behave exactly the same as the built-in TA indicators.
-
Sets a number of strategy properties.(title, overlay, currency, scale…)
-
The current bar volume.
@filip
What does the language operator [] do? (Hint: It’s not for regular arrays)
Provides previous numeric values only.
What does the input function do? (Hint: Try it in Tradingview)
It helps to adjust and set up parameters with pinescript.
What does the Strategy function do?
It applies and runs the particular set up customized, enables me to enter in the market position.
What information does the Volume variable contain?
It contains the actual bar volume and a series of script values.
- Provides access to previous values of series X. Y is the number of bars back, and must be numerical. Example: X[Y] contains a value of Y bars backwards.
2…Adds an input to 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.
-
Strategy function sets a number of strategy properties. Every strategy script must have one strategy call.
-
Volume variable contain current bar volume.
-
What does the language operator [] do? (Hint: It’s not for regular arrays)
It immediately sets current value to the same as previous. -
What does the input function do? (Hint: Try it in Tradingview)
It adds an input to your script indicator. -
What does the Strategy function do?
The strategy function sets a number of strategy properties. -
What information does the Volume variable contain?
Current bar volume.
- What does the language operator [] do? It let’s you make queries of previous variables.
- What does the input function do? “Adds an input to your script indicator…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.” Ex. strategy.entry, strategy.close etc.
- What information does the Volume variable contain? Volume(s) of current bar.
1. What does the language operator [] do? (Hint: It’s not for regular arrays)
Provides access to previous values of series
2. What does the input function do? (Hint: Try it in Tradingview)
Adds an input to your script indicator
3. What does the Strategy function do?
Sets a number of strategy properties e.g strategy.cancel, strategy.close
4. What information does the Volume variable contain?
Current bar’s buys/sells volume
- [] lets you query past instances of a variable… example if you wanted to confirm current candle open is greater than previous candle open: open > open[1]
- The input function provides an interface so you can edit the variable value via script settings. It also allows you to set the default, minimum and maximum allowed value where applicable.
- The strategy function emulates entering and exiting positions for back testing.
- Volume variable contains the buy/sell volume for the current bar.
1. What does the language operator [] do? (Hint: It’s not for regular arrays)
This is the series subscript.
It provides access to previous values of series expr1. expr2 is the number of bars (candles) back. It must be numerical and floats will be rounded down.
2. What does the input function do? (Hint: Try it in Tradingview)
It allows the user to see and edit inputs on the Format Object dialog of the script study. What this means is you add the script to your chart and you can therefore change specified variables or settings in the chart values without having to go into the source code.
3. What does the Strategy function do?
It sets a number of strategy properties which are all listed and defined in the reference manual. The only argument that is required is title(const string), others are optional or a default is applied.
Every strategy script must have one strategy call.
Here is the list
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) → void
4. What information does the Volume variable contain?
The current bar volumes, ie the buy/sell.
- What does the language operator [] do? (Hint: It’s not for regular arrays)
- [] is series subscript. It allows the 1[2] to access certain values 1 & 2 from previous candles in the series.
- What does the input function do? (Hint: Try it in Tradingview)
- The input function adds an input to the script indicator
- What does the Strategy function do?
- The strategy function sets a number of strategy properties.
- What information does the Volume variable contain?
- The Volume variable refers to the current bar volume.
1 What does the language operator [] do? (Hint: It’s not for regular arrays)
Provides access to previous values of a given series of data.
2 What does the input function do? (Hint: Try it in Tradingview)
Adds an input to the script indicator.
3 What does the Strategy function do?
The function sets a number of strategy properties
4 What information does the Volume variable contain?
Current bar volume.
- 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.
- The function sets a number of strategy properties like entry, exit, close…
- Current bar volume of the candle, which is limited between the time interval.
- 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. - 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 … I couldnt try it … I still dont know how it works - What does the Strategy function do?
The function sets a number of strategy properties. - What information does the Volume variable contain?
Current bar volume. Previous values may be accessed with square brackets operator [], e.g. volume[1], volume[2].
- What does the language operator [] do? (Hint: It’s not for regular arrays)
- Called the Series Subscript, it provides access to previous values.
- close [ 1 ] will give the close value of the candle before the current (current would be [ 0 ], but that can be omitted).
- What does the input function do? (Hint: Try it in Tradingview)
- It allows to define inputs to the strategy.
- For example, this:
b = input(title="On/Off", type=input.bool, defval=true)
plot(b ? open : na)
gives a simple on/off switch to a graph:
- What does the Strategy function do?
- It sets different strategy properties, such as title, precision, scale, to the strategy that we define further in strategy.entry(), strategy.close() and other statements.
- What information does the Volume variable contain?
- The trading volume of the current bar.
- So it would be reset to 0 at the beginning of each candle and then go up and up until the next candle…?
- This operator can take an index. Starting from one every index is a previous candle (1 is previous, 2 is the one before an so on)
- The input function allow the user to change a function variable interactivilly. Can take a default value a max and a min value
- Strategy can be used to set properties, like when to open or close a strategy etc.
- Volume contains the volume of the current candle (or the corresponding candle if used with [] operator)
- 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.It add input criteria to your script - The strategy function provides to to set up different criteria to e.g. entry, close, stop or cancel a specific trade
- The volume variable explains about the volume current or previous [] buy/sell bars have.
- What does the language operator [] do? (Hint: It’s not for regular arrays)
Allows you to access previous values. - What does the input function do?
Adds an input to a script indicator. - What does the Strategy function do?
Sets a number of strategy properties. - What information does the Volume variable contain?
Holds the current bar volume.
- What does the language operator [] do? (Hint: It’s not for regular arrays)
The [] operator serves for : Provides access to previous values of series expr1. expr2 is the number of bars back, and must be numerical. Floats will be rounded down. - What does the input function do? (Hint: Try it in Tradingview)
The input function adds to the script indicator. - What does the Strategy function do?
The strategy allows us to enter/set numerous functionnality to our trading strategy. For example, a short, a long, when we open the position and when we close it. - What information does the Volume variable contain?
The information is the volume traded on this asset at a certain point in time.
1.The language operator[] is used as a subscript, which can call on values inside of the series it is the subscript of. Using numbers inside of a subscript bracket, you can reference previous candles on a chart. Putting a zero in the chart while putting a one would reference yesterdays and a two would reference the day the day before yesterday before yesterday and so on…
2. Input functions add an input to your script indicator. The user can see and edit inputs on the format object dialogue of the script study. Also, script inputs look and behave exactly the same as inputs of built in TA indicators.
3. Allows you to backtest a idea you have created in the pine script or backtest a pre loaded template.
4. It contains the current value of trade volume bars and previous volume bars. Implementing the information or value using the square bars.
- Provides the value of the variable from the previous candle
- The Input function is a function that needs to be used with a variable to store information that will need to be called at some point.
- The strategy function shows enter and exit positions for back testing
4)Volume variable contains the buy/sell volume for the current bar.
- 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.
- 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.
- Current bar volume.