acttianshi 发表于 2011-11-8 17:09:48

请教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 3first 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

就是NB 发表于 2012-11-27 09:37:29

他是不同条件下用不同的止损
BTW 以后问题请发在合适的板块

owilq 发表于 2014-11-6 01:18:43

下了的确不错

福尔摩斯 发表于 2014-11-20 23:54:05

看看吧,谢谢分享

zac 发表于 2015-1-8 23:22:58

围观中~~~

爱如潮水 发表于 2015-2-24 09:47:34

看看是什么东西啊

细数你给的痛 发表于 2015-2-24 18:05:01

没有使用说明书

hgc139 发表于 2016-8-3 17:07:32

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

爱情小笨瓜 发表于 2020-2-23 15:33:42

谢谢楼主,共同发展

晕了我呀 发表于 2020-6-14 22:26:15

没看完~~~~~~ 先顶,好同志
页: [1] 2 3
查看完整版本: 请教EA的问题