Results 1 to 2 of 2
 1 Attachment(s)    

Thread: mGRID EA

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008

    Default mGRID EA

    Expert advisor : 100% Win Math Grid Ea
    Settings : default

    EU M1.

    Total Net Profit : -82.05%
    RDD : 90.25%
    Attached Images Attached Images mGRID EA-08-10-15-mgridea-eu-m1-default-gif 

  2. #2
    Junior Member
    Join Date
    Mar 2011

    Question Can someone change codes for adding new target?

    I want to change some commands in the original Ea. Unfortunately I am not a programmer and can not encode it. The main thing that I want is to coding this program so that when the total opened orders more than eg 4 is, then the program ends and closed all orders as soon as it meet 1.5*Increment in Buy section or Sell section(It is not Important in which section can it meet 1.5*Increment more than first opened buy or sell position). 1.5*Increment is an Example numer and what I exactly wish, is that when total opened orders are more than 4 or 5 or 6 orders then the ea closed all opened orders as soon as the sum of profit positiv is. I myself have added some changes in the original program. For example I have added Maxorder at the beginning of the program.
    - extern int Maxorders=4; -

    Than I have some coding at the end of the program in the "FUNCTION takeProfit" section following encodings added.
    if (OrdersTotal()>Maxorders && OrderType()==1 && current_pips > INCREMENT*1.5)
    { if(OrderSymbol()==Symbol() && OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots( ),Bid,3);
    { if(OrderSymbol()==Symbol() && OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots( ),Ask,3);
    I am not sure where i most put these codes and do they are right wroten?! unfortunately it does not worked like I wanted. can someone correct it?

    I have attached both files for some one that can improve it.

    thank you funyoo

    P.S. sorry for my knowledge of english

    this ismy created ea and this is Original EA
    Last edited by hmrt135; 08-09-2011 at 05:16.

Similar Threads

  1. Mgrid
    By admp in forum Ideas for expert advisors
    Replies: 5
    Last Post: 12-27-2010, 17:04

Tags for this Thread

100, advisor, change, coding, expert, expert advisor, grid, grid ea, main, maxorder, profit, programmer

Posting Permissions

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