[股票]定时监控监解析通达信股票预警信息

利用ahk的定时器,监控通达信预警输出,获得触发信号后,可以进一步用ahk来驱动交易软件填单下单,请关注后续sunwind发的【股票】标识的帖子。

在通达信软件里设置将预警输出到文件,可以用AutoHotkey定时监测,并解析预警相关信息。

[股票]定时监控监解析通达信股票预警信息

[股票]定时监控监解析通达信股票预警信息

#Persistent
#SingleInstance,Force
 
OnExit, StopWatching
WatchFile=F:\ahk炒股\预警.txt
SetTimer, Watch, 1000
Return
 
Watch:
FileGetTime,newTime,%WatchFile%
if (newTime>oldTime)
{
	oldTime:=newTime
	OutputDebug,%oldTime%-- %newTime%
	Loop, read, %WatchFile%
		last_line := A_LoopReadLine
	MsgBox, 4, ,最新的预警信息:%last_line%, 3
}
return
StopWatching:
SetTimer,Watch,off
ExitApp

给TA捐赠
共{{data.count}}人
人已捐赠
其他

std库——构建类似python的自带函数

2023-1-6 12:18:44

其他函数

重制版Numahk v3——亿级数据数秒算完

2023-1-6 17:08:12

2 条回复 A文章作者 M管理员
  1. AHK中文社区

  2. 未名游客给作者打赏了¥2
个人中心
购物车
优惠劵
有新私信 私信列表
搜索