@l-andorrà The problem was caused by the broker. I changed the broker and it got fixed. wanted to inform you. 
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.posted in Bug Reports
Latest posts made by AlirezaTrade
-
RE: Adjusting TP to Include Commission in a Manual Trading Botposted in Questions & Answers
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. -
RE: Adjusting TP to Include Commission in a Manual Trading Botposted in Questions & Answers
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.
-
RE: Adjusting TP to Include Commission in a Manual Trading Botposted in Questions & Answers
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?
-
RE: MT5 Timeframesposted in Tutorials by Users
Thank you very much, dear @jstap. This code was very efficient.
-
Adjusting TP to Include Commission in a Manual Trading Botposted in Questions & Answers
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. -
RE: How to manage pending orders in fxDreema with different deletion times for each group?posted in Questions & Answers
Thank you, dear @l-andorrà, my problem has been mostly solved.
-
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
درود، من در حال طراحی یک اکسپرت با FXDreema هستم و دو گروه پندینگ اردر تعریف کردهام. نیاز دارم سفارشهای پندینگ هر گروه مطابق شرایط زیر مدیریت شوند:
شرح نیاز:
گروه 1:
پندینگ اردرهای این گروه باید بعد از 1 کندل (هر تایمفریمی که انتخاب شده) حذف شوند اگر فعال نشدند.گروه 2:
پندینگ اردرهای این گروه باید بعد از 2 کندل حذف شوند اگر فعال نشدند.
مشکل:
اگر دو سفارش از گروه 2 در زمانهای مختلف ایجاد کنم، هر دوی آنها در زمان یکسان حذف میشوند. اما من میخوام زمان حذف بر اساس تعداد کندلها پس از ایجاد هر سفارش محاسبه شود، نه همه آنها به صورت همزمان. -
How to manage pending orders in fxDreema with different deletion times for each group?posted in Questions & Answers
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. -
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 brokersposted in Questions & Answers
@roar
Broker 1, which is working properly, the journal information is like this:TickValue: 1.0
TickValue Profit: 1.0
