Submit Search
Upload
程式交易的七堂課之一.ppt
•
Download as PPT, PDF
•
0 likes
•
27 views
max chen
Follow
program trading using XQ
Read less
Read more
Business
Report
Share
Report
Share
1 of 46
Download now
Recommended
How Bayesian inference works in the real world
How Bayesian inference works in the real world
max chen
Bayesian Dynamic Linear Models for Strategic Asset Allocation
Bayesian Dynamic Linear Models for Strategic Asset Allocation
max chen
Tail_risk_hedging_without_the_drag_Long.pdf
Tail_risk_hedging_without_the_drag_Long.pdf
max chen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Recommended
How Bayesian inference works in the real world
How Bayesian inference works in the real world
max chen
Bayesian Dynamic Linear Models for Strategic Asset Allocation
Bayesian Dynamic Linear Models for Strategic Asset Allocation
max chen
Tail_risk_hedging_without_the_drag_Long.pdf
Tail_risk_hedging_without_the_drag_Long.pdf
max chen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
More Related Content
Featured
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Featured
(20)
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
程式交易的七堂課之一.ppt
1.
程式交易七堂課之第一堂 ~寫出第一個電腦看得懂的腳本
2.
3.
有了戰管中心,可以同時執行多個交易策略
4.
5.
Tradestation的easylanguage HTS的powerlanguage Muticharts XScript 一次學會四種程式交易語言平台
6.
當收盤收最高價時請通知我 If close=high ,Then
please let me know. Then retvalue1=1; Then ret=1;
7.
成交量大於2000張時請通知我 If volume >
2000 Then ret=1;
8.
如果今天價格漲超過2%,請通知我 If close >
close[1] *1.02 Then ret=1;
9.
前一日漲幅超過5%且收最高 (隔天開高的機率超過七成) If close >
close[1] *1.05 and close=high Then ret=1;
10.
連漲三天時,散戶不請自來 跑加權指數1000根,符合的80次,賺錢的41次 一共賺了668點
11.
If 9K[1]<9D[1] and
9K>9D Then ret=1; If rsi6 cross over rsi6 Then ret=1; 這樣寫可以嗎?
12.
13.
由上而下,由左而右
14.
電腦看得懂的指令包含那些?
15.
16.
回傳值
17.
日期的寫法
18.
時間的寫法 hhmmss
19.
數字運算子 相加 "+" 相減 "-" 相乘
"*" 相除"/" 等號"="
20.
關係運算子 大於> 等於= 小於< 大於等於>= 小於等於<= 不等於<>
21.
邏輯運算子and true and true=true true
and false= false false and true = false false and false = false
22.
23.
邏輯運算子OR true or true
= true true or false = true false or true = true false or false = false 價增或量增
24.
強勁上揚 一天漲超過5%或是兩天漲超過8%
25.
邏輯運算子 NOT not false=true not
true=false
26.
邏輯運算子 XOR True XOR
True 傳回False True XOR False 傳回True False XOR True 傳回True False XOR False 傳回False (Exclusive or) 互斥當兩數值相同為否,而數值不同時為真 如果價量背離請通知我
27.
標點符號
28.
29.
常數
30.
跳空上漲2%以上 Open>=high[1]*2/100
31.
忽略字
32.
選股 語法的輸出種類
33.
Retval If close>150 then ret=1; 如果股價突破150元請通知我
34.
畫出指標
35.
畫出成交值
36.
Print
37.
Print儲存的位置
38.
跑了光環1000根 合乎條件的有61根 合計賺了49.31% 前一日長紅收最高
39.
RaiseRunTimeError
40.
內困三日翻紅 If open[2]>close[2]*0.015 And close[1]>open[1]*0.005 And
close>open*0.01 And close>high[3] Then ret=1;
41.
回溯測試: 過去1000天這麼trade 一共賺1063.65點
42.
修正版內困三日翻紅
43.
跳空急跌加速趕底
44.
鎚子 1.大跌之後 2.帶長下影線的實體陽線,幾乎收最高 3.下影線的長度超過實體長度兩倍
45.
紅三兵 •最近三天都上漲 •三天的K線實體部份都要是紅色的, 也就是說三天的收盤價都高於開盤價 •實體紅棒的部份一天比一天長 那麼要讓電腦知道我們要找的是紅三兵的股票時,我們可 以列出三個敘述 close[2]> close[3] and
close[1]>close[2] and close>close[1] close[2]> open[2] and close[1]>open[1] and close>open close[2]-open[2]<close[1]-open[1] and close[1]-open[1]<close- open
46.
一紅包三黑 我們必須遵循以下幾個規則 1. 前三根K棒都是黑色的 2. 最後一根是長紅棒 3.
最後一根的收盤價比前三根的 高點還高 1. close[3]<open[3] and close[2]< open[2] and close[1]<open[1] 2. close>open 3. close> high[3]
Download now