An simple EA based sar indicator
一、EA原理
这个EA是基于SAR指标做交易的EA。当K线顶部出现SAR时做空或者平多单,K线底部出现SAR时做多或者平空单。Sar作为趋势性强的时候比较有用,他能明确告诉你什么时候进场什么时候离场。
具体看最下面的图片。
1、SAR是趋势性交易指标,但是EA并没有判断趋势能力,所以每天都需要你自行判断交易方向,在EA的设置中,常用界面选择only long或者only short。永远选择最强或者最弱的品种。
二、参数设置
MAGICMA,主要用来区分是EA下单还是你手动下单,如果设置为非0值,EA不会操作你自己下的单。EA下单并且只关闭EA下的单子,你手动也可以下单。两者互不影响。
Lot手数,如果你设置了这个值,那么交易的时候一次下单的手数就是这个值。最好根据你能承受的亏损金额来设置。
Lots是根据金额来设置手数,如果Lot设置0,那么Lots设置0.02就是表示每1000 dollar下0.02的手数。具体大小取决于你的余额。
TakProft,表示盈利多少个百分点后平仓。
AllowSarOpen表示是否允许EA自动下单,如果是false的,即使sar条件满足也不会自动下单。
AllowSarClose表示是否允许EA关闭已经下的单。
三、注意事项
如果在AllowClose=true且sar在k线上方时,你做多的单子会被EA立即平掉,反之sar在k线下方,你做空的单子会被立即平掉。如果K线比较大,出现sar open order后止损会比较大,需要等sar与K线接近后在open order。
四、总结
完全依靠ea自动赚钱是很难的。这个EA只是一个辅助工具,在你不能盯盘的时候,帮助你open或者close。个人建议将只在方向明确时启动ea。
使用ea的目的主要是为了控制贪婪,不要自己下单,也不要设置太大的lot。养成习惯赚钱只是水到渠成的事情。
My real account using sar strategy
https://www.mql5.com/en/signals/848258
Good job