fxDreema

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

    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
    • 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
      This formula does not calculate correctly.
      The volume of 0.01 lot is considered.

      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

      This formula does not calculate correctly.
      The volume is considered 0.01 lot.
      2023-09-26 23_20_03-.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

      TickValue: 0.1
      TickValue Profit: 0.1
      2023-09-26 20_57_09-.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

      It does not compile.
      2023-09-26 19_34_40-risk_per_point.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

      With your created robot, the 1% risk is not calculated correctly in this broker.

      Balance = $6000
      SL = 500 points
      Risk = 1%
      Calculated volume = 1.2 lot
      Loss = $600

      The correct volume with a 1% risk should be 0.12 lot, so that with a 500-point stop loss, the loss would be $60.

      2023-09-25 22_09_50-Strategy Tester Visualization _ risk_per_point1 on XAUUSD,H1 from 2023.09.20 to .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
      No
      In Broker 1, $60 is lost
      And in Broker 2, $600 is lost

      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

      @jstap

      The crosshair is the same on both brokers, and if a fixed pip is entered, the same amount of loss will be calculated on both brokers.

      This issue arises when using Money Management "Risk % of Balance (Volume size depending on Stop-Loss)" in the robot.
      2023-09-25 11_57_29-risk % test.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

      @jstap @l-andorrà

      Information for a demo account on a broker that is experiencing issues with symbol XAUUSD:
      Server: MetaQuotes-Demo
      Login: 74227591
      Password: 8yC@LbZi

      Also, here's a link to a robot that you can test with the strategy tester to see if it risks 1% balance with this broker or not.
      https://fxdreema.com/shared/xDSuiYtSc

      posted in Questions & Answers
      AlirezaTrade
      AlirezaTrade
    • 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

      @fxDreema @l-andorrà @roar

      Hello good time,
      Below are the specification information images for the XAUUSD symbol from two brokers, where broker 1 calculates the lot size correctly, but broker 2 calculates it incorrectly. What can I do to make the bot calculate the lot size for the XAUUSD symbol correctly in both brokers?

      Broker 1 :
      It works correctly.png
      .
      Broker 2 :
      Does not work right.png

      posted in Questions & Answers
      AlirezaTrade
      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
    • 1
    • 2
    • 1 / 2