量化交易系统

MT4-Triple Moving Average Trend

  • 型号:
Main Image

Free trend trader EA posted here for your own use, use with caution. EURUSD on 1H timeframe shown at bottom.


Trend trader: only does one active trade per symbol; no hedge and should be FIFO.

(1) Enter in Market: Uses three moving averages. BUY once when condition for MA_1 > MA_2 > MA_3 and SELL if MA_1 < MA_2 < MA_3

(2) Protection: Fixed stoploss and optional stoploss.

(3) Exit from Market: If it was a BUY and new signal is SELL, then close. Same for if it was a SELL and new signal is BUY, then close.


Limit Time Range:

No more trades before this hour (if want trading all day, then set StartHour=EndHour) StartHour
No more trades after this hour EndHour
Start trading day StartDay
End trading day EndDay
Close trades at end of trading day? exit_end_day
If close at end of trading day, then what hour? ExitHour


Main Trading Parameters:

unique magic number for managing trend trades MAGIC
Period value for "fastest" MA (recommend: 9) MA_1_Period
(recommend: Exponential) MA_1_Type
Period value for "medium" MA (recommend: 7)
MA_2_Period
(recommend: Simple)
MA_2_Type
Period value for "slowest" MA (recommend: 80)
MA_3_Period
(recommend: Exponential)
MA_3_Type


Money Management:

Max drawdown percent (40 is an ok value) max_percent_dd
Max points takeprofit value TP
Max points stoploss value SL
Lot size per trade Lots
Max allowed spread for entering into trade Spread