顺水外汇EA交易网MT4

标题: 请教EA的问题 [打印本页]

作者: whyn    时间: 2018-1-11 21:49
标题: 请教EA的问题
牛版及各位高手,请教大家个EA的问题。
最近小弟在学习EA,还谈不上编程,至少想能看懂别人的思路,看得懂程序。
以下的这个EA,小弟有个问题,资金管理这块作者定义的止损,为什么要定义3个StopLevel?有什么意义? 一个都损了,另外2个设置还有啥用呢?
另外这个EA是针对4位的对吧?
谢谢!
//+---------------------------------------------------+
//|Money Management                                   |
//+---------------------------------------------------+
extern double StopLoss=250;           // Maximum pips willing to lose per position. 止损点数
extern bool UseTrailingStop=true;    //是否使用追踪止损
extern int TrailingStopType=3;        // Type 1 moves stop immediately, Type 2 waits til value of TS is reached 追踪止损 1 立即止损  2 移动止损
extern double TrailingStop=40;        // Change to whatever number of pips you wish to trail your position with. 追踪止损 点数
extern double TRStopLevel_1=20;       // Type 3  first level pip gain
extern double TrailingStop1=20;       // Move Stop to Breakeven
extern double TRStopLevel_2=30;       // Type 3 second level pip gain
extern double TrailingStop2=20;       // Move stop to lock is profit
extern double TRStopLevel_3=50;       // type 3 third level pip gain
extern double TrailingStop3=20;       // Move stop and trail from there
extern int TakeProfit=0;              // Maximum profit level achieved.  止羸点数
extern double Margincutoff=500;       // Expert will stop trading if equity level decreases to that level.
extern int Slippage=10;               // Possible fix for not getting closed
作者: admin    时间: 2018-1-11 22:11
他是不同条件下用不同的止损
BTW 以后问题请发在合适的板块
作者: 崛起    时间: 2018-1-11 23:36
这事灌水贴,w为了金币没办法啊
作者: 崛起    时间: 2018-1-12 00:07
这样的帖子怎么没人回呢
作者: 崛起    时间: 2018-1-12 01:34
路过帮顶你
作者: 我在塞伦盖蒂    时间: 2018-1-12 01:55
http://www.520fx.com/thread-38477-1-1.html
作者: ytpld    时间: 2018-1-12 02:37
世呓,呓卡
作者: ytpld    时间: 2018-1-12 03:55
什么东西啊啊,好用吗?
作者: ytpld    时间: 2018-1-12 04:51
我也是新手啊
作者: hxh200    时间: 2018-1-12 05:34

路过帮顶你
作者: 冰の木康    时间: 2018-1-12 06:36
我也是新手

作者: blueye    时间: 2018-1-12 08:04
学习学习!

作者: 123aa123    时间: 2018-1-12 09:21
实际效果如何
作者: 3616    时间: 2018-1-12 10:29
这事灌水贴,w为了金币没办法啊
作者: Q617058048    时间: 2018-1-12 12:08
。。。。。。。。。。。




欢迎光临 顺水外汇EA交易网MT4 (http://www.waterforex.com/) Powered by Discuz! X3.2