
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
Thank you KimIV!
DeleteOrders() function. Tester version.
Function DeleteOrders() is intended to delete pending orders BuyLimit, BuyStop, SellLimit and SellStop. The DeleteOrders() function is universal, i.e. it can be used to delete all pending orders that exist, as well as specific ones that meet the selection conditions set using the function parameters:
sy - Instrument name. Since only the current symbol can be traded in the tester, this parameter is not relevant for the tester version and is only needed for compatibility with the online version of this function. It is best to use values "" or NULL in the tester. The default value "" means any symbol.
op - Type of trade operation, type of pending order. One of five values is possible: -1, OP_BUYLIMIT, OP_BUYSTOP, OP_SELLLIMIT or OP_SELLSTOP. The default value of -1 indicates any order.
mn - MagicNumber, identification number of the pending order. Default value -1 - means any magik.
DeleteOrders() function. Online version.
Examples of how to use the DeleteOrders() function.
1. Delete all orders:
2. Remove all BuyStop orders:3. Delete all orders with magic 123456:
ZY. In the trailer is a working script with the same examples.
Examples of how to use the DeleteOrders() function.
Ilnar, in the topic Pending Fractal Orders, asked, How to make pending orders on fractals?
I assume that Ilnar had some difficulty in detecting price levels of fractals. That's why I suggest using my function:
Function FindNearFractal() searches for the nearest fractal of the specified type at the specified symbol, at the given timeframe, and returns its price level. Knowing the price level of the location of the fractal, it is already easy to set an order at this level.
Examples of the use of DeleteOrders().
Vitek, what's the problem? Sure, come and dig the garden soon... you can help...
Examples of the use of DeleteOrders().
Vitek, what's the problem? Sure, come and dig the garden soon... you can help...