Results 1 to 5 of 5
 0 Attachment(s)    

Thread: Stop trading when TP is hit

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    5

    Default Stop trading when TP is hit

    Hello funyoo,
    I want my EA to stop trading when TP is hit;can you share the code?Thanks.

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

    Default

    Quote Originally Posted by whyme View Post
    Hello funyoo,
    I want my EA to stop trading when TP is hit;can you share the code?Thanks.
    Hi whyme,

    It depends on how the code is built. What is your expert advisor ?

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    25

    Default

    Quote Originally Posted by whyme View Post
    Hello funyoo,
    I want my EA to stop trading when TP is hit;can you share the code?Thanks.
    Great idea! so, if your daily profittarget is hit, stop trading until 00:00? or weekly?

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    5

    Default

    Quote Originally Posted by funyoo View Post
    Hi whyme,

    It depends on how the code is built. What is your expert advisor ?
    I use ExpertAdvisorBuilder to build a lot of EAs.I don't know if you have
    generic code for them or not.I also need Time Filter for them.Thank for
    your time even if you can' help me.

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

    Default

    See here :

    - http://www.tradingsystemforex.com/mq...stop-loss.html

    - Max trade per bar

    Time Filter :

    In the conditions add :

    Code:
    Hour()>8 and Hour()<21
    8 and 21 are examples.

Similar Threads

  1. Please help to code EA for Buy Stop and Sell Stop
    By tiger628 in forum MQL programming
    Replies: 0
    Last Post: 03-27-2011, 05:18
  2. Entry Buy stop and stop loss
    By clevertrader in forum MQL programming
    Replies: 0
    Last Post: 11-09-2010, 16:05
  3. 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
  4. Stop trading
    By samirgham in forum Scripts and other tools
    Replies: 0
    Last Post: 10-01-2009, 18:50

Tags for this Thread

advisor, eas, expert, expert advisor, funyoo, mql, profit, programming, stop, time, trading

Posting Permissions

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