LastOrder – library for MetaTrader 4

0
(0)

LastOrder - library for MetaTrader 4

 Description:

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. When 0  it isn't used.
sort - sort order (purchase, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders.
mode - 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. When 0  it isn't used.
sort - sort order (purchase, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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.
mode - 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. When 0 it isn't used.
sort - orders sort (purchase, promote, promote restrict, purchase restrict, promote cease, purchase cease) for filtering orders. When -1 just isn't used.
remark - remark string of the orders. When "" (empty) shouldn't be used.

Hooked up Information:

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.