2 - 3 minute charts

 

Hi all:

Is there a way to turn 1 minute charts into 2 or 3 minute charts and have indicators calculate based on the 2 or 3 minute bars?

TIA

 
Thruline:
Hi all:

Is there a way to turn 1 minute charts into 2 or 3 minute charts and have indicators calculate based on the 2 or 3 minute bars?

TIA

Thruline,

You can use the period_converter under script. Drag it on M1 chart, check on allow DLL imports, it is defaulted to 3 for your m3 or change to 2 to get the m2. Save it, Open offline chart, choose the m2 or m3. Walaaah, you now have a chart converted to M2 or M3. Make sure you keep the m1 chart open.

We use M2 and/or M3 for our emini charting.

ENJOY!

fxcruiser.

 

Thruline,

This m3 chart for ER2M7 will give you some idea. BTW, if you are trading eminis, you maybe interested to join this new emini Co-Learning Center - Trading Room I am starting this coming week. We will focus on YM and ER on M2 and M3 on WHC Trader 4 charting, respectively. We will be joined there by some seasoned emini traders who are using Tradestation/eSignal for their charting. If you are interested, please let me know and I will be happy to give you access to it.

ENJOY!

fxcruiser

Files:
 

Cruiser, thanks (again). I am interested in checking out the trading room.

 
fxcruiser:
Thruline,

You can use the period_converter under script. Drag it on M1 chart, check on allow DLL imports, it is defaulted to 3 for your m3 or change to 2 to get the m2. Save it, Open offline chart, choose the m2 or m3. Walaaah, you now have a chart converted to M2 or M3. Make sure you keep the m1 chart open.

We use M2 and/or M3 for our emini charting.

ENJOY!

fxcruiser.

Question?? Will the 2 - 3 minute charts continue updating in real time or is it only on offline??

Dave

<<<

 
1Dave7:
Question?? Will the 2 - 3 minute charts continue updating in real time or is it only on offline??

Dave

<<<

Hi, from period converter code:

/*

Readme:

I. Features:

This is an improved version of period converter for MT4 based on the

MT4's default period converter by metaquotes.

The default period converter script do not support real-time refreshing,

and consume lots of CPU (50%-9x%) making the whole system slow.

Also, the default one is a script which do not save when you exit MT4,

so you have to apply every converter script again after restarting, quite

annoying.

This one fixed all above problems:

1. Real-time updating or custom interval millisecond level updating.

2. Low CPU cost, average 5%-10% or less.

3. Works as an indicator, so can be saved and reloaded during restart.

4. There is no one converter per chart limitation as it is not script

any more, you can only use one window as source to generate as many

new timeframe chart as possible.

5. Auto updating if there is new history block loaded.

II. How to use:

Copy the mq4 file to your MT4 indicators folder (experts\indicators)

to install it as an indicator, NOT script. then in the custom indicator

list, attach period_converter_opt to the chart you want.

It support 4 parameters:

PeriodMultiplier: new period multiplier factor, default is 2

UpdateInterval: update interval in milliseconds,

zero means update real-time. default is zero.

Enabled: You can disable it without remove it with this option.

Other parameters are comments or for debugging, it is safe to ignore them.

Also Make sure you have Allow Dll imports option checked in common tab or

it won't work

After that, File->Open Offline to open the generated offline data. then

the offline data will be updated automatically.

As long as you keep the source chart open and the converter indicator

running, the generated chart including indicators inside will always

be updated. also you can close the generated chart and open again

later from File->Open Offline without problem.

If you want to quit MT4, you can leave those offline chart as other

normal online charts. when you start MT4 next time, those charts will

also be loaded and updated.

III. Notes:

1. Do NOT uncheck the "offline chart" option in offline chart common properties.

or after MT4 restart, it will treat that chart as online chart and request

the data from server, resulting empty chart window.

2. You can attach more than one converter to same window with different

PeriodMultiplier, e.g: you can attach 3 converter with

PeriodMultiplier = 2, 4, 10 to M1 to generate M2, M4, M10 at the same time.

It is even ok to use the M1 chart to generate Hourly chart like H2, which

only cost a few more CPU resource during initial conversion. but usually

most server don't have much data for those short period. resulting the

generated data isn't long enough for long period. so it is suggested

to use Hourly/Daily charts as source when needed.

3. The real-time updating mode updates quotes as fast as possible, but as

this is done via script, and MT will skip calling start() function when

your PC is busy and lots of quotes income. anyway, this seldom happen,

and you can at least get 10 updates each seconds which is much more

than enough.

4. The offline chart don't have a bid line showing in chart, but all data

in the chart including the indicators is still being updated,

so don't worry. you can show the bid line by unclick the "offline chart"

option in chart properties. but which don't helps much and if you forget

to check "offline chart" option before exit. it will cause errors and

become empty on next startup. you have to close the window and open

again from File->Open offline, which don't worth the trouble.
 

Would you be so kind and post the better version!

Dave

<<<

 
1Dave7:
Would you be so kind and post the better version!

Dave

<<<

Read this: https://www.mql5.com/en/forum/175504

 

This is awesome. Too bad they haven't figured out how to do tick charts yet. That would be very useful.

 

How Can I Get 2 Minute Offline Charts?

Greetings,

Does anyone know how to get 2 minute offline charts on pairs that don't show that as an option? I can get 2 minute offline chars on most pairs, but some pairs only give options for "5 minute", "1 hour" or "daily".

When you go to "File", "Open Offline" all the pairs come up, and you will see that a number of pairs do not have 2 Minute offline charts.

Anyone know how to get these?