Results 1 to 5 of 5
 1 Attachment(s)    

Thread: Hard Profit EA not working/not trading

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    11

    Default Hard Profit EA not working/not trading

    Hi Funyoo &/or Any Experienced coders/programmer,

    I have the enclosed EA which has remarkable backtesting results which will trade few positions DAILY. Unfortunately there has been no trades at all so far after many many days.

    Pls can u kindly check the EA's code to see why it is not trading, or if there is any issue with the code?

    Thank you very much.

    rgds
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    1

    Default

    It is 4 digits EA, for 5 digits broker u add 0 to all trade parameters

    extern int StopLoss=400;
    extern int BreakEven=300;
    extern int SeuilSL = 3300;
    extern int PartialTP1=5500;
    extern int PartialRatio1=30;
    extern int PartialTP2=1100;
    extern int PartialRatio2=70;
    extern int TakeProfit=15000;
    extern int Slippage=300;
    extern int MaxSpread=220;

  3. #3
    Junior Member dmbsys's Avatar
    Join Date
    Mar 2009
    Location
    BELGIUM
    Posts
    27

    Default

    Try this in init :

    Code:
    //+------------------------------------------------------------------+
    //| expert initialization function |
    //+------------------------------------------------------------------+
    int init()
    {
    //----
    nbDecimales = 0;
    double tempPoint = Point;
    while(tempPoint < 1) {
    tempPoint *= 10;
    nbDecimales++;
    }
    if(Digits==3 || Digits==5)
    {
    StopLoss=StopLoss*10;
    BreakEven=BreakEven*10;
    SeuilSL = SeuilSL*10;
    PartialTP1=PartialTP1*10;
    PartialRatio1=PartialRatio1*10;
    PartialTP2=PartialTP2*10;
    PartialRatio2=PartialRatio2*10;
    TakeProfit=TakeProfit*10;
    Slippage=Slippage*10;
    MaxSpread=MaxSpread;
    }
    
    //----
    return(0);
    }

  4. #4
    Junior Member
    Join Date
    Feb 2010
    Posts
    11

    Default

    HI robin2003,

    Thx for yr reply. I tried to add the 0 as per yr suggestion below, but unfortunately it still didnt trade at all. Any other idea, anyone else, i would really appreciate an solution to this issue. thx


    Quote Originally Posted by robin2003 View Post
    It is 4 digits EA, for 5 digits broker u add 0 to all trade parameters

    extern int StopLoss=400;
    extern int BreakEven=300;
    extern int SeuilSL = 3300;
    extern int PartialTP1=5500;
    extern int PartialRatio1=30;
    extern int PartialTP2=1100;
    extern int PartialRatio2=70;
    extern int TakeProfit=15000;
    extern int Slippage=300;
    extern int MaxSpread=220;

  5. #5
    Junior Member
    Join Date
    Feb 2010
    Posts
    11

    Default

    Hi dmbsys,

    Thanks alot for replying. Unfortunately, because i have no idea at all on coding writing &/or amendments, I really dont know how to make the amendements as per yr kind suggestion below. As such, Dmbsys, can you PLEASE make the amendment in the Hardprofit mq4 file & then attach the amended mq4 in your subsequent reply? I woud really, really appreciate it Thx in advance, dmbsys


    Quote Originally Posted by dmbsys View Post
    Try this in init :

    Code:
    //+------------------------------------------------------------------+
    //| expert initialization function |
    //+------------------------------------------------------------------+
    int init()
    {
    //----
    nbDecimales = 0;
    double tempPoint = Point;
    while(tempPoint < 1) {
    tempPoint *= 10;
    nbDecimales++;
    }
    if(Digits==3 || Digits==5)
    {
    StopLoss=StopLoss*10;
    BreakEven=BreakEven*10;
    SeuilSL = SeuilSL*10;
    PartialTP1=PartialTP1*10;
    PartialRatio1=PartialRatio1*10;
    PartialTP2=PartialTP2*10;
    PartialRatio2=PartialRatio2*10;
    TakeProfit=TakeProfit*10;
    Slippage=Slippage*10;
    MaxSpread=MaxSpread;
    }
    
    //----
    return(0);
    }

Similar Threads

  1. Daily profit in currency trading,possible or impossible ?
    By shereali in forum Trading discussion
    Replies: 1
    Last Post: 03-02-2014, 17:49
  2. a request that wouldn't be so hard to realize i think...
    By sercey in forum Ideas for expert advisors
    Replies: 2
    Last Post: 11-21-2010, 16:29
  3. Trading Profit Booster
    By fxtester in forum Commercial expert advisors
    Replies: 0
    Last Post: 09-11-2009, 13:48

Tags for this Thread

100, backtesting, breakeven, broker, coding, expert, funyoo, how to, mq4, profit, programmer, slippage, stoploss, 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
  •