还在为复杂的代码发愁?交易思路无法自动化?别担心!国金证券带你解锁量化新世界!
量化软件ptrade,专为新手量身打造! ️
一、ptrade优势多多! ✅
- 服务器托管,极速交易:无需24小时开机,不怕断电断网,交易速度飞快!
- 门槛低,上手快:简洁易用的Python接口,内置详细API,零基础也能边学边练!
- 数据丰富且稳定:日线、分钟、tick级别数据一应俱全,Level 2行情实时获取!
二、ptrade界面详解
- 行情模块:沪深股市、四大期货市场行情尽在掌握!
- 交易模块:股票买卖、基金申赎、新股申购,操作便捷!
- 工具模块:网格交易、追涨停、盘口扫单...多种高级工具任你选!️
- 量化模块:策略搭建、回测、实盘交易,一站式量化服务!
简单策略示例:
def initialize(context):
g.security = '*****.SS'
set_universe(g.security)
def handle_data(context, data):
security = g.security
sid = g.security
df = get_history(5, '1d', 'close', security, fq=None, include=False)
average_price = round(df['close'][-5:].mean(), 3)
current_price = data[sid]['close']
cash = context.portfolio.cash
if current_price > 1.01*average_price:
order_value(g.security, cash)
log.info('buy %s' % g.security)
elif current_price < average_price and get_position(security).amount > 0:
order_target(g.security, 0)
log.info('sell %s' % g.security)
三、如何开通ptrade?
- 开户入金10万
- 线上申请,2个工作日搞定
- 提供测试账号和资料
- 开通成功,邮件发送下载地址
VIP福利抢先知!
- 惊喜佣金
- 完整教程
- 量化讨论群
- 专业问题解答
- 安装使用教程
- 极速柜台
- 服务器托管模式
想开启你的量化之旅? 点击加我立即获取免费开通路径!

温馨提示:投资有风险,选择需谨慎。
其他人追问
华泰证券经理 -股票
帮助10万+人 | 好评4.1万+
联系TA
在线
国泰海通证券经理 -股票
帮助9.3万+人 | 好评3万+
联系TA
中信证券经理 -股票
帮助10万+人 | 好评3.1万+
联系TA











问一问
分享该文章
1637

+微信
电话
公网安备:11010802032515号 ICP备案:京ICP备18019099号-3