找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
首页论坛EAHub 外汇论坛
查看: 0|回复: 0

【海龟交易系统 EA】供学习源码

[复制链接]

6923

主题

54

回帖

4871

积分

管理员

积分
4871
发表于 2026-8-16 00:58:59 | 显示全部楼层 |阅读模式
海龟交易系统 EA






部分源码:

#property copyright "Copyright ?2006, Mikhail Veneracion"#property link      ""

extern double         Lots                 = 0.1;   // Assign Fixed Lot Size to be traded,AutoLotSize must be false

extern int         MaxUnits             = 3,     //Maximum units to trade per Currency Pair         MagicNumber          = 11282,         EntryLookBack        = 55,    //Bars to lookback in calculating breakout prices         ExitLookBack         = 20,    //Bars to lookback in calculating exit points         ATRPeriod            = 20;extern double                  SLMultiple           = 2.5,   //Multiply ATR by this to calculate StopLoss         ReEntryMultiple      = 0.5;   //Multiple ATR by this to calculate Re Entry Pointextern bool         ATRBreakEven         = false;  //if set to true SL will be moved to break even levelextern double                  BreakEvenMultiple    = 2.5;extern bool         LockProfit           = true;extern double         PipLockinStart       = 50,   //$ amount to start lock in         LockinPercent        = 30;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|EAHub外汇论坛

GMT+8, 2026-8-25 10:38 , Processed in 0.103473 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表