Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  11 11 Attachment(s)    

Thread: ATR Stops MTF EA

  1. #1

    Default ATR Stops MTF EA

    Hi Funyoo,

    Please write an ea based on ATR Stops and ATR STops MTF indicators. See attached files.
    Trading strategies:
    Symbol is on M5 and ATR stops MTF is on 60 min. ATRstopsMTF shows the direction long or short. ATRstops on 5 min define the entry point in the direction of ATRstopsMTF. So if on 60 min we have long than we entry only long position on 5 min indicator. We can close position on reverse signal on 5min or we can also use the ATRstops on 5 min as a stop loss or trailing stop loss. For rapid movement of the price we can close lets say 5 pips under ATR stops so we do not have to wait five minutes to close the bar.
    I hope that is clear the description.

    Thank you
    Attached Files Attached Files

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

    Default

    Quote Originally Posted by daxc View Post
    Hi Funyoo,

    Please write an ea based on ATR Stops and ATR STops MTF indicators. See attached files.
    Trading strategies:
    Symbol is on M5 and ATR stops MTF is on 60 min. ATRstopsMTF shows the direction long or short. ATRstops on 5 min define the entry point in the direction of ATRstopsMTF. So if on 60 min we have long than we entry only long position on 5 min indicator. We can close position on reverse signal on 5min or we can also use the ATRstops on 5 min as a stop loss or trailing stop loss. For rapid movement of the price we can close lets say 5 pips under ATR stops so we do not have to wait five minutes to close the bar.
    I hope that is clear the description.

    Thank you
    Hi daxc,

    Here is the ATR Stops MTF EA.
    Attached Files Attached Files

  3. #3

    Default

    Thank you Funyoo. Preliminary tests show that is loosing a lot of entries. Will do some more tests.
    Thanks again

  4. #4

    Default

    Hi Funyoo,
    It misses a lot of entries and it doesn't close where it should. Please see graph and setting file. I can't spot the error. Please help
    Attached Images Attached Images ATR Stops MTF EA-epz9-5min-test-gif 
    Attached Files Attached Files

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

    Default

    Quote Originally Posted by daxc View Post
    Hi Funyoo,
    It misses a lot of entries and it doesn't close where it should. Please see graph and setting file. I can't spot the error. Please help
    Hi daxc,

    This indicator needs one bar of confirmation, you have to set shift on 1.

  6. #6

    Default

    it's the same with shift=1
    Attached Images Attached Images ATR Stops MTF EA-epz9-5min-shift1-gif 

  7. #7

    Default

    it looks that is closing the transaction based on atr MTF and not on smaller time frame.
    Transaction must be on the smaller time frame in the direction of the MTF.

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

    Default

    Quote Originally Posted by daxc View Post
    it looks that is closing the transaction based on atr MTF and not on smaller time frame.
    Transaction must be on the smaller time frame in the direction of the MTF.
    Hi daxc,

    closeonsignal option added.
    Attached Files Attached Files

  9. #9

    Default

    Hi Funyoo,

    Can you make a simple modification?
    Almost every time on the signal the price is retraced. After we have the signal on small atr we buy only when the priced is within a few pips of the small atr signal. In that way we enter the position as close to the atr as possible.

    Thank you

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

    Default

    Quote Originally Posted by daxc View Post
    Hi Funyoo,

    Can you make a simple modification?
    Almost every time on the signal the price is retraced. After we have the signal on small atr we buy only when the priced is within a few pips of the small atr signal. In that way we enter the position as close to the atr as possible.

    Thank you
    Hi daxc,

    Ok, waitforpullback option added.
    Attached Files Attached Files

Similar Threads

  1. Internal trailing stops and break evens
    By snkpool in forum MQL programming
    Replies: 0
    Last Post: 11-14-2009, 21:33
  2. EA Stops Running
    By abundance in forum MQL programming
    Replies: 1
    Last Post: 09-24-2009, 10:16

Tags for this Thread

atr, breakevengain, broker, closing, funyoo, indicator, indicators, magic, pips, signal, simple, stoploss, strategies, system, test, thank you, time, trading, trailing, trailingstart, trailingstep, trailingstop

Posting Permissions

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