COrdersCounter – ਮੈਟਾ ਟ੍ਰੇਡਰ ਲਈ ਲਾਇਬ੍ਰੇਰੀ 4

0
(0)

COrdersCounter - ਮੈਟਾ ਟ੍ਰੇਡਰ ਲਈ ਲਾਇਬ੍ਰੇਰੀ 4

ਅਲੈਕਸੀ ਲੋਪੇਟਿਨ | ਅੰਗਰੇਜ਼ੀ

ਵਿਚਾਰ:
395
ਰੇਟਿੰਗ:

ਵੋਟਾਂ: 9

\MQL4\Include\

Descripition:

The class COrdersCounter was developed for counting of the orders with different filters: by symbol of currency, ਮੈਜਿਕ ਨੰਬਰ, either closed, either opened orders.

Below is description of the public methods of this class.

Constructors:

Method ਵਰਣਨ
COrdersCounter(void) Constructor by default.
COrdersCounter(int ਜਾਦੂ, string symbol, int counter_mode = MODE_TRADES) ਪੈਰਾਮੀਟਰ:ਜਾਦੂ - integer value of Magic Number for for the filtering of the orders. When magic = 0 is not used.

symbol - symbol of the instrument. When symbol = "" is not used.

counter_mode - the pool of the orders (either closed, either opened orders). Allows 2 values: MODE_TRADES (by default) - opened orders, MODE_HISTORY - ਬੰਦ ਆਦੇਸ਼.

Methods:

Method ਵਰਣਨ
void refreshData(void) The method renews data for orders. This method must called before the calling getOrdersCount(), getTotalProfit(), getMarketVolume(), getTotalVolume().
int getOrdersCount(int ਕਿਸਮ) The method returns orders count of defined type. ਪੈਰਾਮੀਟਰ:
type - type of the orders. Allowed values:
OP_BUY - market buy orders,
OP_SELL - market sell orders,
OP_SELLLIMIT - sell limit orders,
OP_BUYLIMIT - buy limit orders,
OP_SELLSTOP - sell stops orders,
OP_BUYSTOP - buy stop orders.
When type = -1, the method will return total count of all orders.
int getLastOrder() Returns ticket number of last closed/opened order from the retrieved list.
int getFirstOrder() Returns ticket number of first closed/opened order from the retrieved list.
ProfitData getTotalProfit() Returns an instance of the struct ProfitData, containing total profit/loss of the retrieved list.The struct ProfitData contains fields:

double currency - profit/loss in currency
double points - profit/loss in points

double getMarketVolume() Returns the total volume of the market trades of the retrieved list.
double getTotalVolume() Returns the total volume for all orders of of the retrieved list.
void setMagicNumber(int ਜਾਦੂ) Sets Magic Number value. ਪੈਰਾਮੀਟਰ: ਜਾਦੂ - new value for Magic Number.
void setSymbol(string symbol) Sets Symbol value. ਪੈਰਾਮੀਟਰ: symbol - new symbol value of currency.
void setMode(int ਮੋਡ) Set pool. ਪੈਰਾਮੀਟਰ: ਮੋਡ - the pool type: MODE_TRADES - opened orders, MODE_HISTORY - ਬੰਦ ਆਦੇਸ਼.
int getMagicNumber() Returns value of magic (ਮੈਜਿਕ ਨੰਬਰ) for the filtering of the orders.
string getSymbol() Returns value of symbol.
int getMode() Return type of current pool for orders filtering: MODE_TRADES - opened orders, MODE_HISTORY - ਬੰਦ ਆਦੇਸ਼.

ਇਹ ਪੋਸਟ ਕਿੰਨੀ ਲਾਭਦਾਇਕ ਸੀ?

ਇਸ ਨੂੰ ਦਰਜਾ ਦੇਣ ਲਈ ਇੱਕ ਤਾਰੇ 'ਤੇ ਕਲਿੱਕ ਕਰੋ!

ਔਸਤ ਰੇਟਿੰਗ 0 / 5. ਵੋਟਾਂ ਦੀ ਗਿਣਤੀ: 0

ਹੁਣ ਤੱਕ ਕੋਈ ਵੋਟ ਨਹੀਂ ਹੈ! ਇਸ ਪੋਸਟ ਨੂੰ ਰੇਟ ਕਰਨ ਵਾਲੇ ਪਹਿਲੇ ਬਣੋ.

ਸਾਨੂੰ ਅਫ਼ਸੋਸ ਹੈ ਕਿ ਇਹ ਪੋਸਟ ਤੁਹਾਡੇ ਲਈ ਉਪਯੋਗੀ ਨਹੀਂ ਸੀ!

ਆਓ ਇਸ ਪੋਸਟ ਨੂੰ ਸੁਧਾਰੀਏ!

ਸਾਨੂੰ ਦੱਸੋ ਕਿ ਅਸੀਂ ਇਸ ਪੋਸਟ ਨੂੰ ਕਿਵੇਂ ਸੁਧਾਰ ਸਕਦੇ ਹਾਂ?



ਲੇਖਕ: ਫਾਰੇਕਸ ਵਿਕੀ ਟੀਮ
ਅਸੀਂ ਉੱਚ ਤਜ਼ਰਬੇਕਾਰ ਫਾਰੇਕਸ ਵਪਾਰੀਆਂ ਦੀ ਇੱਕ ਟੀਮ ਹਾਂ [2000-2023] ਜੋ ਸਾਡੀਆਂ ਸ਼ਰਤਾਂ 'ਤੇ ਜ਼ਿੰਦਗੀ ਜਿਊਣ ਲਈ ਸਮਰਪਿਤ ਹਨ. ਸਾਡਾ ਮੁੱਖ ਉਦੇਸ਼ ਵਿੱਤੀ ਸੁਤੰਤਰਤਾ ਅਤੇ ਆਜ਼ਾਦੀ ਪ੍ਰਾਪਤ ਕਰਨਾ ਹੈ, ਅਤੇ ਅਸੀਂ ਸਵੈ-ਸਿੱਖਿਆ ਦਾ ਪਿੱਛਾ ਕੀਤਾ ਹੈ ਅਤੇ ਇੱਕ ਸਵੈ-ਟਿਕਾਊ ਜੀਵਨ ਸ਼ੈਲੀ ਨੂੰ ਪ੍ਰਾਪਤ ਕਰਨ ਦੇ ਸਾਡੇ ਸਾਧਨ ਵਜੋਂ ਫੋਰੈਕਸ ਬਜ਼ਾਰ ਵਿੱਚ ਵਿਆਪਕ ਅਨੁਭਵ ਪ੍ਰਾਪਤ ਕੀਤਾ ਹੈ।.