Questions from Beginners MQL5 MT5 MetaTrader 5 - page 907
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If a question is asked, I will answer it. I'm not a telepath.
My question is this:))
How do I enter a trade not with specified lots, but with a percentage of the existing deposit?
question like this))
How do I enter a trade not with specified lots, but with a percentage of my existing deposit?
Example:OHLC Check code. If you set the Risk parameter other than zero - this will be the percentage of risk (do not forget to set the Lot parameter to zero).
Added: replaced the link - the first link was wrong. Sorry.
Example:OHLC Check code. If you set Risk other than zero - this will be risk percentage (don't forget to set Lot parameter to zero).
Added: changed link - first link was wrong. Sorry.
Wrong question, how to close percentage of position of the whole position in this symbol?
Slightly wrong question, how do I close the position percentage of the entire position in a given symbol?
PositionClosePartial
Closes part of the position on the specified symbol or with the specified tick
PositionClosePartial
Closes part of a position at the specified symbol or with the specified ticket
Thank you!
Good evening!
The adviser is making transactions. Only it is necessary that I already have a position, to divide all funds equally into 5 characters.
In part.
I cannot do that because this splitting will be repeated at every tick.
How can I be in position immediately?
Thank you in advance.
Hi all!
Please share, who knows and knows how to prohibit the EA from selling after a stop triggering?
Guys, please advise how to automatically select request.type_filling = // ORDER_FILLING_FOK ORDER_FILLING_IOC ORDER_FILLING_RETURN I can not think and constantly change is not good
You can search the code here:
https://www.mql5.com/ru/code/16006
guys, could you please advise how to automatically select request.type_filling = // ORDER_FILLING_FOK ORDER_FILLING_IOC ORDER_FILLING_RETURN I can not figure out how to change it myself.
Connect the standard trading classCTrade
(it comes standard with the terminal)
and call two methods:
SetTypeFillingBySymbol
Sets the order type according to the specified symbol
SetMarginMode
Sets the margin calculation mode according to the current account settings