天驭学院 · 教学材料 · MQL5 EA Programming Intro
Text walkthrough
OnTick 交易逻辑
A self-paced text walkthrough, without video or audio. See the article below for worked examples and materials.
Course Notes
In "MQL5 EA Programming Intro" → "EA 逻辑开发", this lesson "OnTick 交易逻辑" builds knowledge you can apply immediately.
OnTick可能在一根bar内被多次触发。若规则每个已收盘bar只评估一次,需要新bar守卫;仍须处理重启、数据缺失和重复信号。 保存最近已处理bar时间→新bar时读取上根→检查数据→生成只读信号→写barID与版本,不接实际订单。 本课作业:同一bar有50个tick,配套日志策略应评估几次?重启后还要防哪种重复?
These points align with the video walkthrough—take notes as you watch.
After studying, complete the companion practice lesson to move from understanding to doing.
Key Takeaways
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。