fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. enochj
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    enochj

    @enochj

    0
    Reputation
    361
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    enochj Unfollow Follow

    Latest posts made by enochj

    • RE: Including broker commissions?

      It should be a great improvement! 😉 Commissions could become a crucial factor to care of when scalping the market.

      posted in Questions & Answers
      E
      enochj
    • RE: Set slippage as a double rather than an int

      Apparently, there's something wrong with slippage control. I'm using an EA on a Pepperstone account which is a slippage maniac broker, and dispite of having set a max tolerated slippage at 0.7 (I've tried with higher values as well), orders are validated even with a slippage of 4 pips.

      posted in Questions & Answers
      E
      enochj
    • RE: Including broker commissions?

      I'm wondering if it could be possible, for backtesting EAs, to add a kind of function to include the known broker commission factor in each profit and each loss according to lot size?

      This, for example, could be only shown on the chart as a final number at the end of the backtest.

      posted in Questions & Answers
      E
      enochj
    • RE: Set slippage as a double rather than an int

      Thanks mate! Excellent.

      By manually, I meant to do it by myself into the MetaEditor. 🙂

      posted in Questions & Answers
      E
      enochj
    • RE: Set slippage as a double rather than an int

      Is this possible without doing it manually?

      It isn't that hard to replace, but well, it could be better to have it done automatically.

      Or perhaps, MT4 can't read it as a double variable?

      Thx.

      posted in Questions & Answers
      E
      enochj
    • RE: BreakEven

      My pleasure. You did a great job. 😉

      posted in Bug Reports
      E
      enochj
    • RE: BreakEven

      Actual BreakEven management is done this way:

      		            double be_offset=0;
      		            if (BEoffsetMode=="pips") {be_offset=toDigits(BEPoffsetPips);}
      		            ModifyStops(attrTicket(),attrOpenPrice()+be_offset,attrTakeProfit());
      

      Isn't this better, so that the Stop will be set above open price in long trades, and below in short ones?

      		            double be_offset=0;
      		            double Modif=0;
      
      		            if (BEoffsetMode=="pips") {be_offset=toDigits(BEPoffsetPips);}
      		            if (attrType()==OP_BUY) {Modif=attrOpenPrice()+be_offset;}
      		            if (attrType()==OP_SELL) {Modif=attrOpenPrice()-be_offset;}
      		            ModifyStops(attrTicket(),Modif,attrTakeProfit());
      

      Excellent soft BTW! 😉

      posted in Bug Reports
      E
      enochj