分类
外汇期权交易

如何使用TradingView回测数字货币交易策略

Note Please see the Interval class for available intervals.

TradingView - Pine Editor Error: Could not get Pine source code

I tried to open the source code for the built-in "Zig Zag" indicator but I got an 如何使用TradingView回测数字货币交易策略 error saying: Could not get Pine source code. Does anybody know what this means or how to get around it?

1 Answer 1

Opened it for you.

Not the answer you're looking for? Browse other questions tagged 如何使用TradingView回测数字货币交易策略 pine-script tradingview-api or ask your own question.

    如何使用TradingView回测数字货币交易策略 The Overflow Blog

Related

Hot Network Questions 如何使用TradingView回测数字货币交易策略

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your 如何使用TradingView回测数字货币交易策略 RSS reader.

Site design / logo © 2022 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2022.8.19.42867

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

xushanpei/Vue-tradingview

This commit does not belong to any 如何使用TradingView回测数字货币交易策略 branch on this repository, and may belong to a fork outside of the repository.

Use 如何使用TradingView回测数字货币交易策略 Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download 如何使用TradingView回测数字货币交易策略 GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try 如何使用TradingView回测数字货币交易策略 again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

About

Topics

Resources

Stars

Watchers

Forks

Releases

Packages 0

Languages

Footer

© 2022 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Usage¶

Please install or update TradingView_TA to the 如何使用TradingView回测数字货币交易策略 如何使用TradingView回测数字货币交易策略 如何使用TradingView回测数字货币交易策略 latest version. Please read the getting started guide before continuing.

TradingView_TA older than v3.2.0 is no longer supported. Please update using pip install tradingview_ta --upgrade .

Importing TradingView_TA¶

Checking the version¶

Starting from version 3.1.3, you can retrieve the version of TradingView_TA through the __version__ attribute.

Instantiating TA_Handler¶

https://raw.githubusercontent.com/brian-the-dev/python-tradingview-ta/main/images/tv-list.png

Tip

You can search on https://tvdb.brianthe.dev to see which symbol, exchange, and screener to use.

  • symbol ( str ) – Ticker symbol (e.g., "AAPL" , "TLKM" , "USDEUR" , "BTCUSDT" ).

  • exchange ( str ) – Exchange (e.g., "nasdaq" , "idx" , Exchange.FOREX , "binance" ).

  • screener ( str ) – Screener (e.g., "america" , "indonesia" , "forex" , "crypto" ).

  • If you’re looking for stocks, enter the exchange’s country as the screener.
  • If you’re looking for cryptocurrency, enter "crypto" as the screener.
  • 如何使用TradingView回测数字货币交易策略
  • If you’re looking for forex, enter "forex" as the screener.

interval ( str ) – Time frame

Note

Please see the Interval class for available intervals.

timeout ( float , optional) – How long to wait (in seconds) for the server to return a response.

Retrieving the analysis¶

analysis is an instance of Analysis class. It contains information such 如何使用TradingView回测数字货币交易策略 as the exchange, symbol, screener, interval, local time (datetime.datetime), etc.

  • symbol ( str ) – The symbol set earlier.

  • exchange ( str ) – The exchange set earlier.

  • screener ( str ) – The screener set earlier.

  • interval ( str ) – The interval set earlier.

  • time ( datetime.datetime ) – The time when the data is retrieved.

  • summary ( dict ) – Technical analysis (based on both oscillators and moving averages).

oscillators ( dict ) – Technical analysis (based on oscillators).

moving_averages ( dict ) – Technical analysis (based on moving averages).

indicators ( dict ) – Technical indicators.

  • Opening price: analysis.indicators["open"]
  • Closing price: analysis.indicators["close"]
  • Momentum: 如何使用TradingView回测数字货币交易策略 analysis.indicators["Mom"]
  • RSI: analysis.indicators["RSI"如何使用TradingView回测数字货币交易策略 ]
  • MACD: analysis.indicators["MACD.macd"]

Retrieving multiple analysis¶

You can’t mix different screener and interval.

symbols ( list ) – List of exchange and 如何使用TradingView回测数字货币交易策略 ticker symbol separated by a colon. Example: [“NASDAQ:TSLA”, “NYSE:DOCN”] or [“BINANCE:BTCUSDT”, “BITSTAMP:ETHUSD”].

screener ( str ) – Screener (e.g., "america" , "indonesia" , "forex" , "crypto" ).如何使用TradingView回测数字货币交易策略 如何使用TradingView回测数字货币交易策略

timeout ( float , optional) – How long to wait (in seconds) for the server to return a response.

interval ( str ) – Time frame

Note

Please see the Interval class for available intervals.如何使用TradingView回测数字货币交易策略

get_multiple_analysis() returns a dictionary with a format of .

Please use UPPERCASE letters when accessing the dictionary.

If there is no analysis for a certain symbol, Analysis will be replaced with a None . For example, BINANCE:DEXEUSDT does not have an analysis, but BINANCE:BTCUSDT has:如何使用TradingView回测数字货币交易策略

Proxy¶

Simply add the proxies parameter if you wish to utilize a proxy. It’s worth noting that a bad proxy could result in 如何使用TradingView回测数字货币交易策略 TradingView rejecting your request.

我这个电脑安装tradingview软件打不开,提示这个,?

我做了一个本地实现版的,现在一直在实际使用。该版本是以python搭建web构架,以 Tradingview 为核心金融量化分析平台。效果见上面视频。