• 产品
  • 社区
  • 市场
  • 经纪商
  • 更多
开始
  • 社区
  • /指标和策略
  • /Pine实用程序

Pine实用程序

Backtest EngineThis is a simple backtest engine for your trading strategies. The idea behind this script is to make testing new strategies as easy as possible. Parameters such as take profit/stop loss and time period are built into the script and are customisable by the user via the settings interface. The only coding is to set the entry and exit conditions. Users need not touch any code beyond line 30. For this post, I have used a 50/200 SMA crossover to demonstrate the ease of use for this script. The features of this script include: Backtest period start Number of days until backtest period end Take profit and stop loss % (via settings) Programmable long and short entry/exit Anti duplicate system (for entry conditions that are continuously satisfied, the engine will only make 1 trade until the is exit condition is satisfied). DISCLAIMER: The strategy in this post is only a placeholder. The TP/SL levels are set to showcase the functionality of the engine and are in no means optimal settings. Hope this helps! Feel free to ask any questions about the engine and happy coding!
Pine Script®策略
由panpanXBT提供
已更新
33
11223344
…999999

选择由ICE数据服务提供的市场数据。选择由FactSet提供的参考数据。版权所有 © 2025 FactSet Research Systems Inc. © 2025 TradingView, Inc.

不仅是产品
  • 超级图表
筛选器
  • 股票
  • ETFs
  • 债券
  • 加密货币
  • CEX对
  • DEX对
  • Pine
热图
  • 股票
  • ETFs
  • 加密货币
日历
  • 经济
  • 收益
  • 股利
更多产品
  • 收益率曲线
  • 期权
  • 新闻流
  • Pine Script®
应用程序
  • 移动版
  • 电脑版
社区
  • 社交网络
  • 爱心墙
  • 推荐朋友
  • 网站规则
  • 版主
观点
  • 交易
  • 教学
  • 编辑精选
Pine脚本
  • 指标和策略
  • 大师
  • 自由开发人员
工具和订阅
  • 功能特色
  • 价格
  • 市场数据
交易
  • 概览
  • 经纪商
特别优惠
  • CME集团期货
  • Eurex期货
  • 美国股票包
关于公司
  • 我们是谁
  • 太空任务
  • 博客
  • 职涯
  • 媒体工具包
商品
  • TradingView商店
  • 交易者塔罗牌
  • C63 TradeTime
政策和安全
  • 使用条款
  • 免责声明
  • 隐私政策
  • Cookies政策
  • 无障碍声明
  • 安全提示
  • 漏洞赏金计划
  • 状态页面
商业解决方案
  • 插件
  • 图表库
  • Lightweight Charts™
  • 高级图表
  • 交易平台
成长机会
  • 广告
  • 经纪业务集成
  • 合作伙伴计划
  • 教育计划
社区
  • 社交网络
  • 爱心墙
  • 推荐朋友
  • 网站规则
  • 版主
观点
  • 交易
  • 教学
  • 编辑精选
Pine脚本
  • 指标和策略
  • 大师
  • 自由开发人员
商业解决方案
  • 插件
  • 图表库
  • Lightweight Charts™
  • 高级图表
  • 交易平台
成长机会
  • 广告
  • 经纪业务集成
  • 合作伙伴计划
  • 教育计划
Look FirstLook First