MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

Screenshot
AUDJPY, M1
Demo
Subscribe to signal
Robot Test
65.36%, 2 325.05 USD
IncADOnArray Library
IncADOnArray
Author: Integer
MA on BarsMA on Bars Try product
MA on Bars
Author: song_song
Building interactive semi-automatic drag-and-drop Expert Advisor based on predefined risk and R/R ratio Building interactive semi-automatic drag-and-drop Expert...

// TesterStatistics - Request new Enum_Statistics

To add comments, please log in or register
Winsor Hoang
1737
waterhorse 2012.09.09 00:39 

Hi there,

 

Can we have the following new ENUM_STATISTICS?


1) STAT_PROFIT_LONGTRADES


2) STAT_PROFIT_SHORTTRADES 

 

They would be extremely useful in additional to the current Enum_statistics. 

Rosh
Admin
4535
Rosh 2012.09.09 08:51  

What do you mean? We already have them - ENUM_STATISTICS:

STAT_SHORT_TRADES

Short trades

int

STAT_LONG_TRADES

Long trades

int

STAT_PROFIT_SHORTTRADES

Profitable short trades

int

STAT_PROFIT_LONGTRADES

Profitable long trades

int

Winsor Hoang
1737
waterhorse 2012.09.11 06:52  

Rosh,

 

STAT_LONG_TRADES & STAT_SHORT_TRADES only provide the number of short or long trades and the results are int.  

 STAT_PROFIT_SHORTTRADES and STAT_PROFIT_LONGTRADES only provide the number of winning trades for short or long trades and the results are int.  

 

I am looking for STAT_PROFIT of only the long trades (STAT_PROFIT_LONGTRADES)  or the short trades (STAT_PROFIT_SHORTTRADES), and the results will be in double.

 

Please let me know if it makes sense. 

/
To add comments, please log in or register