客服热线:18391752892

请教EA的问题

   日期:2019-01-12     浏览:157    
马上注册,结交更多好友,下载更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 牛版及各位高手,请教大家个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
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!


特别提示:本信息由相关企业自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。


0相关评论
相关行情
推荐行情
点击排行