+ Reply to Thread
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,455

    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
    K-B
    K-B is offline
    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,455

    Default

    See here :

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

    - http://www.tradingsystemforex.com/mq...e-per-bar.html

    Time Filter :

    In the conditions add :

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

+ Reply to Thread

Similar Threads

  1. Alarm for Sniper Stop
    By magidkaramy in forum Indicators
    Replies: 5
    Last Post: 02-24-2010, 21:38
  2. Add a trailing stop
    By funyoo in forum MQL programming
    Replies: 16
    Last Post: 03-10-2009, 18:11
  3. Add take profit and stop loss
    By funyoo in forum MQL programming
    Replies: 0
    Last Post: 09-23-2008, 10:32

Posting Permissions

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