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

Thread: Hedge order

  1. #1

    Default Hedge order

    Hi funyoo,

    A little request if you have time, no rush. Could you please code a simple indicator or EA with ever one you think will surfice. Basically I want to use it for manual trading.

    The idea is........when I open a manual trade buy or sell I want the indicator/Ea to open an opposite order hence hedging my order. If possible open an opposite order on the same price.

    The indicator/EA will always place an opposite order as long as I keep opening a manual order regardless, plus magic number should be added to be used with other pairs.

    I have manual strategy in mind and would like to test and see how this goes. Thanks for your help.

    Clay.

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

    Default

    Quote Originally Posted by claypot View Post
    Hi funyoo,

    A little request if you have time, no rush. Could you please code a simple indicator or EA with ever one you think will surfice. Basically I want to use it for manual trading.

    The idea is........when I open a manual trade buy or sell I want the indicator/Ea to open an opposite order hence hedging my order. If possible open an opposite order on the same price.

    The indicator/EA will always place an opposite order as long as I keep opening a manual order regardless, plus magic number should be added to be used with other pairs.

    I have manual strategy in mind and would like to test and see how this goes. Thanks for your help.

    Clay.
    Hi claypot,

    Here it is. It is an EA.
    Attached Files Attached Files

  3. #3

    Default

    Hi funyoo,

    Thanks it hedges the first manual order which is excellent but when ever I close one of the two open orders the EA opens another hedge order. The EA should not open any order when I close an order(s) only open order(s) when I manually exicuted.

    The idea is only open a hedge order when a manual order is exicuted. So if I manually close an existing open order(s), do not open an hedge unless I open another order manually then the EA will open a hedge order.

    I think for this to work, magic numbers have to be coded becuse of multiple hedge orders. As mention before the EA's main aim is to hedge one to many manual exicuted orders. Hope this make sense, thanks again.




    Cheers.

    Quote Originally Posted by funyoo View Post
    Hi claypot,

    Here it is. It is an EA.

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

    Default EA is not working

    Dears,
    I had try this EA but not working. why?
    I let it running but no any position open. And tried to open 1 position manually also not working(no hedge position open). Can you check it why was that? And would you please add time filter on that EA? Thanks.

    Regard,
    axadnan

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

    Default

    Quote Originally Posted by axadnan View Post
    Dears,
    I had try this EA but not working. why?
    I let it running but no any position open. And tried to open 1 position manually also not working(no hedge position open). Can you check it why was that? And would you please add time filter on that EA? Thanks.

    Regard,
    axadnan
    Hi axadnan,

    You have first to enter an order to get activity from this code.

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Posts
    13

    Default Not succed

    Dears.
    I had tried as you said but not working. How long it will take to open hedge position? Can you make an EA instantly open BUY and SELL at the same time with time filter?

    Best regard,
    axadnan

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

    Default

    Quote Originally Posted by axadnan View Post
    Dears.
    I had tried as you said but not working. How long it will take to open hedge position? Can you make an EA instantly open BUY and SELL at the same time with time filter?

    Best regard,
    axadnan
    Hi axadnan,

    The Hedge Order Command enhanced.
    Attached Files Attached Files

  8. #8

    Default

    Hi all,
    I did script this ea
    I want to use manuel and

    when open main position and then manuel script if it is necessary.
    but opposite position SL have to be TP of main order
    for example,
    eurusd buy position SL,TP
    hedge order sell SL1,TP1 (when I do it if it is necessary)
    now,
    SL1=TP
    TP1=SL this like
    how can I do this
    thankssss

  9. #9

    Default

    Funyoo,

    On your Hedge Order Command EA would u please add a option for EURUSD to hedge against USDCHF, I would like to put the EA on EURUSD chart; whenever I manually execute a sell on eurusd the EA would immediately open buy on usdchf, and if I manually open buy on eurusd, the EA would immediately sell usdchf. please leave the lots input perimeter as is.
    Thanks

    also intended to use with Buy Limit and Sell Limit on daily pivot lines.
    Last edited by getting; 06-21-2010 at 16:16.

  10. #10
    shirley.williams
    Guest

    Default

    Quote Originally Posted by funyoo View Post
    Hi axadnan,

    The Hedge Order Command enhanced.
    Thanks funyoo. Works perfectly for me............

Similar Threads

  1. Replies: 2
    Last Post: 08-04-2014, 19:03
  2. Open oppsite order if order don't take profit
    By luisneves in forum MQL programming
    Replies: 0
    Last Post: 12-06-2012, 17:09
  3. Code needed to track ea in order to hedge
    By snkpool in forum MQL programming
    Replies: 0
    Last Post: 09-28-2010, 03:57
  4. Hedge order (EURUSD/USDCHF)
    By getting in forum Ideas for expert advisors
    Replies: 1
    Last Post: 06-21-2010, 16:18
  5. Replies: 1
    Last Post: 12-27-2009, 17:48

Tags for this Thread

eurusd, funyoo, hedge, hedging, indicator, magic, magic number, main, manual, manual trading, mql, pairs, pivot, profit, programming, request, scalping, simple, strategy, test, 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
  •