LastOrderlibrary for MetaTrader 4

0
(0)

LastOrder - library for MetaTrader 4

Descriptio:

The header file accommodates features for looking final and former order within the commerce pool.

The features record:

Perform Brief description of the perform
int get_last_order( int magic, int sort = -1, int mode = MODE_TRADES ) get_last_order() returns ticket variety of the final order. The perform returns -1 worth when it havent discovered final order.
Arguments: magic - Magic Quantity ID filtering orders. cum 0 it isn't used.
sort - sort order (emptio, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
int get_first_order( int magic, int sort = -1, int mode = MODE_TRADES )
get_first_order() returns ticket variety of the primary order. The perform returns -1 worth when it havent discovered first order.
Arguments: magic - Magic Quantity ID filtering orders. cum 0 it isn't used.
sort - sort order (emptio, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
double order_lots( int ticket, int mode = MODE_TRADES )
order_lots() returns commerce quantity by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
string order_comment( int ticket, int mode = MODE_TRADES )
order_comment() returns string remark of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
int order_type( int ticket, int mode = MODE_TRADES )
order_type() returns sort of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
double order_open_price( int ticket, int mode = MODE_TRADES )
order_open_price() returns open worth of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
double order_close_price( int ticket, int mode = MODE_TRADES ) order_close_price() returns shut worth of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
datetime order_open_time( int ticket, int mode = MODE_TRADES ) order_open_time() returns open time of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
datetime order_close_time( int ticket, int mode = MODE_TRADES )
order_close_time() returns shut time of the order by ticket quantity.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
int close_by( int ticket, int mode = MODE_TRADES ) close_by() returns the set off of closing the order:by takeprofit (1), by stoploss (-1), guide(0).It's outlined based mostly on remark of the order.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
int close_by2( int ticket, int mode = MODE_TRADES ) close_by2() returns the set off of closing the order:by takeprofit (1), by stoploss (-1), guide(0). It's outlined based mostly on the shut worth and open worth of the order.
Arguments: ticket - ticket variety of the order.
modus - pool of orders: MODE-TRADES - commerce orders, MODE_HISTORY - closed orders.
int orders_count( int magic, int sort = -1, string remark = "" )
orders_count() returns the rely of the opened orders.
Arguments: magic - Magic Quantity ID filtering orders. cum 0 it isn't used.
sort - orders sort (emptio, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders. cum -1 just isn't used.
remark - remark string of the orders. cum "" (empty) shouldn't be used.

Aduncum Information:

Quam utile fuit hoc post?

Click on a stella ad rate it!

Mediocris rating 0 / 5. Suffragium Comitis: 0

Nulla suffragia usque! Primus ad rate esto post haec.

Dolemus quod haec posta tibi non utilis fuit!

Emendare post haec!

Dic nobis quomodo hanc postem emendare possimus?



Author: Praenomen to Team
Nos sumus quadrigis maxime peritus congue mercatores [2000-2023] qui vitam nostram vivendo sunt addicti. Primarium propositum nostrum est libertatem ac libertatem attingere, et sui educationem secuti sumus et in Forexino foro peritia multa consecuti sumus ut media ad vitam sustinendam sui sustentandam..