Results 1 to 5 of 5
 3 Attachment(s)    

Thread: Managing number of orders in my EA

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    8

    Default Managing number of orders in my EA

    Hi Funyo! i have a problem with koding an expert. I added an option and with this option i can manage more than order (extern variable). EA has a signal when there is a cross moving average (Media_Prezzo and Media_Prezzo2). If i have a order the expert manages only a trade for bar. If the condition doesn't change(Max orders 2) the expert open a new trade according the condition: I want to avoid this situation and the EA has to enter a new position if a new signal is generated according the direction of the trade.

    Thanks
    Attached Files Attached Files

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

    Default

    Quote Originally Posted by veon87 View Post
    Hi Funyo! i have a problem with koding an expert. I added an option and with this option i can manage more than order (extern variable). EA has a signal when there is a cross moving average (Media_Prezzo and Media_Prezzo2). If i have a order the expert manages only a trade for bar. If the condition doesn't change(Max orders 2) the expert open a new trade according the condition: I want to avoid this situation and the EA has to enter a new position if a new signal is generated according the direction of the trade.

    Thanks
    Hi veon87,

    Code updated.
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    8

    Default

    Hi funyo,

    i want to modify my expert, but i'm not able...can you help me, please? i wanto to introduce a new money management of lots...i'll explain: the expert enters with an order, if there is a stop loss , the next order has to increase the lots of percentage(it's an external parameter) and so on if there is a loss, when the trade is successful, the expert enters normally, with standard money management, without this "recovering".

    Regards

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

    Default

    Quote Originally Posted by veon87 View Post
    Hi funyo,

    i want to modify my expert, but i'm not able...can you help me, please? i wanto to introduce a new money management of lots...i'll explain: the expert enters with an order, if there is a stop loss , the next order has to increase the lots of percentage(it's an external parameter) and so on if there is a loss, when the trade is successful, the expert enters normally, with standard money management, without this "recovering".

    Regards
    Hi veon87,

    Martingale option added.
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Aug 2009
    Posts
    8

    Default

    Thanks a lot Funyoo!

Similar Threads

  1. Managing Trade Settings
    By tsforex in forum Trading discussion
    Replies: 1
    Last Post: 02-17-2011, 23:25
  2. Managing an open trade
    By mili hal in forum Ideas for expert advisors
    Replies: 5
    Last Post: 03-01-2010, 19:54

Tags for this Thread

average, change, expert, moving average, signal, stop

Posting Permissions

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