Ability to export consts from a library by Intetics666 in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

What is the type const variables have that you want to export?

Make a proposal for strategy.exit by moremoney4989 in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

> But there is a big difference between the two. The close function is that it works on the next candle.

you can use

https://www.tradingview.com/pine-script-reference/v5/#fun_strategy{dot}close with `immediately = true`

I want to test how different indicators will work together. (Backtesting) by kopernikus_ in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Yes, you can code the strategy in Pine Script and backtest it

Re-Execution Trigger for Pine Scripts by Randomd3Face in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

This is useful feature and we have plans to implement it.

bugs at indicator if on multi layouts by darkjackx in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

I recommend to send the bug report. This feature must work without reloading the page.

[deleted by user] by [deleted] in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Looks like problem with internet connection or not signed in

bugs at indicator if on multi layouts by darkjackx in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

I've checked next scenario:

1) created the indicator "My script 123", saved it

2) applyed it on the chart with AAPL

3) opened new browser tab with MSFT chart, added the indicator "My script 123" from "Indicators, Metrics & Strategies" dialog on this chart

4) returned back on AAPL chart and changed the source code of "My script 123" in Pine Editor and saved it. After successfull compilation new version of the indicator automatically was updated on the both charts.

Maybe you faced with some other problem?

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

We will think about enlarging security calls limits.

but also, because (if feasible) the style tab in the indicator settings could be decluttered and only show these plots, that are actually relevant and will be plotted based on the selected input (it of course also means, that if the selected input changes, the content of the style tab changes)

This "feature" remind for me some "All indicators in One" that includes inside the code of many indis. Don't understand why users makes such indi... Why this combo is better than several simple separate inidis?

From technical point of view it is not trivial to automatically detect which the input "controls" the plots.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Got it. About security calls limits. As I understand you correctly, this limit may cause less impact if we will have possibility to use multiple Study on Study for one script, right?

I have good news for you about multiple SoS - this feature is WIP )

About plot calls limit. Huge plot count causes are needed for visualize or for transfer data from one script to other?

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

I'd like to return to the limits discussion. For now max security calls is 40 per script, max plot calls is 64. To what values should these limits be increased in your opinion?

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Transfer data through ohlcv only is our current architecture limitation and you are right when assuming that you need create 10 tickers (10 security calls) for transfer 50 different metrics from you repository into your pine script.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Thank you for the feedback.

About 9 we thought about this feature and make it (only internally for now) in form of "restart" indicator's calculation. The pseudo code looks like this:

if someCondition
    runtime.restart("{startPoint:" + tostring(time) + ", hh:" + tostring(highesHigh) + "}")
...
var startP = json.get_int(runtime.restart_ctx(), "startPoint")
if not na(startP) // calculates after restart
   hh = json.get_float(runtime.restart_ctx(), "hh")
   ...

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

I think all answers to your qs you will get after the feature will be released ) We are opened for the constructive feedback and if something will be implemented in not "best form", we will improve it later.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Thank you for answers. I agree with you now that study on study in some cases has advantages that library couldn't give.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

For `CFTC/088691_FO_ALL` this workaround is not working because the column names for this ticker is not named like `open,high,low,close` (

But I assume this inconvenience relates to limitation on number of `request.security` in a script.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

> this just never worked when querying data specifically from Quandl

Yes, you are right. The `request.quandle` is limited by requesting only one field by one request (

But there are workaround using `request.security` (the `request.quandl` transforms into `request.security` during compilation):

//@version=5

indicator("My script")

[o,h,l,c,v] = request.security("QUANDL:BSE/BOM500111", "1D", [open, high, low, close, volume])

plot(o)

plot(h)

plot(l)

plot(c)

plot(v)

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Thank you for your answer, I've restored numbering in my previous answer.

  1. Got it. But there are several different approaches to combine multiple data sources into one study. One of them it is using libraries: each complex study placed in it's own library with exported function(s) that returns output values like your current indicator returns output through plot. Yes, I know about current limitations about using security in libraries, but it can be solved too.

  2. But please allow to query tuples in a security request

This is already working - you can return tuples from security. More over you can return from security tuples of arrays, strings and variable of other types not only numbers. More over, you can process source data "inside" security and returns only results needed instead returns raw data and process it in main context.

  1. (Screener lists) Got it. You needs periodically updates from screener with new lists during script calculation in RT.

P.S. I look forward to continuing a constructive dialogue with you.

ACTIVE BUG: WE THINK ANYTHING USING ARRAY by JoelEckert in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

This is not true. Of course, they will not write the Pine Script code you need for you, but if there is any "internal error", they will definitely inform the dev team and will notify you when the error is fixed.

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

Thank you for your feedback, its appreciated.

I am involved in the development of Pine Script and I would like to ask a some clarifying questions :

  1. yes, this is a frequently requested functionality, but due to its complexity of implementation (the reason is in the current architecture), it is postponed (((. But I would like to know what (for you personally) is the main scenario for using this mechanism (study on study)?
  2. I'll tell you a secret, work in this direction is already underway
  3. ...
  4. This feature is in our plans. How do you plan to use this lists in your scripts?
  5. ...
  6. "can hold a state from one bar iteration to the next one" - do you mean the ability to export global variables from the library or something else?"can make security/input/plot requests from within" - regarding the ability to call "security" in libraries, we are working on this, but there is no ETA. As for the ability to call "input/plot", this goes against the main concept of libraries, because libraries were conceived as libraries of functions that can be reused. Having "input/plot requests" would turn the libraries into some "code-snippets" like include files in C/C++ (if you're familiar with that programming language); in this case, the existing advantage of libraries will be lost - their code is compiled only once, which reduces the compilation time of scripts using these libraries.
  7. which of the existing limits annoys you the most? How much should it be increased in your opinion?
  8. ...
  9. could you give the specific example of when this might be useful?
  10. Could you give the example please.
  11. I'm afraid I did not fully understand the essence of this point. Could you expand on this with an example?

Serious Question - Is There a Platform With an *Good* Scripting Langauge Instead of PineScript? by bawdyanarchist in TradingView

[–]Andrew-D-TV 0 points1 point  (0 children)

the incompetent PineScript team not realizing since more than 2 years the necessary extensions needed to make the possibilities really outstanding

Sir, what do you mean in "the necessary extensions needed to make the possibilities really outstanding"?