Available since version 2.05
Esta função retorna o preço médio ponderado pelo volume de todas as posições de compra abertas, considerando os filtros fornecidos.
Function
Section titled “Function” Name: BuyAvgPrice Copied!
Aliases: BAvgPrice Copied!
Parameters
Section titled “Parameters”Examples
Section titled “Examples”//Default example:
BuyAvgPrice[symbol = REAL, magic = MAGIC]
//Using aliases:
BAvgPrice[symbol = REAL, magic = MAGIC]
//Other examples:
BuyAvgPrice("PETR4", 123456)