Questions: to start with MetaTrader and forex - page 84

 

Dear SIR MLADEN,

I have an ERROR in my Journal as follows.... when I load my EA Console

Could you PLEASE advice what may be the caused of the ERROR.... but my CPU usage is currently at 780MB.... (still low)

Your expertise and advice is always appreciated.

yours truly

AZRUL...

Files:
 
12BPRO:
Dear SIR MLADEN,

I have an ERROR in my Journal as follows.... when I load my EA Console

Could you PLEASE advice what may be the caused of the ERROR.... but my CPU usage is currently at 780MB.... (still low)

Your expertise and advice is always appreciated.

yours truly

AZRUL...

AZRUL

Try setting max bars on chart to 5000

 
mladen:
AZRUL Try setting max bars on chart to 5000

Dear SIR MLADEN,

I have already set the MAX BARS on chart at 5000..... as per advice from previous quote....

Is the anything else that I could do....

Is it because of the EA that is CALLING iCustom causing the problem???

But there is no ERROR in my journal...!!!!

Thanks for the reply SIR...

yours truly

AZRUL...

 
12BPRO:
Dear SIR MLADEN,

I have already set the MAX BARS on chart at 5000..... as per advice from previous quote....

Is the anything else that I could do....

Is it because of the EA that is CALLING iCustom causing the problem???

But there is no ERROR in my journal...!!!!

Thanks for the reply SIR...

yours truly

AZRUL...

Does not matter if there is an error in the journal

!. how many charts you have opened

2. which build

3. how does the iCustom() parameters look (are the parameters set OK)?

 
mladen:
Does not matter if there is an error in the journal

!. how many charts you have opened

2. which build

3. how does the iCustom() parameters look (are the parameters set OK)?

Dear SIR MLADEN,

1. Currently I am opening 21 charts.... 18 charts with 4 indicator..... and the rest (2) each with my Console Indicator that calculate 170++ array...

2) Using MT4 build 670 (4 July 2014)

3) I don't quite understand this question ......iCustom() parameters look (are the parameters set OK)?......... It is working..... as per picture... and my CPU memory usage is not increasing....!!!

Thanks for your time and input SIR....

I really appreciate Your HELP.....

yours truly

AZRUL...

Files:
11_july_3pm.jpg  108 kb
 
12BPRO:
Dear SIR MLADEN,

1. Currently I am opening 21 charts.... 18 charts with 4 indicator..... and the rest (2) each with my Console Indicator that calculate 170++ array...

2) Using MT4 build 670 (4 July 2014)

3) I don't quite understand this question ......iCustom() parameters look (are the parameters set OK)?......... It is working..... as per picture... and my CPU memory usage is not increasing....!!!

Thanks for your time and input SIR....

I really appreciate Your HELP.....

yours truly

AZRUL...

AZRUL

Try all that with just one chart open and check if you are going to get an error then

 
mladen:
AZRUL Try all that with just one chart open and check if you are going to get an error then

Dear SIR MLADEN,

I could confirm the cause of the memory error is due to the EA while CALLING 2 (two) of my Indicator that has to calculate 170++ array each....

But the EA manage to open up a few orders before running out of memory..

PLEASE advice....

yours truly

AZRUL....

Files:
 

Dear Codes GURU,

Is there a limit set by MT4 per chart of memory allocated......????

Because when I load my MultiPair EA on a chart.... there is an error of Memory Handler....

But when I separate my EA to Individual Pairs... there is no Problem....

PLEASE ADVICE....

yours truly

AZRUL...

 
12BPRO:
Dear Codes GURU,

Is there a limit set by MT4 per chart of memory allocated......????

Because when I load my MultiPair EA on a chart.... there is an error of Memory Handler....

But when I separate my EA to Individual Pairs... there is no Problem....

PLEASE ADVICE....

yours truly

AZRUL...

I don't know exactly how much memory can be allocated per thread (chart). Sorry

Maybe someone else knows

 

Dear Codes Guru,

Could someone clarify a few things .........

1) I have a feeling that everytime I CALL an iCustom (e.g in EA), it will recalculate to get the value....

is this assumption Right ???? (like running the whole indicator again)..

2) if the above is true.....What if I set a GlobalVariable in the indicator and let the EA get the GV value..

would it still have to calculate like CALL iCustom....

3) if the above is true.... could you please give some sample on how to make and retrieve GV in the indicator and EA....

I am trying a way to reduce the memory handler overload... and hope this would help.....

Your advice and expertise is highly appreciated....

your truly

AZRUL...

Reason: