tradingview-api

I got TradingView's 'end of line without continuation' error with Pine Script

ⅰ亾dé卋堺 提交于 2019-12-07 04:29:21
问题 I am using this code in Pine Script but getting the "mismatched input 'a' expecting 'end of line without line continuation'" error. How to fix that error with this function code? val(s) => if s != s[1] a = s-s[1] if s = s[1] a a 回答1: The 'end of line without continuation' error happens when there's an indentation mistake in the TradingView Pine code. Looking at your code (and assuming copying it into StackOverflow went right), there is indeed an indentation problem: val(s) => if s != s[1] a =

I got TradingView's 'end of line without continuation' error with Pine Script

随声附和 提交于 2019-12-05 11:13:57
I am using this code in Pine Script but getting the "mismatched input 'a' expecting 'end of line without line continuation'" error. How to fix that error with this function code? val(s) => if s != s[1] a = s-s[1] if s = s[1] a a The 'end of line without continuation' error happens when there's an indentation mistake in the TradingView Pine code. Looking at your code (and assuming copying it into StackOverflow went right), there is indeed an indentation problem: val(s) => if s != s[1] a = s-s[1] if s = s[1] a a There are two indentation problems in this code: The first 4 lines of the function

How to embed TradingView into Angular 8 project?

我只是一个虾纸丫 提交于 2019-12-02 17:26:37
问题 I am interested to know how can I embed the following TradingView's code to my Angular 8 project? <!-- TradingView Widget BEGIN --> <div class="tradingview-widget-container"> <div id="tradingview_bac65"></div> <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/NASDAQ-AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script