- 1、本文档共18页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
EA 源码
EA 源码#property copyright BETSAFE
#property link http://beam.to/betsafe
extern int MMType = 1;
extern bool UseClose = FALSE;
extern bool UseAdd = TRUE;
extern double LotExponent = 1.667;
extern double slip = 3.0;
extern double Lots = 0.1;
extern double LotsDigits = 2.0;
extern double TakeProfit = 10.0;
double g_pips_128 = 500.0;
double gd_136 = 10.0;
double gd_144 = 10.0;
extern double PipStep = 30.0;
extern int MaxTrades = 10;
extern bool UseEquityStop = FALSE;
extern double TotalEquityRisk = 20.0;
extern bool UseTrailingStop = FALSE;
extern bool UseTimeOut = FALSE;
extern double MaxTradeOpenHours = 48.0;
int g_magic_192 = 12324;
double g_price_196;
double gd_204;
double gd_unused_212;
double gd_unused_220;
double g_price_228;
double g_bid_236;
double g_ask_244;
double gd_252;
double gd_260;
double gd_276;
bool gi_284;
string gs_288 = Ilan1/4;
int g_time_296 = 0;
int gi_300;
int gi_304 = 0;
double gd_308;
int g_pos_316 = 0;
int gi_320;
double gd_324 = 0.0;
bool gi_332 = FALSE;
bool gi_336 = FALSE;
bool gi_340 = FALSE;
int gi_344;
bool gi_348 = FALSE;
int g_datetime_352 = 0;
int g_datetime_356 = 0;
double gd_360;
double gd_368;
int init() {
gd_276 = MarketInfo(Symbol(), MODE_SPREAD) * Point;
return (0);
}
int deinit() {
return (0);
}
int start() {
double l_ord_lots_8;
double l_ord_lots_16;
double l_iclose_24;
double l_iclose_32;
if (UseTrailingStop) TrailingAlls(gd_136, gd_144, g_price_228);
if (UseTimeOut) {
if (TimeCurrent() = gi_300) {
CloseThisSymbolAll();
Print(Closed All due to TimeOut);
}
}
if (g_time_296 == Time[0]) return (0);
g_time_296 = Time[0];
double ld_0 = CalculateProfit();
if (UseEquityStop) {
if (ld_0 0.0 MathAbs(ld_0) TotalEquityRisk / 100.0 * AccountEquityHigh()) {
CloseThisSymbolAll();
Print(Closed All due to Stop Out);
gi_348 = FALSE;
}
}
gi_320 = CountTrades();
if (gi_320 == 0) gi_284 = FALSE;
for (g_pos_316 = Order
文档评论(0)