MQL4 - automated forex trading   /  

Forum

How to load more bars in a chart programatically?

Back to topics list To post a new topic, please log in or register

avatar
102
Miroslav_Popov 2010.02.08 22:33 

Hello,

I noticed a new MT chart loads 2048 bars by default.


My expert needs 2 complete days or 2 * 1440 = 2880 bars on a M1 chart.


Can the expert force MT to load more bars?




article

Interview with Rashid Umarov

"The expert to win in this Championship must include 3 to 5 independent experts, which to open rather often. Say, 5 times a week for a currency pair. And they all must be supervised by another expert that would allow ones to trade and others to "warm the bench" until a more reliable signal occurs."


avatar
803
gordon 2010.02.09 04:12 
Miroslav_Popov wrote >>

Hello,

I noticed a new MT chart loads 2048 bars by default.


My expert needs 2 complete dais or 2 * 1440 = 2880 bars on a M1 chart.


Can the expert force MT to load more bars?

I would like to know the answer too (I had the same problem in the past but couldn't find a way... eventually did it by hand).


avatar
59
fai 2010.02.09 08:53 

Hello,

This is a joke solution !!!

Please laugh. :-)

Attached files:
  _test.mq4 (1.33 KB)

avatar
803
gordon 2010.02.09 09:46 
fai wrote >>

Hello,

This is a joke solution !!!

Please laugh. :-)

:-) good one.

Is there a somewhat more... elegant solution?


avatar
365
WHRoeder 2010.02.09 17:57 
tools -> options -> chart -> bars in history

avatar
803
gordon 2010.02.09 18:08 
WHRoeder wrote >>
tools -> options -> chart -> bars in history

That only sets max bars in history/chart, it does not force the Terminal to download them.


avatar
15
cunkiz 2010.02.14 15:01 

Great solution fai :)

Back to topics list  

To add comments, please log in or register