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
The PriceOpenLastPos() function.
This function returns the opening price of the last open position. The selection of positions to be taken into account is specified by external parameters:
The PriceOpenLastClosePos() function.
This function returns the opening price of the last closed position. The selection of positions to be taken into account is specified by external parameters:
The PriceOpenNearPos() function.
This function returns the opening price of the nearest position. The minimum distance in pips between the position opening price and the current market price serves as the criterion for the "closeness" of a position. Selection of positions to be taken into account is set by external parameters:
The TicketNearPos() function.
This function returns the ticket of the position closest to the market. The minimum distance in points between the opening price and the current market price is used as the criterion for the "closeness" of a position. Selection of positions to be considered is set by external parameters:
TypeNearPos() function.
This function returns the type(0-Buy, 1-Sell) of the position closest to the market at opening price or -1. The minimum distance in pips between the opening price of a position and the current market price serves as the criterion for the "closeness" of a position. Selection of positions to be taken into account is set by external parameters:
The TimeOpenLastPos() function.
This function returns the time of the last open position. Selection of positions to be taken into account is defined by external parameters:
The function BarsBetweenLastFractals().
This function returns the number of bars between the last two fractals or -1. The market instrument and timeframe from which the fractals are to be taken are specified by the parameters:
Function SecondsAfterCloseLastPos().
This function returns the number of seconds after the last position was closed. Selection of positions to be taken into account is specified by parameters:
The SecondsAfterOpenLastPos() function.
This function returns the number of seconds after the last position was opened. Selection of positions to be taken into account is specified by external parameters:
DeleteOppositeOrders() function.
This function deletes one or more orders that are opposite to the position, the type of which is specified in the op. For example, the opposite orders to the Buy position would be SellLimit and SellStop. The deletion of the opposite order becomes necessary if, for example, two opposite orders are set and one of them triggers.
The ArraySearchDouble() function.
This function searches for an array element using a value of double type and returns the index of the found element or -1. The function finds only one element and stops the search if the result is positive.
The ArraySearchInt() function.
This function searches for an element of the array by an int-type value and returns the index of the found element or -1. The function finds only one element, and stops searching if the result is positive.
The ArraySearchString() function.
This function searches the array for an element of the string type and returns the index of the found element or -1. The function finds only one element, and stops the search if the result is positive.
The GetLotLastClosePos() function.
This function returns the lot size of the last closed position or -1. The selection of positions to be taken into account is defined by external parameters:
The ArrayMax() function.
This function returns the value of the maximum element of the array.