@l-andorrà Yes, I'm sure about that. It calculates the volume correctly for the XAUUSD symbol in MQL4. This problem only arises when you write the code with MQL5 or convert the MQL4 code to MQL5 using the conversion tool on this website.
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
-
Reporting the bug related to capital management "Risk % of Balance (Volume size depending on Stop-Loss)" in the MQL5 language.posted in Bug Reports
@fxDreema @l-andorrà
I built a robot using the MQL5 language and "Risk % of Balance (Volume size depending on Stop-Loss)" risk management that risks 0.5% of the balance. I tested it on a $100,000 account on EURUSD and it works correctly, and if the maximum loss is reached, I will lose $500. But on XAUUSD with the same 0.5% risk, if the maximum loss is reached, I will lose $5,000.I built the same robot using MQL4 and it works correctly, but unfortunately this bug exists when using MQL5. Please fix it.
-
RE: Pending order expires after 10 secondsposted in Questions & Answers
@jstap This is not my question at all.
I want it to be deleted if the pending order is not opened within 10 seconds. -
RE: Pending order expires after 10 secondsposted in Questions & Answers
@jstap

I think some settings should be made here, but I don't know how to do it for 10 seconds? -
RE: Pending order expires after 10 secondsposted in Questions & Answers
@jstap Hello, good time, could you please help me to make this?
-
Pending order expires after 10 secondsposted in Questions & Answers
Hello, how can I do it?
Please explain with a photo, thank you. -
RE: Trade in grid (Without using pending orders)posted in Questions & Answers
@l-andorrà Hello, good time, could you please help me to make this?
-
RE: Trade in grid (Without using pending orders)posted in Questions & Answers
@jstap Yes, you are right, but I want to make this robot, if you can, please send me the code sample.
-
RE: Trade in grid (Without using pending orders)posted in Questions & Answers
@jstap Hello, good time, could you please help me to make this?
-
Trade in grid (Without using pending orders)posted in Questions & Answers
Hello
Due to performance lag on pending orders, I would like to use instant trade.
The method is as follows. Let's assume that I have taken a buy trade. I want the robot to take a buy trade for me in 10 pips intervals, considering the price of this trade, which is my first buy trade. The same way for the first sell trade.
Additionally, due to my use of trailing stops, there may be no trades at times during the process. But I want to open the trade in the same 10 pip intervals.
Please explain to me in the form of a photo, Many thanks. -
RE: The difference between "For each Trade" and "If trade"posted in Questions & Answers
@jstap Thank you so much. Now, which one should I use for the above photo, which is for trailing stop?
-
The difference between "For each Trade" and "If trade"posted in Questions & Answers
Hello,
What is the difference between these two blocks?
When should each be used?
Which block is faster to process?
For the picture below, I want to use one of these two blocks, I don't know which one is better.
-
First, close profitable tradesposted in Questions & Answers
@fxDreema @l-andorrà
Hello
I made this button and I want it to be done in order when it is clicked :
Close profitable deals first
Then from the trades that are in loss
And finally pending ordersI made it like this:


-
RE: Creating Trailing Stop just like MetaTraderposted in Questions & Answers
@jstap @Uriel-0
This is not what I want
I want to profit after n pips
First, the stop loss must be at the entry point
Then for every 1 pip increase in price
1 pip stop loss increasesSomehow I want to use the following two blocks together, but I don't know how :
Break even point (each trade)
Trailing stop (each trade) -
RE: Creating Trailing Stop just like MetaTraderposted in Questions & Answers
@l-andorrà @fxDreema Hello, I need your help, please guide me.
-
RE: Creating Trailing Stop just like MetaTraderposted in Questions & Answers
@jstapIf If it is possible for you to guide in the form of a photo, thank you.
-
Creating Trailing Stop just like MetaTraderposted in Questions & Answers
Hello, good time
I want it to work exactly like Metatrader.
For example, I opened a position and set the Stop loss to 30 pips.
And I want the trade to be 10 pips in profit,
The Stop loss must first reach the entry point.
And then for every 1 pip of growth,
Stop loss will increase by 1 pip.