CMoney_Jeffery_Hsiao
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# TradingView ## 資料 美、台、英、日、印、中、澳股等 ## [費用](https://tw.tradingview.com/pricing/) 免費或訂閱 ## 功能 * 策略 是用Pine腳本語言編寫的特定腳本,能夠發送、修改、執行和取消買賣單,並可以在圖表上模擬真實交易。 * 回測 (backtesting) 根據歷史數據以重塑策略的過程,檢驗策略的過往績效。 * 前測 (forwardtesting) 圖表刷新數據時使用即時數據測試策略。 透過[策略]同步建立 回測及前測 並會標示執行的訂單於圖示上 (上述取自:https://tw.tradingview.com/support/solutions/43000562362/) ## 回測 ### 使用方法 * https://quantpass.org/strategy-and-backtesting/ * https://www.oanda.com/bvi-ft/lab-education/tradingview/15338/ 步驟一:進入策略測試器 打開 TradingView:首先,登錄您的 TradingView 帳戶,並打開您想要進行回測的圖表。 選擇策略測試器:在圖表下方,找到並點擊【策略測試器】選項卡。這將打開策略測試器面板。 步驟二:選擇或創建策略 選擇內建策略:TradingView 提供多種內建策略,您可以從【指標與策略】菜單中選擇一個適合您的策略。 創建自定義策略:如果您有自己的交易策略,可以使用 Pine Script 創建。點擊【指標與策略】->【Pine 編輯器】,然後撰寫您的策略代碼。完成後,點擊【添加到圖表】將策略應用到圖表上。 步驟三:設置回測參數 選擇時間範圍:在策略測試器面板中,設置回測的時間範圍。您可以選擇特定的日期範圍或使用預設的時間段。 設置策略參數:根據您的策略需求,設置相關參數,如進場和出場條件、止損和止盈點位等。 步驟四:運行回測 運行回測:設置完成後,點擊【運行】按鈕,策略測試器將開始在選定的時間範圍內運行回測。 查看結果:回測完成後,您可以在策略測試器面板中查看回測結果,包括總收益、最大回撤、勝率等關鍵指標。 步驟五:分析回測結果 績效報告:策略測試器會生成詳細的績效報告,您可以查看每筆交易的詳細信息,包括進場和出場時間、價格、盈虧等。 圖表分析:回測結果也會在圖表上以標記的形式顯示,您可以直觀地看到每筆交易的進場和出場點位。 步驟六:優化策略 調整參數:根據回測結果,調整策略參數以優化績效。您可以反覆運行回測,直到找到最佳參數組合。 重新回測:每次調整參數後,重新運行回測,並比較不同參數組合的績效,以確定最優策略。 ## 優點: * 用戶友好:界面直觀,易於使用,適合初學者和專業交易者。 * 社交功能:支持策略分享和社交交易,方便學習和借鑒他人的策略。 * 多市場支持:支持股票、外匯、加密貨幣等多種市場。 ## 缺點: * 高級功能需付費:一些高級功能和數據需要訂閱付費版本。 * 策略編寫限制:策略編寫語言(Pine Script)相對簡單,對於複雜策略可能不夠靈活。 # 如何在TradingView中進行回測設定和使用? 3. 編寫或選擇策略 使用內建策略:在圖表上方的工具欄中,點擊「指標」圖標,然後選擇「策略」選項。你可以從內建的策略中選擇一個適合你的需求。 編寫自定義策略:如果你有自己的策略,可以使用Pine Script編寫。點擊「Pine Editor」來打開編輯器,然後輸入你的策略代碼。 ``` //@version=5 strategy("My Strategy", overlay=true) if (crossover(sma(close, 14), sma(close, 28))) strategy.entry("Buy", strategy.long) if (crossunder(sma(close, 14), sma(close, 28))) strategy.close("Buy") ``` 4. 應用策略到圖表 在Pine Editor中編寫或選擇策略後,點擊「添加到圖表」按鈕,策略將被應用到當前圖表。 5. 設定回測參數 點擊圖表上的策略名稱,然後選擇「設定」。 在彈出的窗口中,你可以設置策略的參數,如初始資金、手數、止損和止盈等。 6. 使用回測功能 點擊圖表底部的「策略測試器」選項卡。 在策略測試器中,你可以查看策略的回測結果,包括收益曲線、交易次數、最大回撤等。 7. 分析回測結果 收益曲線:查看策略在回測期間的收益變化。 績效指標:包括總收益、年化收益、最大回撤、夏普比率等。 交易明細:查看每筆交易的詳細信息,包括進場和出場時間、價格、盈虧等。 8. 優化策略 根據回測結果,調整策略參數以提高績效。 你可以使用策略測試器中的「優化」功能來自動調整參數,找到最佳設置。 9. 深度回測(可選) 如果你是高級用戶,可以使用TradingView的深度回測功能,這需要訂閱高級版本。 深度回測允許你在更精細的時間範圍內進行回測,獲得更準確的結果。 總結 在TradingView中進行回測設定和使用相對簡單,但需要一定的策略編寫和分析能力。通過上述步驟,你可以有效地測試和優化你的交易策略,從而提高實際交易中的成功率。

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully