fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. AlirezaTrade
    • Profile
    • Following 6
    • Followers 1
    • Topics 10
    • Posts 38
    • Best 1
    • Controversial 0
    • Groups 0

    AlirezaTrade

    @AlirezaTrade

    1
    Reputation
    24
    Profile views
    38
    Posts
    1
    Followers
    6
    Following
    Joined Last Online

    AlirezaTrade Unfollow Follow

    Best posts made by AlirezaTrade

    • RE: Reporting the bug related to capital management "Risk % of Balance (Volume size depending on Stop-Loss)" in the MQL5 language.

      @l-andorrà The problem was caused by the broker. I changed the broker and it got fixed. wanted to inform you. 😊

      posted in Bug Reports
      AlirezaTrade
      AlirezaTrade

    Latest posts made by AlirezaTrade

    • RE: Adjusting TP to Include Commission in a Manual Trading Bot

      @jstap

      I didn't understand what you meant.
      If possible, please write the code so I can check it and let you know whether it works or not.

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: Adjusting TP to Include Commission in a Manual Trading Bot

      Hello @jstap,

      I reviewed the code you sent, but unfortunately, it didn't work properly. I even tried writing the code as a market buy order, but the issue still wasn't resolved.

      I decided to add an input (constant) for the commission to the bot and set it to something like $7 per lot. Under these circumstances, please guide me on what changes I need to make in the code.

      📌 I intend for the commission to be applied in two different sections:

      1️⃣ In the input lot size: Since my risk management is based on a fixed dollar risk per trade, I want the commission to be included in the total account risk calculation. For example, if I set the risk to $30, this amount should include the commission as well. This means that if the stop loss is hit, the total loss, including the commission, should be $30.

      2️⃣ In the risk-to-reward ratio: I also want the commission to be considered when calculating the take profit. For example, if the risk-to-reward ratio is 1:1, I want the final reward to be calculated as 1 plus the commission amount.

      Ultimately, my goal is that if I am risking $30, in case the stop loss is hit, the net loss should be $30, and in case the take profit is hit, the net profit should also be $30.

      I will send the link to the bot I have written. I would appreciate it if you could review the code and guide me on how to implement these changes.

      🤖 https://fxdreema.com/shared/q4BBI9D1c

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: Adjusting TP to Include Commission in a Manual Trading Bot

      @l-andorrà

      Yes, because I want to use this bot on different brokers, the commission is different.

      But if the commission is a fixed amount, how should I code it?

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: MT5 Timeframes

      Thank you very much, dear @jstap. This code was very efficient.

      posted in Tutorials by Users
      AlirezaTrade
      AlirezaTrade
    • Adjusting TP to Include Commission in a Manual Trading Bot

      Hello, good day.

      I have a manual trading bot in FXDreema that executes market trades or pending orders when a button is clicked.
      I want the bot to calculate the commission before opening a trade and add it to the take profit (TP) so that the net reward is exactly my target.

      For example, if I want to exit at 1R reward, the bot should first calculate the commission and then adjust the TP so that after deducting the commission, the net reward remains 1R (e.g., the final TP might be 1.3R if the commission is 0.3R).

      Additionally, I use "Risk fixed amount of money" for risk management.
      The stop loss for Sell trades is set at the high of candle ID 1 + spread,
      and for Buy trades, it is set at the low of candle ID 1.

      🤖 https://fxdreema.com/shared/q4BBI9D1c

      @jstap @l-andorrà @miki

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: How to manage pending orders in fxDreema with different deletion times for each group?

      Thank you, dear @l-andorrà, my problem has been mostly solved.

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: گروه روبومستر سلیمانی خواه

      درود، من در حال طراحی یک اکسپرت با FXDreema هستم و دو گروه پندینگ اردر تعریف کرده‌ام. نیاز دارم سفارش‌های پندینگ هر گروه مطابق شرایط زیر مدیریت شوند:

      📌شرح نیاز:
      گروه 1:
      پندینگ اردرهای این گروه باید بعد از 1 کندل (هر تایم‌فریمی که انتخاب شده) حذف شوند اگر فعال نشدند.

      گروه 2:
      پندینگ اردرهای این گروه باید بعد از 2 کندل حذف شوند اگر فعال نشدند.

      📌مشکل:
      اگر دو سفارش از گروه 2 در زمان‌های مختلف ایجاد کنم، هر دوی آنها در زمان یکسان حذف می‌شوند. اما من می‌خوام زمان حذف بر اساس تعداد کندل‌ها پس از ایجاد هر سفارش محاسبه شود، نه همه آنها به صورت همزمان.

      🤖 https://fxdreema.com/shared/VRvOdoxPb

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • How to manage pending orders in fxDreema with different deletion times for each group?

      Hello, I am designing an Expert Advisor with fxDreema, and I have defined two groups of pending orders. I need the pending orders of each group to be managed according to the conditions below:

      📌 Requirement Description:
      Group 1: The pending orders of this group should be deleted after 1 candle (on whatever timeframe is selected) if they are not triggered.

      Group 2: The pending orders of this group should be deleted after 2 candles if they are not triggered.

      📌 Problem:
      If I create two orders from Group 2 at different times, both of them are deleted at the same time. However, I want the deletion time to be calculated based on the number of candles after the creation of each individual order, not all of them at once.

      🤖 https://fxdreema.com/shared/VRvOdoxPb

      @jstap @l-andorrà

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: متاتریدر

      @shindis96
      مراحل به این شکل هست:
      2023-09-28 13_04_05-Greenshot.png

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • RE: Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokers

      @roar
      Broker 1, which is working properly, the journal information is like this:

      TickValue: 1.0
      TickValue Profit: 1.0

      2023-09-27 10_23_18-Greenshot.png

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade