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

Automated Trading and Strategy Testing Forum

Subscribe to signal
FXintraday2
12.18%, 1 375.75 USD
Screenshot
XAUUSD, M5
Real
Decreasing Memory Consumption by Auxiliary Indicators Decreasing Memory Consumption by Auxiliary Indicators ATR_MA_Oscillator Indicator
ATR_MA_Oscillator
Author: GODZILLA
ATR MULTI SYMBOLSATR MULTI SYMBOLS Try product
ATR MULTI SYMBOLS
Author: tol64

// ArraySetAsSeries doesnt work| Admin?

To add comments, please log in or register

thien_v
68
thien_v 2012.08.18 12:19

EXAmple:

double arraytest[5] = { 3, 2 ,5, 6,8 };

ArraySetAsSeries(arraytest,true); // reverse

Print (arraytest[0]);

// Expected result should be 8. 

// but the result is 3.

------ 

Is this a bug? If not I need help.

 

   

  

 

 

onewithzachy
954
onewithzachy 2012.08.19 09:34
thien_v:

EXAmple:

double arraytest[5] = { 3, 2 ,5, 6,8 };

ArraySetAsSeries(arraytest,true); // reverse

Print (arraytest[0]);

// Expected result should be 8. 

// but the result is 3.

------ 

Is this a bug? If not I need help.

 Hi thien_v,

ArraySetAsSeries does not works on static array, Please read the doc http://www.mql5.com/en/docs/array/arraysetasseries

and print it 

Print ("Set as series "ArraySetAsSeries(arraytest,true));

It will print false.

 

thien_v
68
thien_v 2012.08.19 10:41
onewithzachy:

 Hi thien_v,

ArraySetAsSeries does not works on static array, Please read the doc http://www.mql5.com/en/docs/array/arraysetasseries

and print it 

It will print false.

 

Hi,

thanks. But how can I reverse static array? Any idea?

Do array in mt5 have address? 

  

onewithzachy
954
onewithzachy 2012.09.01 10:29
thien_v:

Hi,

thanks. But how can I reverse static array? Any idea?

Do array in mt5 have address? 

Hi thien_v,

I think either use dynamic Array or reverse the counting (i.e. instead counting from 0 to n, we counting from n to 0). Not really help eh ? :D 

AFAIK, We have no way to find the address of Array in MT5 :(

 

/

To add comments, please log in or register