Results 1 to 5 of 5
 2 Attachment(s)    

Thread: Why trailing stop doesn't work?

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default Why trailing stop doesn't work?

    Hi
    I wrote simple EA, and it seems to work good but i've got a problem with the trailing stop. I'm pretty sure that the trailing stop code is correct, cause it works well on the other ea. So i don't know what is going on...
    I'll be very grateful for any help...
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    May 2009
    Location
    UK, London
    Posts
    5

    Default

    Here you have a problem:
    int i;
    for(i=OrdersTotal()-1; i>=0; i--)
    {
    {
    NoActiveTrades = false;
    }

    return(NoActiveTrades);
    }
    When trade opened, expert returns without reaching Trailing function at
    return(NoActiveTrades);
    You don't need that line I think.

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default

    hey that's it! I almost lost my hope. I don't know how to thank you

  4. #4
    Junior Member
    Join Date
    May 2009
    Location
    UK, London
    Posts
    5

    Default

    You are welcome
    Rafal
    mqlservice.co.uk

  5. #5

    Default have same problem

    Quote Originally Posted by marynarz15 View Post
    You are welcome
    can you help me and see why this ea
    dont want to trail please
    Attached Files Attached Files

Similar Threads

  1. Trailing stop and Trailing profit
    By Luudt in forum MQL programming
    Replies: 0
    Last Post: 02-15-2016, 21:00
  2. Htaccess doesn't work with Ubuntu, mod_rewrite issue
    By fxtester in forum General discussion
    Replies: 0
    Last Post: 02-03-2015, 21:44
  3. This EA doesn't work on IBFX five digit
    By 45weeks in forum Ideas for expert advisors
    Replies: 1
    Last Post: 09-01-2010, 15:43
  4. Waddah Attar Win EA - with Trailing Stop & Stop Loss
    By dlhc in forum Scripts and other tools
    Replies: 0
    Last Post: 03-09-2010, 12:33
  5. EA Trailing Stop
    By andrewte in forum MQL programming
    Replies: 1
    Last Post: 06-15-2009, 20:22

Tags for this Thread

expert, how to, simple, stop, thank you, trailing

Posting Permissions

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