Page 2 of 13 FirstFirst 123412 ... LastLast
Results 11 to 20 of 123
  45 45 Attachment(s)    

Thread: Parabolic SAR EA

  1. #11
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    what would be useful is a condition to only buy up sar signal if above an ma and only sell down sar signal below ma.
    That's exactly what the ma filter does.

  2. #12

    Default

    hi


    maybe use a 3sma filter?

    if ALL 3 sma in order e.g for uptrend if 30sma is over 50sma which is over 100sma then buy 1 next up sar signal. opposite for downtrend ie if 30 is under 50 which is under 100 sell 1 next sell sar.

    if 3 sma not in order no sar trade. 1 trade open only so need close of any existing trade before new trade. wait for first signal. Use one sar. if stopped out or tp then wait for next sar condition. ie no automatic open of new trade.



    maybe also usual options like add positions, time filter etc

    logic is sar is a trending signal so needs a strong trend filter. 3 sma in order signal should help keep it out of trades in ranges ie when 3 sma not in order.

  3. #13
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    hi


    maybe use a 3sma filter?

    if ALL 3 sma in order e.g for uptrend if 30sma is over 50sma which is over 100sma then buy 1 next up sar signal. opposite for downtrend ie if 30 is under 50 which is under 100 sell 1 next sell sar.

    if 3 sma not in order no sar trade. 1 trade open only so need close of any existing trade before new trade. wait for first signal. Use one sar. if stopped out or tp then wait for next sar condition. ie no automatic open of new trade.



    maybe also usual options like add positions, time filter etc

    logic is sar is a trending signal so needs a strong trend filter. 3 sma in order signal should help keep it out of trades in ranges ie when 3 sma not in order.


    Interesting idea.

    Here is the EA. I have added these options :

    Code:
    extern bool EnterOnlyAtSarCross=false;
    extern bool EnterOnlyAtSMACross=false;
    Attached Files Attached Files

  4. #14
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Parabolic SAR and 3 SMA EA.

    EU H1. On one year.

    Default with Lots 0.01 and AddPositions = true.

    Total net profit : 81.44%
    RDD : 40.96%
    Attached Images Attached Images Parabolic SAR EA-strategytester-parabolic-sar-and-3-sma-ea-default-eu-h1-add-pos-gif 
    Attached Files Attached Files

  5. #15
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Parabolic SAR and 3 SMA EA.

    EU H1. On one year.

    Default with EnterOnlyAtSarCross = true and AddPositions = true.

    Total net profit : 91.31%
    RDD : 60.53%
    Attached Images Attached Images Parabolic SAR EA-strategytester-parabolic-sar-and-3-sma-ea-default-eu-h1-add-pos-sarcross-gif 

  6. #16
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Parabolic SAR and 3 SMA EA.

    EU H1. On one year.

    Default with EnterOnlyAtSMACross = true and AddPositions = true.

    Total net profit : 27.22%
    RDD : 28.01%
    Attached Images Attached Images Parabolic SAR EA-strategytester-parabolic-sar-and-3-sma-ea-default-eu-h1-add-pos-smacross-gif 
    Attached Files Attached Files

  7. #17
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Parabolic SAR and 3 SMA EA.

    EU H1. On one year.

    Default with EnterOnlyAtSARCross = true, EnterOnlyAtSMACross = true, MM = true, Risk = 5, StopLoss = 220, TakeProfit = 140, and AddPositions = true.

    Total net profit : 93.38%
    RDD : 28.89%
    Attached Images Attached Images Parabolic SAR EA-strategytester-parabolic-sar-and-3-sma-ea-sarsmacross-mm-gif 
    Attached Files Attached Files

  8. #18

    Default

    thanks.

    maybe other options

    rather than add positions every new bar maybe if add positions only if new sar signal in direction of 3 sma trend?

    maybe exit all orders at price cross of slowest sma?

  9. #19
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by automatic View Post
    thanks.

    maybe other options

    rather than add positions every new bar maybe if add positions only if new sar signal in direction of 3 sma trend?

    maybe exit all orders at price cross of slowest sma?
    Here it is.
    Attached Files Attached Files

  10. #20

    Default

    in the parameters

    does one of the 'enter at sarcross' or 'enter at smacross' need to be true?

    what would happen if both are false? no orders opened?

Similar Threads

  1. Parabolic SAR EA
    By mehoolsheth in forum Expert advisors backtesting
    Replies: 1
    Last Post: 03-18-2011, 14:16
  2. SAR Parabolic Indicator
    By tattoo-angel in forum Indicators
    Replies: 2
    Last Post: 03-07-2011, 10:53
  3. FT_Scalp Parabolic MMR
    By Chilibowl in forum Expert advisors backtesting
    Replies: 12
    Last Post: 09-13-2010, 23:13
  4. Parabolic question
    By forexpop in forum MQL programming
    Replies: 2
    Last Post: 05-08-2009, 10:14
  5. FT_Scalp Parabolic
    By funyoo in forum Expert advisors live statements
    Replies: 6
    Last Post: 03-03-2009, 22:17

Tags for this Thread

100, 2011, advisor, automatic, average, backtest, backtesting, beginner, breakeven, candle, change, closing, coding, color, copy, custom indicator, demo, eas, elite, eur, eur/usd, eurusd, ex4, expert, expert advisor, experts, forex, free, gbpusd, guide, hedge, home, indicator, indicators, live, macd, magic, magic number, main, manual, manual trading, manual trading system, martingale, metatrader, moving average, mq4, mql, mt4, offer, online, oscillator, osma, parabolic sar, profit, profit factor, profitable, programming, real, renko, repaint, request, robot, rsi, sells, signal, signals, simple, slippage, sma, stop, stoploss, strategy, support, system, test, thank you, time, timefilter, tool, trading, trading system, trailing, trailingstep, trailingstop, trend, usd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •