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
Lester:
This is a template with built-in functions for opening, closing and modifying.
The opening and closing are written by Nikolay Kositsin.
I easily changed them and added modifications.
I think it's clear how to call them up, so for your convenience.
Sorry about that - mixed upthe file.
Try it this way:
Lester:
This template has built-in functions for opening, closing and modifying.
The opening and closing are written by Nikolay Kositsin.
I easily changed them and added modifications.
I think it's clear how to challenge them, so for your convenience.
How do you open such files with an editor?
You can't open those. ))
Try reading some articles. There's a lot to choose from, from the smallest to the most mature. ))
Unfortunately, the orders do not close at all. I think I should think about it for a while)
Changed the file, sorry about that.
I got the file mixed up, sorry.
Whoa. What does this have to do with warrants? We have been talking about a position all along. A position and pending orders are different things. They must be closed differently!
Pending orders are not closed but deleted. Positions are closed by opening a market order of equal volume and opposite direction to the open position.
The code you cited was not designed to delete pending orders.
You can use this function to delete orders:
Got it. Nothing about orders - just positions.
I prescribed PositionSelect at night - it seems to have caught my breath. It sends (closes) positions every once in a while, but I think conditions are already involved here.
I do not understand something else. It does not form stop and profit losses, the values of which are prescribed in the input parameters. If I prescribe these values in the sending, the same thing happens - i.e. nothing.
Hello. Can you please tell me what I should do in MT4 after I subscribe to the signals, so that the synchronization could take place? I found in the instructions what to do with MT5, I have not found instructions for MT4. I have subscribed to the signal from MT4.
I have signed up for the signal from MT4. Thank you.
Understood. No mention of orders - just positions.
I prescribed PositionSelect at night - it seems to have caught my breath. It sends (closes) positions every once in a while, but I think conditions are already involved here.
I do not understand something else. It does not form Stop and Profit Loss, values of which are prescribed in the input parameters. If I prescribe these values in the sending, the same thing happens - i.e. nothing.
The reason why stops are not set when a position is opened may depend on the trading mode. There are three modes: Request Execution, Instant Execution and Market Execution.
If your broker uses the Market Execution mode, you need to open a position first and then modify (set stops) it on the next tick. At the same time, i.e. in one order, with this trading mode it is not possible to open a position with stops.
In general, deal with the structure of a trade request:MQL5 Reference / Standard constants, enumerations and structures / Data structures / Structure of a trade request. I think this will help you in further study of the language.
If I'm not mistaken, the "fish" of modification looks like this.
Indeed, in Alpari Market Execution . Is there an order modification structure itself? As there is no modification in the forum as long as there is an open Sell or Buy order.
If I'm not mistaken, the 'fish' of the modification looks like this.