AllProfitOpen
Esta função retorna o lucro/prejuízo total combinado de todas as posições abertas, considerando os filtros fornecidos.
Parâmetros
| symbol | = REAL; | // Símbolo do ativo. | |
| magic | = MAGIC; | // Número mágico para filtrar as operações. | |
| candle | = -1; | // Índice da vela de inicio (-1 para todas). | |
| timeframe | = CURRENT; | // Tempo gráfico. |
Exemplos
1//Default example:
2AllProfitOpen[symbol = REAL, magic = MAGIC, candle = -1, timeframe = CURRENT]
3
4//Using aliases:
5AProfitO[symbol = REAL, magic = MAGIC, candle = -1, timeframe = CURRENT]
6
7//Other examples
8AllProfitOpen["ITUB4", 123456, -1, W1]