Hello,
Just try double Array[];
Nelson Silva:
Hello,
Just try double Array[];
2019.09.09 21:29:53.749 GetRectPrice EURUSD,M5: array out of range in 'GetRectPrice.mq4' (56,22)
Danillo Souza:
2019.09.09 21:29:53.749 GetRectPrice EURUSD,M5: array out of range in 'GetRectPrice.mq4' (56,22)
Hi, Danilo
Before you scan for the array elements you should get the ArraySize(), then you limit the scan total elements in the FOR block.
int ArrayTotal = ArraySize(taxas); for(int i=0; i<=ArrayTotal; i++) { printf(taxas[i]); }
Nelson Silva:
Hi, Danilo
Before you scan for the array elements you should get the ArraySize(), then you limit the scan total elements in the FOR block.
Like this?
if(id==CHARTEVENT_OBJECT_CLICK) GetPrice(taxas); int ArrayTotal = ArraySize(taxas); for(int i = 0; i < ArrayTotal; i++) { printf(taxas[i]); }
Yes, with this code you simply avoid the arrayOutOfRange error return.
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
Can anyone help me?