量化交易系统

MT4-Peak Reversal MACD Scalp

  • 型号:
Main Image

Not so effective so use at your own risk, but posted here for your own use. I t is built for scalping but on average takes 1 trade per every tenth day based on my backtests so far.

---

Some example settings for starting balance=$2000 with leverage 1:100 with pictures (backtest for 2019 to 2020 year):

(1) GBPJPY - M15 - TP_Min=90 ; TP_Max=500 ; SL_Min=100 ; SL_Max=850 ; Spread=20 ; Lots=0.1 ;

(2) XAUUSD - M15 - TP_Min=60 ; TP_Max=500 ; SL_Min=400 ; SL_Max=1250 ; Spread=10 ; MACD_SignalSet=true ; MACD_Threshold=2 ; Lots=0.1 ;

NOTE: if have smaller or larger starting balance can change Lot size accordingly, for example, if $200 then Lots=0.01


Scalper: can do multiple trades per symbol; might do hedging

(1) Enter in Market: Tries to detect reversals in MACD, i.e. something like BUY if MACD goes down and SELL if MACD goes up.

(2) Protection: Variable stoploss based on envelope levels.

(3) Exit from Market: If profitable and opposite condition for (1).


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 MA (recommend: 80)
MA_Period
(recommend: Simple)
MA_Type
Fast period for MACD (recommend: 12) MACD_FastPeriod
Slow period for MACD (recommend: 26) MACD_SlowPeriod
Signal period for MACD (recommend: 9) MACD_SignalPeriod
Use the signal on MACD ? (recommend: true) MACD_SignalSet
Use MACD only if above or below this level (recommend: 2) MACD_Threshold


Money Management:

Max drawdown percent (40 is an ok value) max_percent_dd
Start balance (used for auto-scaling lot size) start_margin
Lot risk scaling (set to 0 if fixed lots, will use Min lot size always) risk_gain
Min points takeprofit value TP_Min
Max points takeprofit value TP_Max
Min points stoploss value SL_Min
Max points stoploss value SL_Max
Min lot size per trade Lots
Max lot size per trade Max_Lots
Max allowed spread for entering into trade Spread