在这一节,我们学习在如何从通达信金融终端中导出所有股票想要的指标数据。

步骤一:创建一个记事本文件,将以下代码复制到文件中。
[General]
SyntaxVersion=2
BeginHotkey=121
BeginHotkeyMod=0
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=123
StopHotkeyMod=0
RunOnce=1
EnableWindow=
MacroID=d12f149c-3ad4-447c-a5ad-8ff6d8b22239
Description=保存个股数据长期
Enable=1
AutoRun=0
[Repeat]
Type=0
Number=1
[SetupUI]
Type=2
QUI=
[Relative]
SetupOCXFile=
[Comment]

[Script]
'==========以下是按键精灵录制的内容==========
FOR AA=1 TO 3500
'按下PAGEDOWN换股
KeyDown "PageDown", 1
Delay 20
KeyUp "PageDown", 1
Delay 20
'选择日线
MoveTo 279, 31
Delay 20
LeftClick 1
Delay 20
'缩小K线,以便看到更大的范围
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
KeyDown "Down", 1
KeyUp "Down", 1
Delay 100
'移动到系统
MoveTo 43, 7
Delay 100
LeftClick 1
Delay 10
'移动到数据导出,打开导出窗口
MoveTo 69, 76
Delay 50
LeftDown 1
Delay 50
LeftClick 1
Delay 50
LeftUp 1
Delay 50
MoveTo 809, 535
Delay 50
'保存数据
LeftClick 1
Delay 500
'打开取消
MoveTo 794, 488
Delay 100
LeftClick 1
Delay 100
NEXT
'==========以上是按键精灵录制的内容==========
步骤二:将文件名保存为“保存A个股数据长期.Q”(注意,扩展名是.Q) 步骤三:打开“按键精灵”-“我的脚本”-“自动备份”,在右边空白处右击,从弹出菜单中找到“导入脚本”enter image description here 然后使用导入脚本工具添加脚本。 enter image description here