fxDreema

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

    Best posts made by refaey

    • RE: Using 'Modify Stops' block to risk a fixed amount of cash

      Thank you for the reply.

      I have ended up using custom code as suggested. Here's the code if it benefits anyone

      sl_reliable_tickvalue = sl_tickvalue * sl_point / sl_ticksize;
      if ((Digits == 3) || (Digits == 5)) {sl_reliable_tickvalue = sl_reliable_tickvalue * 10;}
      sl_value = (sl_capital_to_risk * stop_loss_percentage /100) / (loop_size * sl_reliable_tickvalue );

      posted in Questions & Answers
      refaey
      refaey
    • A bug with the Modify Stops block

      In a 'Modify Stops' block, if I set:
      New Stop Loss mode = % of the price
      New Take Profit mode = No changes

      b5c961c5-93db-4353-aff4-7d26d4e12261-image.png

      The code will update the take profit anyway, even though I chose "No Change".

      I've had a look at the code and found the issue:

      75f4f16e-9427-407c-b25b-92973242516d-image.png

      I hope someone from FxDreema fixes this soon.

      posted in Bug Reports
      refaey
      refaey
    • RE: mql5 not accepting my EA: The amount of open and pending orders has reached the limit set by the broker

      I found the solution!

      I copied the function on the mql5 website (https://www.mql5.com/en/articles/2555#account_limit_pending_orders) and added it near the end of the mq4 file

      image.png

      And then updated the only OrderSend call as follows:

      image.png

      Code has now been accepted, and my EA is live in the mql5 market 🙂

      posted in Questions & Answers
      refaey
      refaey
    • 1 / 1