"100 Pips a Day" EA by Metaquotes, Need ECN programming help please. - page 2

 

Tradingjunky

I also change the 1000 lots to 10


now its working in my tester fine


there is no stoploss from what i can see

otherwise it works


 

  1. gdPoint = Point;
    // check if we are on a 5 digit broker
    if(Digits==3||Digits==5){
    gdPoint = gdPoint*10;
    Slippage =Slippage*10;
    lTrailingStop= lTrailingStop*10;
    Each change in pair, TF, Refresh rates, etc, the EA goes through an de-init, init cycle. It does not get reloaded.

    Thus GdPoint is correct, but Slippage and lTrailingstops becomes 10x 100x 1000x...


  2. EA's must adjust TP, SL AND slippage
    //++++ These are adjusted for 5 digit brokers.
    int     pips2points;    // slippage  3 pips    3=points    30=points
    double  pips2dbl;       // Stoploss 15 pips    0.0015      0.00150
    int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
    int     init(){
        if (Digits == 5 || Digits == 3){    // Adjust for five (5) digit brokers.
                    pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
        } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }
        // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
    //---- These are adjusted for 5 digit brokers.
        /* On ECN brokers you must open first and THEN set stops
        int ticket = OrderSend(...)
        if (ticket < 0)
           Alert("OrderSend failed: ", GetLastError());
        else if (!OrderSelect(ticket, SELECT_BY_POS))
           Alert("OrderSelect failed: ", GetLastError());
        else if (!OrderModify(OrderTicket()...)
           Alert("OrderModify failed: ", GetLastError());
         */
    

  3. Need ECN programming help please.

    See #3.
    No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
 
Is there any point in replying to posts that are almost a year old ? unless, of course, the OP has re-posted more info . . .
 
RaptorUK:
Is there any point in replying to posts that are almost a year old ? unless, of course, the OP has re-posted more info . . .

that is a really good point

however it was on todays list of topics and i didnt think to check its start date I will be more observant in future


it was fun making it work on my broker


over last 2 months with my mods it make a profit although it does have quite a big drawdown (2 month in tester not live )

 
Tradingjunky:

that is a really good point

however it was on todays list of topics and i didnt think to check its start date I will be more observant in future


You can blame that on Elroch ;-)
Reason: