Jump to content

marketmaker

Members
  • Posts

    42
  • Joined

  • Last visited

Posts posted by marketmaker

  1. Hello.

    Please help me to modify this simple EA.

    This is Hedge EA that open Buy GBP/USD and Sell EUR/USD the same time.

    When positions have profit , then EA close both.

    The problem is when Positions have big DD , EA not open another 2 positions , and wait too much for positions go to profit.

    I need when positions have DD 20 pips , then EA open new 2 positions like first 2 positions.And when new 2 positions have some profit , then EA close only last 2 positions , and still wait for another positions that in lost.

     

    For example:

    EA open Buy GBP/USD and Sell EUR/USD.

    If this 2 positions have DrowDown 20 pips , then EA open New 2 positions Buy GBP/USD and Sell EUR/USD.

    If second 2 Positions have again 20 pips DD , then EA open again New 2 positions ........etc......

    If Last 2 open positions have profit 20 pips , then EA have to close this 2 last positions.

    In Two words - EA have to open multiple positions Buy GBP/USD and Sell EUR/USD if last 2 positions have DD 20 pips , and close last 2 positions that have 20 pips profit.

     

    Thanks for help.

  2. Re: enybody programer to make simple code to MQL4 ?

     

    Common people..... , please help me to make this simple EA on MQL.

     

    EA just have a look how many buy lots , and sell lots is open .

    Then EA see what is difference between Buy and Sell lots , and open equalization lots.

    So , after EA open new position Buy lots have to be= Sell lots.

     

    For example: if we have 2 Lots Buy and 1 Lot Sell , then EA open 1 lot Buy.

    if we have 4 lots Buy and 1 lot Sell , then EA open 3 lots Sell.

    If we have 10 lots Sell and 3 lots Buy , then EA open 7 lots Buy.

    It's simple rule , just EA equalization lots.

     

    Thanks for help... :arrow:

  3. Re: enybody programer to make simple code to MQL4 ?

     

    As i said my English is poor , so i will try to explain again.

     

    For example:

    I have many BUY and SELL open positions with different lots.

    Let's say i have 15 open position BUY , 2 lots each one (30 lots), and 6 open positions SELL , 4 lots each one (24 lots).

    So , i have 30 lots BUY and 24 lots SELL.

    I just wont , when EA open new position , to see how many BUY and SELL lots we have , and if possible , then open equalization lots , if it's not possible EA will open normal lots like bifore.

    So , in this example EA will open 6 lots SELL , and we will have 30 lots BUY and 30 lots SELL.

     

    EA open positions with some rules , lets say we have 30 lots BUY open , and 24 lots SELL open.

    If EA have to open BUY position, then EA can't equalization lots , bicouse BUY lots is more that SELL lots , so EA will open normal lots like bifore(2 lots), but if EA have to open SELL position , EA have to open 6 lots for equalization lots , and then we will have 30 lots BUY and 30 lots SELL.

  4. Re: enybody programer to make simple code to MQL4 ?

     

    Hello William.

    Excuse me for my poor english.

    Please help me to code this to EA.

    For example :

    I have 5 BUY open positions 3 lot each(15 lots) , and have 3 SELL open positions , 4 lots each(12 lots).

    So , i have 15 lots BUY , and 12 lots SELL.

    I wont when EA open new SELL position , BUY lots = SELL lots , so new position will be SELL 3 lots.

    I mean , every time when EA open new position ,to see how many BUY and SELL open lots we have , and make ever SELL lots=BUY lots , or BUY lots=SELL lots.

    Thank you for help.

    :shand:

    P.S. I no need to make new EA , just tell me how to code this.

×
×
  • Create New...