PDA

View Full Version : Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4



Pages : [1] 2

luluatitia27
02:23,
Last update: Feb 17, 2014 , uploaded sample templates. (Build 600 harmonious ).
Last P4L PeriodCon.mq4 upgrade: Feb 14, 2014, uploaded P4L PeriodCon 509. Ex4 (still v1.11)
Last P4L getPeriodSymbolTimeshiftsecLib.mq4 upgrade: Apr 01, 2011, published first launch v1_0

There have been a number of variations of period converter progr that were first created in late 2005 and then upgraded into early 2006, but since thenthere have never been any upgrades (to my understanding ) or answers to a number of the limitations -- till now.

A new version (gt;= v1.6) is supplied which I have renamed to P4L PeriodCon.mq4. (It's a derivative of previous variants called: periodcon.mq4 (v1.5 and v1.4), Period_Converter_Opt. mq4 and Period_Converter. Mq4 Previous authors (if known) are imputed in the origin, and also their earlier contributions are graciously acknowledged).

New attributes:

* (Additional in v1.11) Variable InvertChart was added. If set to True, an chart is output using the I as a prefix to the symbol name. (e.g. iEURUSD)
These external variables also apply:
InvertedOutputMultiplier = 1.0 The inverted prices are InvertedOutputMultiplier/price.
InvertedOutputDigits = -1, where -1 is Automatic, or so the user can manually set to gt;= 0
Example: Invert USDJPY to get iUSDJPY (same as JPYUSD). Establish InvertedOutputMultiplier=1000.0, also set InvertedOutputDigits=3 (or 4). A price of 79.275 would generally invert to 0.012614 but using these overrides, inverted price would be 12.614

* Multi-chart live-updates work! The old versions could just live-update (tick-by-tick) a *single* offline chart using a specified name. You can generate, e.g. an M20 (offline) chart and open it, but if you opened a 2nd-Nth window(s) of the same M20 (offline) chart, these did not get live-updates! With a few tips from FF user rangebound (Thanks!) , a new approach was invented that updates and finds as several charts of a specific title as you open. (FYI, if you just open ONE of every offline chart and if you want to save CPU, there's an external factor (LiveUpdateMultipleCharts) you can change to false. But in my experience CPU performance hasn't been a problem with the new multi-chart method).

* Complete support for timeshifts (offsets) for any interval chart. Previous version v1.5 had the capability to generate a single Daily chart with one timeshift, but this new version can open several charts -- and of any timeframe, not only Daily -- in which the user can specify any timeshift cancel desired (plus or minus). HOWEVER: The timeshift *must* be an exact multiple of the origin interval: 90min timeshift is authorized on a supply M30, M15,... or not as, but prohibited on H1(60min) because it is not an exact multiple (i.e. 90/60 equals 1.5 that isn't an exact multiple such as 1,2,3,...).

* Timeshifts are currently specified either in #bars, or together with the new number structure, H.MM,... or both can be utilized (as of gt;= v1.7).

Change the external factor TimeShiftAdd_in_HptMM out of 0.0 to a number. Examples:
1.0 Timeshift 1hour forward (later). If your broker time states 22:45:00, subsequently the timeshifted offline chart time will probably be 23:45:00
0.9 Timeshift 90 minutes forward.
1.3 Timeshift 90 minutes forward (like in 1 hour 30 minutes = 90min complete , same as 0.90 )
-0.20 Timeshift 20 minutes backward (sooner ).
-5.0 Timeshift 5 hours backward (To get a GMT broker period, the chart would then exhibit NY local time)
(Reminder, the timeshift must be an exact multiple of the origin interval (in minutes) ).

Should you prefer setting bars, then use variable TimeShiftAdd_in_Bars (in gt;= v1.7). The timeshift (in minutes) is subsequently the #bars * Stage (of the origin chart).

NOTE: These two variables for timeshifts are BOTH in effect and the values will combine (transformed to minutes) if you use both variables.

The very evident appliions of timeshifts would be:
- Open a chart using a timeshift such the X-axis displays your regional times rather than the broker times.
- With a single MT4 feed, produce H4 and Daily charts in which the daily 00:00:00 new bar time was shifted by any number of hours, to see the very same candles as are seen on additional broker feeds that have a distinct native broker time (e.g. GMT vs. GMT 2 vs. GMT-17 etc.) You can pick if you would like new Daily candles to happen at London open, NY open, NY close, etc..
- Produce M45 candles but shift the bar start time as desired, to align using a time such as NY open (8AM ET) or NYSE open (9:30AM ET).
- Buy a 1minute headstart on a bar close by shing it 0.01. (How? Utilize an M1 chart to generate a higher TF chart timeshifted from 1M)
- Generate a Daily chart with 5-bars-per-week rather than the common 6-bars-per-week! Example: Imagine your broker time is 00:00:00 exactly the same time as GMT. NewYork is GMT-5 that is 19:00:00. Your broker closes on Friday lt; 17:00:00 NY and reopens on Sunday gt;= 17:00:00 NY. Your Daily chart has. Thus, you can generate an offline xxxxxx 2H,Daily chart which will remove the Sunday bar *! If your broker has just 24*5=120 (or less) bars-per-week, and if you currently have a brief Sunday (or Saturday) Daily bar on your chart, then you can choose a suitable timeshift to eliminate your extra (brief ) Daily bar!
- Traders who search for candlestick patterns can try unique timeshifts to find out whether a pattern is more (or less) successful for timeshifted vs. standard broker time.

* As before, one can still add multiple examples of the indior to a single source chart to generate the information for multiple, distinct timeframe-or-timeshifted offline charts.

* A discreet variety of popup Alerts have been added to notify the user of their offline chart title, and whether there were any issues with generating the desired chart. These happen when you add the indior to the origin chart, or when you restart MT4 using a session that has a chart with this indior attached.

* A lot of people like to use indiors such as CandleTime.mq4 to display the time remaining for the bar. However, for timeshifted information, a few indiors (such as those ) do not operate unless modified suitably. A new version v1_2 of my P4L CandleTime.mq4 indior was posted that can be used with the timeshifted offline charts. Please get it from the thread: New very trendy CandleTime and session period Clock indiors
(Note, a new v1_3 (not published yet) will be asked to support charts gt; 1 Month period).

How to use:
* Duplicate this indior to C:/Program Files/__your_MT4_broker__/experts/indiors/
Review the origin together with MetaEditor, Save Compile any adjustments to defaults. Quit and restart MT4.

* Open a source chart of a lower-timeframe that is a multiple of everything chart that you need to generate. If you'd like a Daily chart with hourly offsets compared to your normal Daily chartyou can open an chart or lower. (Note, you can choose any origin TF but you'll only generate info for just as much information as is on your origin chart. If your M5 has 4 months of information, if you would like to generate Daily charts, you would probably prefer to use H1 as origin as it would probably have several more months/years of information. If you would like to use a timeshift, the value (in minutes) should be an exact multiple of your origin chart interval (in minutes) (e.g. 90min/M30 is lawful but 90min/H1 isn't ).

* Insert this indior to the origin chart. NOTE: On the frequent tab, you must check the box to permit DLL imports.

* As desired, change the values for the variables PeriodMultiplier or TimeShiftAdd_in_HptMM (or even TimeShiftAdd_in_Bars), and some other external factor. Example: Open an EURUSD,H1 chart, insert this indior and set PeriodMultipler=24 and a timeshift = -2.0. It will generate the information to get a EURUSD-2H,Daily chart.

* Next, use the menu command: File Open offline (go down the list to find the exact chart title generated, i.e EURUSD-2H,Daily). Select it and click on Open.

* FYI, if you would like to output the generated chart data into a CSV file, alter OutputCSVFile from 0 (HST just ) to either 1 (CSV HST) or 2(CSV Just ). The csv file will be output into the folder lt;your_MT4gt;/ / experts/files/ /

Limitations:
* If your generated chart has changed the Symbol() title (which comprises all TimeShifted charts! ) ) , you won't be able to use that chart with EA's or alternative indiors that require the original Symbol() title in order to work. Neither will you view live trades displayed on that chart. Why? Your broker just knows about the official Symbol titles (e.g. EURUSD). An EA can set a trade of the Symbol, also MT4 can exhibit the Buy/Sell/SL/TP lines for trades on all charts with the Symbol name. But if you have a TimeShifted chart, the Symbol title may have changed, for example, to EURUSD 7H. Your broker doesn't understand anything about that new Symbol name, so you can't exchange it directly, and MT4 won't exhibit live trades on TimeShifted charts. Assuming you have access to this MQ4 source file, your code can probably be modified to set trades if it understands the initial Symbol() name. File P4L getPeriodSymbolTimeshiftsecLib.mq4 under is supplied for this function, but it is your choice to alter your MQ4 origin code.

* Because of a MT4 limit, in order to open any offline chart using a bar period of greater than 1 Month (30 days), MT4 must be duped by telling it the period is lt;= 1Month. To inform the user what the true period is, EITHER the symbol name is changed, or the period is changed (FYI, the period is obviously wrong for charts gt; 1 Month; this can be a consequence of the MT4 limits ). For the following discussion, keep in mind that a chartname is emblem,period.

In gt;= v1.8, variable Over_1MN_alters_Symbol_name Is true by default. This method is a lot easier to determine at a glance what's the actual chart period, but it's less compatible with a few indiors (especially MTF, a.k.a. multi-time-frame) that need the original Symbol() title to be unmodified.

If Over_1MN_alters_Symbol_name = true:
An _x# is added to the Symbol title, in which # is the PeriodMultiplier. Case in point:
EURUSD_x12,Monthly (This is 12 months, i.e. a Annual chart!)
Due to an MT4 limit of 11-characters for its symbol name, if the user specifies also a timeshift and/or a sizable PeriodMultiplier, the symbol name is hacked in various creative approaches to shorten it so MT4 can manage it. By way of example, a Monthly chart with PeriodMultiplier =12 and TimeShiftAdd_in_bars = 1 could be:
EURUSD 1Nx12,Monthly (ILLEGAL 12 character name!)
EU 1N_x12,Monthly (shortened symbol name). (Note 1N is 1 month shift!)

If Over_1MN_alters_Symbol_name = false:
rather than altering the Symbol() title, the Period() is altered rather from the formulation Period() - PeriodMultiplier. The Period() in this instance is the *source* chart period, which in common practice when creating charts over 1-month (30 days) will be likely to be either PERIOD_MN1 (43200), or PERIOD_W1 (10080) or even PERIOD_D1(1440). Cases:
A monthly source chart with PeriodMultiplier=2 will generate: EURUSD,M43198
A weekly source chart with PeriodMultiplier=5 will generate: EURUSD,M10075

Note: 4 hour charts are PERIOD_H4(240) but might require a multiplier of at least 180 to exceed 1-month bars. It will work but it will be confusing to try. (FYI, irrespective of timeframe, if Period() - PeriodMultiplier is adverse, an arbitrary value of 101 is used instead).

Note2: Whatever this setting for Over_1MN_alters_Symbol_name, in the generated chart, the significance of Period() is a lie! If you attempt to utilize indiors that need an accurate value for Period(), it's going to be wrong and your indior origin has to be changed to fix this. If the variable is true, the authentic period is found by decoding the Symbol() title, finding the Number after xray, and multiplying it times the Period() value. If instead the variable is false, the authentic period is found by noting it is slightly less than one of PERIOD_W1, PERIOD_MN1 or even PERIOD_D1, calculating the gap, then multiplying the gap times the PERIOD _ * value. This is complied... sometime in the future, I plan to post a routine to perform this conversion which you can incorporate into your indiors. (UPDATE: See release of P4L getPeriodSymbolTimeshiftsecLib.mq4 below!)

* As previously, you can't generate a chart that has the same period as an already present normal timeframe: M1, M5, M15, M30, H1, H4, Daily, Weekly, Monthly (and on some brokers like Oanda, M10). But as it exists, there's absolutely no point in doing so. HOWEVER, if you want one of those standard charts but timeshifted by some level.

* Many indiors are not compatible with those generated charts. Any timeshifted chart informs the user how much the shift is by altering the Symbol() name. In case your origin chart is EURUSD and you timeshift by 15 minutes, then the offline (new) Symbol() title is EURUSD 15M. Many indiors and scripts do not care about what the symbol name is exactly, but some of them perform. (ALL EA's that require transactions DO maintenance, and are not compatible unless altered!) Thus, offline charts may not be compatible with some progr unless they've been properly modified to account for this Symbol() name change (AND also, if needed, account for the fact that the bars are timeshifted relative to the broker time). Also note any indior that's hardcoded the standard timeframe values may need modifiions to work with non-standard timeframes like M10, M45, H2, etc. (UPDATE: Watch release of P4L getPeriodSymbolTimeshiftsecLib.mq4 below!)

* In MT4 when you open an offline chart, it doesn't utilize your Default chart template (if you have one), however you can just manually load any desired template. (UPDATE: Solved! Save a template then offline charts will open with that default option. A WARNING, however: In your offline saved-template, you MUST check the F8CommonOffline_chart checkbox or else you'll receive blank charts that say Waiting for Update).

* Version 1.8 created so-called Annual charts, but the starting month was arbitrary (and so somewhat useless). Version 1.9 addressed some of those problems with higher-TF charts.

Thinking ahead:
Please note this indior is written for MT4. The new MT5 version (released in 2010) can already generate charts with more or less any time (i.e. M2, M10, M20, M1234, H2, H8, etc.. NOT sure about gt; Monthly(?) ) . I don't have any idea if an ability is already supported by MT5 or not. If you know the solution, please comment. (Thus far, the response was no).

UPDATES:
2009-11-13: First release of P4L PeriodCon.mq4 v1.6 (Was downloaded 68 times ).

2009-12-07: Released v1.7 upgrade of P4L PeriodCon.mq4 (had been downloaded 16 times ).
Thanks to circlesquare, a method to make charts gt; 1 Month was found. MT4 can be duped by (falsely) marking a chart as Monthly or less even though the information remains gt; 1 Month-per-bar. However, to visually tell the user what's the actual period, the symbol name is altered to add _x# (e.g. EURUSD_x12,Monthly is really a Annual chart! Also added back in the TimeShiftAdd_in_Bars variable which is simpler for timeframes.

2009-12-10: Released v1.8 upgrade of P4L PeriodCon.mq4 (had been downloaded 1407 times ).
Added new variable Over_1MN_alters_Symbol_name (true by default). This is actually the more readable format employed in v1.7, but putting it to false will alter the Period() value: Source-Period() - PeriodMultiplier. This later method leaves the Symbol() name unchanged (provided that timeshifts are zero!!) Making generated charts a bit more compatible. (Note, for charts gt; 1-month, the Period() is always a lie -- that was necessary to get around an MT4 limit ).

2011-03-23: Released v1.9 upgrade of P4L PeriodCon.mq4 (had been downloaded 3828 occasions ).

Changes:
* Fixed some of the problems with higher timeframe charts (e.g. per week ) that resulted in the start-of-the-bar to be irregular (i.e. a week should start the start of the week, either Sunday or Monday, not a Thursday for instance ). Some timeframe charts that involve timeshifts might or might not work, because the method to slit the origin bars up and alloe them isn't perfect. This version, however, is far better than v1.8


2011-04-01: First Release v1_0 of P4L getPeriodSymbolTimeshiftsecLib.mq4

New:
* This libary file can be included in your MQ4 indior/script/EA source documents to translate the Symbol() and Period() values as altered by the P4L PeriodCon.mq4 indior. The library routine returns values, symbol, and the period. It's all up to the user to properly incorporate the values.
* Two use versions are described in the code, possibly to call the routine in a separate library file, or to include the 3 essential routines in your source code.
* Note: This is brand new code and was tested for a few typically generated charts. It hasn't been tested for each possible chart multiplier/timeshift mix. Report any problems found by submitting to the ribbon.


2012-10-18: Released v1.11 upgrade of P4L PeriodCon.mq4

Changes:
* Variable InvertChart added. If set to True, an chart is output having an I as a prefix to the name. (e.g. iEURUSD,H1)
* New external factors:
InvertedOutputMultiplier = 1.0 The inverted prices are InvertedOutputMultiplier/price.
InvertedOutputDigits = -1, where -1 is Automatic, or so the user can manually set to gt;> 0
Example: Invert USDJPY to get iUSDJPY (like JPYUSD). Establish InvertedOutputMultiplier=1000.0, and set InvertedOutputDigits=3 (or 4). A price of 79.275 would normally invert to 0.012614 but with those overrides, inverted price will be 12.614
* Altered the principal preliminary popup message to
P4L PeriodCon: Do FileOpen_Offline of chart: EURUSD,H12 (offline) (Time shifted 0min) and KEEP this Resource H1 OPEN!

2014-02-14: Uploaded P4L PeriodCon 509.ex4 (still v1.11)

Changes: None. (It is the same origin as is posted). It was compiled using build 509, and it appears to be compatible with all the new assembles gt;=600.
Fyi, the submitted v1.11. Mq4 (source) document isn't compatible with all the new builds. The source file will need code changes for the new build. (I've no plans to do this ). In the event you have to make custom edits, you can use your own (old) backup of 509, or even find the 509 MetaEditor posted everywhere that you can use to edit and then re-compile to make your own. ex4 file.

2014-02-17: Uploaded sample 509 templates (Construct 600 compatible)

Changes:
Two sample templates are offered below. They are identical, except with respect to.
One supposes use of P4L PeriodCon 509. ex4. The other assumes use of P4L PeriodCon.ex4. (Both based on v1.11).
I do not care which name you use for the base indior. Your choice.

Use the Proper template with any H1 chart. It'll generate two offline charts: foundation 7H,H4 and foundation 7H,Daily

The generated H4 and Daily charts are timeshifted from 7H. Why? These are intended for use with GMT-5 broker feeds (i.e. people who match NewYork U.S. Eastern Time). In case you have such a GMT-5 broker, you can use this template to generate GMT 2 charts. Fyi, GMT 2 Daily charts normally have 5 -Daily-bars-per-week, and 30 -H4-bars-per-week. GMT-5 charts (and most every Other time feed) have 6-Daily-bars-per-week, and 31-H4-bars-per-week. I love to compare the two, since the broker feed impacts, for example, the slopes of trendlines, pitchforks, etc..

New users: Regardless of your broker GMT ?? , use these templates to get started, simply to show you can generate and start offline charts. Then customize the settings and create your desired template(s) that fit your own needs. If you'd like M10 or H2 charts... then customize. If your broker has a GMT counter, then use a timeshift value to customize as desired.

Shades:
The snowy charts are native timeframes, the black ones are generated offline charts. (FYI, it is possible to change the colours of offline charts exactly as with any other chart).
Notice that the non-standard timeframes generated (M10, M45, H2, H8).
Notice that the time-shifted Daily charts with 2H and -1H. A Daily chart is involving them. Notice how the new P4L CandleTime.mq4 indior displays different numbers of hours for each Daily chart before the pub closes for each of those charts. The 2H has 17:29:21 remaining, routine has 19:29:21, and -1H has 20:29:21 remaining.

-----------------------------------------------
FYI, see also: Collection of progr by
-----------------------------------------------

These and other progr I have submitted are *free*, but donations are welcome! PayPal into _at_yahoo_dt_com
https://forexintuitive.com/attachments/15190378541504218880.png
https://forexintuitive.com/attachments/15190378571388785989.png
https://forexintuitive.com/attachments/15190378591219852415.mq4
https://forexintuitive.com/attachments/1519037861247275127.mq4
https://forexintuitive.com/attachments/1519037863603982864.ex4
https://forexintuitive.com/attachments/1519037866881946607.tpl
https://forexintuitive.com/attachments/15190378681134254337.tpl

luluatitia27
19:00,
100964
Edit: I see your point now. For some reason my test was faulty. I think I used my test code on the wrong chart. duh https://forexintuitive.com/attachments/1529238574.png
Sorry about that.

It is technically a bug with using timeframes above monthly together with the newer naming scheme.

...
Printing (Symbol());
Printing (60 tf previous pub open time=,iTime(Symbol(),60,1));
Printing (240 tf previous bar open time=,iTime(Symbol(),240,1));
Printing (current tf previous bar open time=,iTime(Symbol(),0,1));
Yes, Symbol() on a 2-Month chart returns EURUSD_x2, and that's why it won't work on the lower timeframes (60 and 240) which return 0.

I will see a benefit to leaving the Symbol() title unchanged for the higher timeframes, but you will still be in a position of having to repair your indior code if anything else in it relies upon accuracy from a Period() command, because of these higher timeframe (gt; 1 month) charts, it's likely to lie about the true interval. (e.g. Period() will return 43200 with this chart even though 86400 is the genuine period).

Do most indiors that use MTF references completely ignore what Period() returns? It all depends upon what's being calculated but it appears to me as if most would need an accurate interval () as well as an accurate Symbol().

But because of MT4 limitations, a compromise is required (and possibly I made the more difficult choice of changing Symbol() instead of Period()??? Maybe so.)


My strong solution (not implemented yet), would be to write a process that you use on your indior(s).

Define top factors before init() and begin ():
series emblem;
int period;
int timeshiftmin;

In your init() routine, you operate:
getSymbolPeriodTimeshift( emblem, interval, timeshiftmin); // 3 outputs

Everywhere else on your app, you replace some Symbol() or NULL reference in the job of Symbol() with emblem (the variable). Also replace any Period() reference with interval.

The getSymbolPeriodTimeshift process would get for you the genuine symbol name and true period. In most progr long as timeshiftmin = 0, it is possible to make the two substitutions and it'll get the job done. If timeshiftmin is NOT 0, then... the modifiions into account for the timeshiftmin will require more thought the way to alter your own program. Most likely, you would like to use Symbol() (which includes the timeshift) however utilize the interval variable to acquire the genuine period worth.

Not certain how soon I will write that...


Do you have examples of indiors that don't rely upon Period() to be accurate but DO rely upon Symbol() to be accurate? If you can share, upload a few examples or provide links. That's the perfect way to ensure compatibility as I make modifications to the P4L PeriodCon.mq4 program.

Kent

sarajg97
20:21,
90691
you'll nonetheless be in a situation of having to fix your indior code if anything in it depends upon precision from a Stage () control, because of these greater interval (gt; 1 month) charts, it's likely to lie about the authentic interval. (e.g. Stage () will return 43200 with this chart even though 86400 is the genuine period). That is true with all the latest 1.7 version.

If you examine this line 588:
FileWriteInteger(FileHandle, NewPeriodDisplayed, LONG_VALUE);

I think NewPeriodDisplayed should equivalent PERIOD_MN1 - PeriodMultiplier at that point, but now it's 43200. Consequently, if you can change your code to permit for that, you'll have interval () functioning. Of course it will not reveal the actual 86400 but it would be compatible with time series works.

I know it works in the version I've uploaded.
Stage () = PERIOD_MN1 - PeriodMultiplier, that provides the desired effect.

So change if I am not mistaken should not impact the naming scheme or anything else. It's only a bug fix for Stage ().

Currently for compatibility, just the Symbol() issue remains and the easiest solution for now is to allow the user the option to turn off or on the naming scheme. When chart is made, they can be notified by the popup .

Shifting indiors can then be an option if you prefer to have the nicer name of chart, but not a necessity if you don't care about the chart title.

Seems good?

ssandraggonzalez
21:42,
90691 recently I saw this in my offline charts various times
restart MT4 assists
What shall I do, to avoid this message?
https://forexintuitive.com/attachments/1529238574.png

luluatitia27
23:02,
90691
lately I saw this on my offline charts several times
restart MT4 helps
What shall I do, to avoid this message? I've seen that message when the generated chart name reported is NOT really the exact same name which MT4 thinks it should be... and in my experience, it can never be opened at the first location.

Your message suggests that you were able to open the chart at least once, and that it helps to restart MT4, therefore, you ought to be seeing the chart at least some of the time, right?

In this scenario, I've absolutely no clue what's the situation. Your system is currently running low on memory or CPU cycles and then you get the message. Restarting MT4 would free up some memory (since MT4 grows as you use a session to look at more charts, etc.).

Maybe you can append specific details: what source chart, what PeriodMultiplier, and also what timeshift used? What broker feed? Pull the Windows Task Manager (cntl-Alt-Delete) and check the memory size of the terminal.exe procedure and CPU% used by the procedure, and how much CPU % is free (System Idle). Give a detailed example...

ssandraggonzalez
00:23,
90691 The updating problem goes with growth in virtual memory above 2 GB.
Second picture shows VM prior to the updating problem, first picture shows VM after I shut MT4.
More info later.
The problem occurs as well with the older Period_Converter. My computer problem is not associated with a program.

Switching brokers was without option. Assessing the harddrive was without solution.
It might be a hardware problem that slows down the system.
Testing with another PC: same problem.
Sorry for the annoyance.
https://forexintuitive.com/attachments/1529238574.png
https://forexintuitive.com/attachments/1529238575.png

luluatitia27
01:44,
90691Released upgraded v1.8 of P4L PeriodCon.mq4 in Post #1

This new version has new outside factor Over_1MN_alters_Symbol_name (true by default, very similar to v1.7).

When creating charts gt; 1-month, the Symbol() name is altered to indie the chart is gt; 1-month having an appended _x#, where # is the PeriodMultiplier. Example:
EURUSD_x2,Monthly (This is really a 2-month chart)
EURUSD_x5,Weekly (This is really a 5-week chart)

If the factor is set to false, then the Symbol() name is unchanged (unless you're ALSO performing a timeshift that should always alter the Symbol() name!) . Instead, the Stage () value is altered as follows:

generated-Period() = source-Period() - PeriodMultiplier

Cases:
EURUSD,M43198 (2 -month chart, where 43198 = PERIOD_MN1 - two )
EURUSD,M10075 (5-week chart, where 10075 = PERIOD_W1 - 5)

For easy reference:
PERIOD_MN1 = 43200 (30 days, in minutes)
PERIOD_W1 = 10080 (7 times )
PERIOD_D1 = 1440
(It isn't anticipated to use some other source-period lt; PERIOD_D1 to generate a chart gt; 1-month; while it could operate, the derived period will likely be extremely confusing, and if negative, driven into an arbitrary value of 101).


If you're creating a chart gt; 1-month, a popup alert will remind you of this new factor.


Why this new attribute? Circlesquare has requested this since some indiors need the Symbol() name to be the first name, particularly MTF (multi-time-frame) indiors. But, these very same indiors have to be indicative of an incorrect Period() value in the generated chart, since due to an MT4 limit, this Stage () value has to be forced to become lt;= PERIOD_MN1 (43200). To put it differently, Period() will return a lie, no matter what, for charts gt; 1-month.

Whatever indiors you use on generated charts must understand how to manage changes to Stage (), Symbol(), and also any timeshift. Those indiors may need modifiions to operate properly which charts.

I plan to develop a pattern that can convert those complied name adjustments to Symbol() and Stage () for generated charts into their true values, but I'm not Certain when I'll get to it...

Kent

sarajg97
03:05,
You made this item feel complete. The last period converter we would ever want https://forexintuitive.com/attachments/1529238575.png

Thanks

ssandraggonzalez
04:25,
Updating problem appears to be solved after conducting a registry cleaner and increasing memory.

PuesPareceQue
05:46,
90691Hi really enjoying the indior as a result of your assistance. What I don't seem to be able to do would be get time altered charts functioning.

I seem to be able to load a H2 chart from the H1 base chart and they both update very well as normal. But when I try to load the following H2 chart shifted by 1 hour to run at the same time as the 2H chart and also the 1H chart I can get 1 of the charts to upgrade in sync with the bottom 1H chart. Quite simply if I am running a 1h chart, a two hour chart and a chart I can make 1 of the 2 hour charts upgrade while another one remains static.

It's essential to have a seperate 1 hour chart open for every seperate timeshifted chart generated?

Hope I am making myself clear.

luluatitia27
07:07,
90691
Hi really enjoying the indior as a result of your previous assistance. What I don't seem to be able to do is get multiple time shifted charts functioning.
...
Is it crucial to have a seperate 1 hour chart open for every seperate timeshifted chart generated? Hi Majestic12,

I don't know what the issue is because it's working fine for me. It is possible to attach multiple P4L PeriodCon cases to a single H1 source chart as long as the parameters are exceptional (either PeriodMultiplier and/or timeshift). It's possible to open 1 or more of every generated chart and they all should update real-time. I even tried another experiment which is to start a 2nd *origin * H1 chart to which I included the exact same two PeriodCon cases (PM=two, timeshift = 0 1). In effect, this double-creates the offline charts (which I don't recommend; this was only an experiment!) . That worked...

Attached is an image of the origin chart, GBPJPY,H1. One of them has a timeshift in #bars = 1, although it has two PeriodCon cases, both with PeriodMultiplier = two. Chart GBPJPY,H2 and GPYJPY 1,H2 are both currently upgrading live with every tick. (Not shown: '' I opened added windows of every and they all update live).

Maybe your virtual memory is running low similar to some former user??

Double-check the Alert popup for the chart names and be sure you opened the proper named charts. If you quit and restart MT4, you will get a fresh popup indiing all currently generated charts. Verify that the names of xxxxxxx,H2 and xxxxxx, 1H charts are listed, and if they're, they both ought to update.
https://forexintuitive.com/attachments/15292385892144473950.png

PuesPareceQue
08:28,
90691 Thank You for the Answer. From the picture you can see I have 6 charts open that are modifiions of the 1 hour origin chart in the top left hand corner. The 1 chart is updating while the rest of the charts won't upgrade. If I used to reopen the H2 chart new chart would begin updating and the 1,2H chart would suspend. The alert window comes up whenever I start a new profile start up metatrader. It doesn't seem like the same problem another user and don't seem to be experiencing any memory problems. I should mention I have another 6 profiles with the ssame setup on distinct pairs and the dilemma is the same on those profiles.

The last chart opened appears to upgrade ok but the previous chart that has been updating then stops as soon as the new chart begins so I could only ever have 1 timeshifted chart updating at a time.

Any ideas if there is anything I have missed or may attempt?
https://forexintuitive.com/attachments/15292385921201542100.png

luluatitia27
09:48,
90691
Thank you for the response. From the picture that is added you can see I have 6 charts open that are modifiions of the 1 hour source chart in the upper left hand corner. The 1 chart is upgrading while all the charts will not update.
...
Any ideas if there is anything I have missed or may attempt? Sorry, your picture is too low a resolution for me in order to clearly see details. I see at least one issue: Your popup message was Offline chart not created because it already exists: H4, CADJPY 1 H.

This message is intended for when you attempt to generate a normal interval such as H4. Your logo name is not simply CADJPY but instead CADJPY 1H. This tells me you just added the indior into a generated chart termed CADJPY 1H,zz = H4. This is improper use, because the indior should only be added to normal timeframes charts, and never added to generated (offline) charts.

A number of the other popup alerts indie a similar improper use, meaning that the indior was added into a generated chart instead of a typical interval chart.

For example: CADJPY 3H,H8 (Time shifted by 0min )
(The highlight red tells me that the issue... Q: How could you maybe have a 3H shifted chart yet the log says shifted by 0min?? A: The indior was added to a generated chart, not a source chart.

Your popup includes a list of charts that are being actively generated by your MT4 session. The resolution is too bad to read the facts, but I'm pretty certain that you are not generating a number of the chart names in your screen they aren't going to get upgraded! I am able to see messages for,H6 and,H8 and,D1 but nowhere do I see that a proper,H2 or,H3 chart that you are displaying. (If your listing is longer what your picture shows, then that picture is of no use for debugging the issue. The purpose would be to see every offline chart title specifically listed in the popup listing of charts upon MT4 restart. If a chartname is not listed, it won't update -- easy as that).


Bottom line: You have to add the P4L PeriodCon indior simply to normal timeframe source charts. The messages indie you added it to generated (offline) charts instead. What's more, you do not seem to be generating each of the desirable offline charts -- double-check the popup listing of names vs. your receptive offline charts.

PuesPareceQue
11:09,
906912 Structure (s) Thanks. I have been creating the charts I am using form the customary 1H chart so that can not be the issue. I've experimented doing things that comes up.

I've posted an image where the two charts on the left have been updating and the person on the right is not. If I started another chart now using the 1 hour source chart then the new chart would start updating and the previous chart that was updating ( the one at the middle) would freeze.

I have also included a larger picture of the alarms window that you will be able to read much better.

Since you can see I just have 3 charts open on this profile but there seems to be many more charts listed in the alarms pop-up. Is there some type of difficulty with this?

Hope this will help as I really need to get it working properly. Ta v much.
https://forexintuitive.com/attachments/152923859534094087.png
https://forexintuitive.com/attachments/15292385981621564432.png

PuesPareceQue
12:30,
90691Hi, simply to add I see what you mean about incorporating the indior into the generated charts. This was happening as I was shifting the charts to a template that comprised the indior after creating the charts. I have stopped using the template together with the indior on generated charts and I am unfortunately still having the same issue. Hope that this is clear.

luluatitia27
13:51,
90691If you have just 3 charts GBPJPY that is available, and you should not find any mention of CADJPY should you restart MT4, so if you do, something is tainted with your MT4 session.

If you see numerous messages of the exact same chart name being generated, something isn't right. You should only see one popup alert per P4L PeriodCon. In case you've got more than one they are fighting with each other wanting to concurrently update the very same data file, which is likely the reason why the updates are neglecting.

Go through each chart and click Control-I to find the listing of indiors. You have only 2 instances of P4L PeriodCon, one that is creating the,2H chart, the other to generate the 1H,2H chart.

Confirm your offline charts don't have some P4L PeriodCon attached.


If none of the above explains it, I would propose your MT4 session is corrupt and you need to start over... safest would be to reinstall MT4 from scratch.

As I said, this is working fine for me and others who are doing just what you're trying to do, therefore it ought to function.

PuesPareceQue
15:12,
Ok thanks for your help. Investigate and I will have to work everything you've stated.

PuesPareceQue
16:32,
90691I have found the problem. I used the indior in the incorrect way. I didn't realise you had to add an extra example of this indior into the origin chart every time in order to generate another chart. I was attempting to generate all of the charts from precisely the example of this indior!!!! Thanks for your help. This is the sentence that finally made me click.

Verify you've just 2 instances of P4L PeriodCon, one that is generating the,2H chart, the sole to generate the 1H,2H chart.

FrankJavier
17:53,
96365 Hi Pips4Life

I had been utilizing the P4L PeriodCon to create daily charts of NY near (17:00 NY time) in my GMT 1 hourly charts.

17:00 NY close time works out to be 23:00 GMT 1 time.

As a consequence I entered 23 from the TimeShiftAdd_in_HptMM factor and produced charts I was not expecting. The daily chart produced was starting from 01:00 in the GMT 1 hourly chart.

When I place a value of 1 (not -1) in TimeShiftAdd_in_HptMM, I find the beginning of the daily pub produced was actually 23:00 hour of each GMT 1 day.

The film shows the results of what I'm meaning.

Is how it is intended to be???

Anyways it generates the results I had been wanting, but the logic just seemed a little strange.
https://forexintuitive.com/attachments/1529238600742845155.png

luluatitia27
19:14,
97965
Hello Pips4Life

I had been using the P4L PeriodCon to produce daily charts of NY close (17:00 NY time) in my GMT 1 hourly charts.

17:00 NY close time ends up to become 23:00 GMT 1 time.

As a consequence I entered 23 from the TimeShiftAdd_in_HptMM factor and generated charts I wasn't expecting. The daily chart produced was starting from 01:00 in the GMT chart.

If I put a value of 1 (not -1) at TimeShiftAdd_in_HptMM, I find that the beginning of the daily bar produced was really 23:00 hour of each GMT 1 day.

The picture shows the results...
The logic may be strange, but you guessed out that 1 was the correct timeshift. Regardless of what, figuring out entire world timeshifts could be confusing. I find it really helps to refer to some global time picture such as: http://www.worldtimezone.com/index24.php


When you examine the map, even when NY ET is 17:00, what timezone on earth it at 00:00? Generally the answer is GMT 2. (It also depends upon ST/DST changeover dates and also the time of year, however, GMT 2 is accurate for most of the year).

You said your broker is GMT 1. How can you shift your broker time to get GMT 2? You add 1 hour. That's why you found that a 1 timeshift gave one of the desired chart.

Your attempt to utilize 23 would be erroneous because your native GMT 1 plus another 23 is GMT 24. That's the exact same Daily start time as GMT 0 except that your chart would say it is one day later than it really is (e.g. Tuesday instead of Monday). In case a GMT chart was exactly what you really wanted (GMT 0) then a -1 timeshift could have been best.

In other articles, I've spoken positively about GMT 2 charts because for this particular counter, the daily close is when NY is 17:00. It's the conclusion of a normal world trading day, and with many broker feeds, you'll get 5 Daily-bars-per-week rather than the more typical (and deceptive ) 6-per-week.

HOWEVER, there may be some drawbacks regarding price that I will explain here. In comparing the prices you gave with your EURJPY example, you said the Open at NY 17:00 was 130.785 on Dec 23, 2009. I looked at my broker at the Open Bid price was 130.83. My price was 4.5 pips BETTER than yours. I am not going to say the broker I am comparing yours because it's a working desk and they play games exactly like other dealing desks. (I only use these for charts; I don't trade with this broker). It so happens that NY 17:00 is as soon as the daily interest rollovers are calculated, and Wed Dec 23 would be a triple-interest moment. Trading the Open price at 17:00 ET is a crap-shoot with brokers because the banks are closed for a couple of minutes. No ECN trading is taking place at that moment. Should you put a trade, you are trading contrary to your broker and that's the time of day when they are likely to play their games against you (i.e. requotes, slippage, repricing after the trade...).


I guess that my point is that: The NY 17:00 period has some advantages BUT it is dependent upon how good the feed is out of your broker. If your broker stinks and is much inclined to jack around the prices at this moment, then clearly your Daily pivots and Open prices will be skewed a bit. You need to evaluate the prices from various brokers and decide which you think is best for this NY 17:00 period threshold. I like ECN brokers but a true ECN won't let you put a genuine trade at this exact time (due to daily rollover). If an ECN broker still quotes a live price, it might be helpful, or it might be because it's not a real tradeable price.

If you are trying to calculate highly accurate and reliable pivot points based on Daily Open/Close prices, at 17:00 ET, I figured I would mention these points to your consideration.

FrankJavier
20:35,
97965
if you're trying to calculate highly accurate and reliable pivot points based on Daily Open/Close prices, at 17:00 ET, I figured I would mention these factors to your account. I didn't actually think of the price gapping which should happen just a little bit at 17:00 NY time, though I knew that banks did daily interest rollover calculations then.

But by co-incidence I do not need the daily s/r pivots, dependent on NY close, as I trade candle patterns, overall S/R and trendlines on the Daily and 4 hourly timeframes with that timeframe.

Not realising why daily pivots of NY close didn't work for meI decided to use London and NY midnight pivots for intraday trading.


Thanks for telling me how to use your indior. What I was doing was:
- looking at the number of hours would have to go past for the timezone I wanted. Instead I should of looked in the hours which were different to this timezone my server has been in (which clearly makes more sense).

Thanks for the info...

luluatitia27
21:55,
97153
Thanks for your answer. This is why I am perplexed, as you explained here, because the indi isn't working.

I attached 2 pics. . .you can observe that the M1 chart, the origin chart, has its own first candle like 9:31....but in the event that you look at the next chart, an M47 chart created from the data, the first candle will be at 9:13, and also the second candle in 10:00. . Neither of these candles are 47 minutes following 9:31. Similar to the data is starting somewhere back in time it is. See what I mean?
You are right. It turns out that the bar start period is a multiple of minutes as calculated from Jan 1, 1970.

That said... what does it matter really? The 47min pub isn't a multiple of a day or a week, so regardless of what the start time is on your own M1 chart is, it is going to be irregular and distinct for every single day and week thereafter. Then go for it if you want to modify the program so that the bars do replicate on a basis that is predictable.


FYI, here is a very simple script which retrieves the time value (in sec) for any date. It proves that your M47 2nd pub at 2010.02.04 10:00 is a multiple of 47minutes(*60sec) as compared to 1970.01.01 00:00:00.

Inserted Code #property show_inputs // This essential property for scripts brings up a popup window of the extern factors. Extern string mytime = 2010.02.04 10:00; extern int permult = 47; //p ------------------------------------------------------------------ //| script program start function | //p ------------------------------------------------------------------ int start() datetime mytimesec = StrToTime(mytime); datetime timeshiftminutes = -1*MathMod(mytimesec,permult*60.0)/60.0; Alert(mytime:,mytime, mytimesec:,mytimesec, timeshiftminutes:,timeshiftminutes); return(0);

I am pretty much done on this topic of irregular PeriodMultipliers.

luluatitia27
23:16,
906911 Structure (s)
Hello,

it appears I can't examine the timeshifted data in the StrategyTester. That's a shame, but I would like to utilize the EA on a demo account. Do you have any clue how to modify this EA so it could trade on demonstration from a chart?

Sure, it's an interesting EA. A trailing stop regular could be interesting too. I've downloaded the v1.1 version from the Russian website (thank you). With monitoring stop when I look in MetaEditor I really do see something, however I don't exactly understand what extra features there are, can you?

For the time being, the most... NederPip,

I looked to the EA a bit farther along with the reported results are extremely superior than what could be expected from real trading. The main reason is that if the StrategyTester is utilized, it's not enough to pick the Every tick version for accuracy. You have to be sure that you give it actual data as the foundation for building those ticks in between M1 bars up. Originally, when I ran a test for most of 2008 around the EURUSD, I was impressed with the high profitability of the EA before I realized my MT4 session only needed Daily, H4 and some H1 candles for this time period. It had no data for the M1 bars! Hence, the automatic Every tick version needed to make them up based on bars. Allow me to inform you that a lot of whipsaws happen within an Hourly bar. This EA is based on a premise that if price exceeds the price of the Daily bars' hi/low, have a breakout trade and catch a couple pips. Sometimes that works, but the truth is much more typically the high will be broken, retrace a reasonable sum, then gather steam and create another go of it and break higher still. This EA would not perform well with a in such scenarios.

The Report from the StrategyTester indies the modelling quality in the top right of this report. The reports from the author say. For an EA similar to this, you need it upwards to have any confidence in the Report.


When I tested more recent time periods for which I had M1 bars, the EA was considerably less impressive from the Reports (and this is still based on made-up ticks in between the adjacent M1 candles). My quality was constantly though I had M1 data for my test interval that is selected, although I don't understand why. Somethings not right with my method... (??) .


There is still some possibility of the concept of the EA but I am not sure what else it takes. Perhaps breakouts during areas of the day are better than others. In combination with oscillators or MA's, there might be ways to enhance the probability of predicting whether a breakout will succeed and by how much. Tight monitoring stops I think are crucial.

The 1.1 version of this EA was unusable for me personally due to many bugs. Some changes were made by me but I don't think it has been worked out by almost any way. A 2_0 version was made by me.

I made some changes that I think* might make it work with timeshifted offline charts but I didn't verify, SO, it will most likely have some additional bugs to workout. This EA is a beginning. But, I would go back to find a broker with the GMT # feed, register for a free presentation and just use regular charts .

I do not understand if the trailing stop feature of the EA will work well or not. Brokers limit you can trail a price, typically by 15 pips. It might work out better to utilize a EA that could trail price by much nearer, like 3-5 pips retrace along with your out.

You may try optimizing the EA settings, but certainly try to load M1 bars for the StrategyTester. (I don't know all the details how to perform this in MT4 if the older bars aren't easily available from the broker. It might entail Data import but you'd also have timeshift gaps, also differences between distinct chart timeframes).

Allow me to know how this works out, and especially share if you work out how to turn a profit with it.

Kent
https://forexintuitive.com/attachments/1529238533552278809.mq4

Lu_wrf
00:37,
You P4L! Glad I understand. That script is very useful as well. https://forexintuitive.com/attachments/1529238529.png

Carvalok
01:58,
90691
This EA is based on a premise that when price exceeds the price of the prior Daily pubs' hi/low, have a breakout trade and grab a few pips. That works, but the truth is much more typically the high will BARELY be broken, retrace a fair sum collect steam and create another go of it and break higher still. This EA wouldn't perform well with a in such scenarios. I believe you're right, therefore I had the notion to put SL to ten pips instead of 5.


I created a 2_0 version.

I made some changes that I *think* might make it work with timeshifted offline charts but I didn't verify, SO, it will most likely have some further bugs to work out. This EA is a start. Thank you very much. Your EA tried Now, but I don't know whether it is going to do the job. Yesterday's close (sunday) was equivalent to today's open (1,33123) in GMT timeshifted chart. This could be the reason that I didn't receive a buy and a sell order at the outset of the timeshifted bar of today. I wait tomorrow's new timeshifted bar, but I am afraid that it won't work however... I didn't receive the The price is not satisfied to the market entry condition-error.


But, I would return to my original suggestion to find a broker with the desirable GMT # feed, then sign up for a free demo and just use normal charts for demo testing of the EA. The reason I want to utilize ATC MT4 ECN, is that they are known as an honest broker with the tightest spreads. This EA needs a broker with tight spreads I presume.

Carvalok
03:18,
90691Hello pips4life,

Regrettably, the v2_0 version does't anything at the EURUSD 4H, daily(offline) chart. I really do see a smiley, but no buy and sell orders (as with the original version).

Can you once see whether it works for you (on demo)? Did you check the version on a timeshifted chart?

Markweell
04:39,
103710Hi pips4life -

I moved over your information cocerning period conversions a few times to find out how to generate 8 hour bars real time in my charts, but couldn't know the offline concept like I trade 12 live currency pairs in 1 window and need to observe all 12 cooking at precisely the same moment. MT5 is available from some foreign brokers which I do not wish to cope with as I'm happy with my current broker. I signed up a demo account with you so that I could play the 8 hour bar concept, it worked fine and confirmed my trading idea.

What I want from you when possible, is that you describe how to display 8 hour bars in all 12 live charts at precisely the same moment. No other changes are wanted, just 8 hour bars.

Thanks for your fine contributions to Forex trading.

Regards,

las3marias
06:00,
90691Hello there,

First thanks for some great work.

I only have a question, I think I am doing something wrong. When I try to make a daily chart of 24 candles, everything works good.

However, when I shift this, either back or forth. I cant find open orders on the chartand I cant exchange from the chart.
Dont know this, since the this isn't a problem when I dont shift it.

Sorry if that ia allready covered in a different response. I must have missed it.

Thanks for any response.

Carriebradshaw
07:21,
103710First Ken, let me say that your intelligence might be surpassed only by your kindness.

I wish I had what it takes to code! What drove me here was the following dilemma. On two occasions after studying a news item which said a moving average (today it was the 100 on the eurousd, it didn't define simple or exponential) I found that I could not replicate it on mt4 charts. Today's instance: a news item mentions the 100 MA on the daily being at 1.2814. I'm interested to see if plotting a 5 day accomplishes this. I noticed your preference to unite with monday and read the thread. I think I would go another way and get on friday as that combination could create 5 trading days of trading period that is equivalent. Can this Be accomplished by the time change feature? I apologize if the question betrays my inferior intelligence. ( I'm past my prime; )

Also it sounds like an offline time altered chart is going to plot a two candle gap for the weekend. If this is so, I guess it would groink the moving average. If the gap becomes plotted I wonder if dividing 100 by 7 14ish times 2 for the weekend 28 added to 100 so 128 period ma would get.

I beg forgiveness in advance, but if you could plot a 100 afternoon ma in your daily and let me know what you get for a value, that is a treat. I will be giving this a whirl and I shall reread the thread until I take any more of your time, if I encounter any issues. I hope this message finds you.

Cheers
http://www.aroundfx.com/commentary/euro-falls-fresh-lows
I am looking at price action and wondering if the news item just blew the number and meant to compose 1.2874. Thats within 2 pips of what I see and the price action confirms support inside this zipcode. So perhaps a lot of my ramblings are moot.

Saur_
08:42,
103710Hi Pips
The latest link I download, nevertheless indies FYi V 1.7 once installed?

saralvarezuir
10:02,
103710? Can somebody help me figure out how to go from a Broker period of GMT at GMT -5 for: I have such a hard time wrapping my head around these timezones.
Daily, H4, M30 and M15 charts

Thanks.

Blazase
11:23,
103710It means where you're in NY, your current time is 15 hours behind your brokers moment (-15).

NY Open (8am your time) is going to probably be 23.00 hrs Broker time. ( 23 -15 = 8)

you'll need to use a vertical lines indior to mark the start end of every session to the US London Open until you get your mind round the times your broker shows. You may have to check the DST settings of your broker too.

This thread is more to do with setting a chart interval to one which MT4 does not have ( like 10, 20 mins 2 hour charts etc.. ) and also an option for offsetting the start times of your broker to suit your timezone.

Search the forum to get a vertical line indior or Trading Sessions vLines.

saralvarezuir
12:44,
103710
It means where you are in NY, your current time is 15 hours behind your brokers moment (-15).

NY Open (8am your time) will be 23.00 hrs Broker time. ( 23 -15 = 8)

You will need to use a perpendicular lines indior to mark the start end of each session for your US London Open until you get your mind round the instances your broker displays. You may have to check the DST settings of your broker .

This thread is more related to setting a chart timeframe to one that MT4 doesn't have ( such as 10, 20 mins 2 hour charts etc.) and also an option... It was my perception that this indi will change the candles mimic the different timezone. I tried it using all the H1 chart as my origin and used -7.0 also it gave me an H4 chart that had comparable pubs into a NY timezone chart. I can not appear to determine how to get the Daily, M30 and M15 charts.

Blazase
14:05,
103710You may need to use this indior to correct the counter for your Daily Charts as the brokers midnight will be 15 hours ahead of yours. (place to -15)
The counter for the four hour charts will be 3 hours ahead of you (place to -3)

Your additional charts 1 hour less don't need to be offset as the candles will be the same, no counter will probably be required.

Its since your brokers candle start times are different to your timezone, that the candles may look different, in comparison with an EST broker. You can not change the timescale on MT4 and the charts that you will create will be seen in offline mode. Read the directions about the best way to use it, with the indior.

saralvarezuir
15:25,
103710
you might have to use the indior to correct the counter for the... Ya, I had read the instructions and tinkered with it for a while but couldn't figure it out. You have given me enough information to get the charts I am searching for. Thanks. Funny thing is the Daily charts are the same. . .so I shall leave this one alone. The H4 using the -3 worked out. Although I occasionally I look at the H2 and H1 I prefer zooming to the M30 and M15 TF's for my egies. This may work out great. Just getting modifications in October! Again thanks for helping.

luluatitia27
16:46,
I just noticed I missed a few questions.


Hi -
...
What I would like from you if possible, is for you to explain how to exhibit 8 hour pubs at all 12 live charts at precisely the same moment. No other changes are wanted, only 8 hour pubs. Hi Jay. By now you've had a chance to find it out, but what you want is quite straight forward. For every one of your 12 currency pairs, you must open a source chart, insert the indior and apply the PeriodMultiplier. For example, open H1 charts for each pair and use PeriodMultiplier=8; or open H4 charts for each and use PeriodMultiplier=2. You would then use the Open offline control to open the generated H8 charts for each pair.


Hello there,

First thanks to some Fantastic work.

I only have a question, I think I'm doing something wrong. When I attempt to make a daily chart of 24 hourly candles, everything works good.

However, when I shift it, either back or forth. I cant see open orders on the chart, I cant trade from the chart.
Dont know this, since this is not a problem when I dont shift it.

Sorry if this ia allready covered in a different answer. I must have missed it.

Thanks for any reply. Something does not really make sense for me ... you cannot make a daily chart (without a timeshift) whatsoever since it is a standard chart which exists at MT4. It's possible to make H6, H8, D2, M45, etc. since those are not standard MT4 charts, however D1 (or Daily) is normal.

It does make sense to me when you do apply a timeshift which you cannot see open trades on the chart. The reason is the official chart Symbol() is not exactly the same as the currency pair. Rather the Symbol is some thing like EURUSD 1H. You can't trade any currency called EURUSD 1H EURUSD. Any receptive Buy/Sell orders for EURUSD are exhibited on charts with the same symbol name, however as explained, timeshifted charts have another symbol name.

It *might * be possible to create a timeshifted chart where the symbol name remains EURUSD but it would then be necessary to hack on the Period() worth to a non-real number. For example, a daily chart has 1440 minutes. A timeshift of 1H may be symbolized with Symbol name EURUSD and Stage = 1441. The period value is a lie, and it might well interfere with several indiors/EA's that will be on the lookout for a true period worth of 1440 (minutes). For a variety of reasons, I didn't implement such a feature and don't presently have plans to do so.

Fundamentally, this indior was made to generate some non-standard MT4 charts, BUT, due to MT4 limitations, there's absolutely no ideal solution. Either the Symbol() name is wrong, or the Period() value is wrong, and these necessary hacks have consequences in that not everything works as it should. MT5 at least has the capability to perform any time period. AFAIK, it can't do timeshifted charts which is unfortunate. (I have not attempted to shift over to MT5 ).


Hi Pips
The newest link I download, still indies FYi V 1.7 formerly installed? Thanks for pointing out that. It's an unfortunate typo in the code but is purely cosmetic and has no effect on use or performance. The external variable FYI_Version was left at 1.7 rather than being updated to 1.8, but if you edit the code, then there are many references to it being actually version 1.8, especially the Background: notes. I will fix it if/when a v1.9 is now released.


I will post more answers separate from these.

luluatitia27
18:07,
103710
? Can someone help me figure out how to go from a Broker period of GMT in GMT -5 for: I have such a tough time wrapping my head around these timezones.
Daily, H4, M30 and M15 charts

Thanks. It seems that Shabs19 helped you already (Thanks!) .

I agree that timezones are very perplexing. I frequently refer to the world timezone map located here: http://www.worldtimezone.com/index24.php

Your first references to GMT 10 and GMT -5 would instantly indie that the answer would be a timeshift of 15 or -15, also like you, I might very well be confused about which direction to change it, but it is just two options rather than to much trouble to just try them both to find out it. Shabs19 did that if he indicated -15 was the answer, or perhaps he worked harder than I usually do to conclude through the answer that is ideal. Post #1 does include enough information to find out it, and I have to refer back to the pictures myself.


You attempted -7 and reported that H4 charts worked but Daily did not (yet). That makes sense because the gap between -7 and -15 is a precise 8, or a multiple of 4-hours. So far as H4 charts are involved, the bars will appear exactly identical no matter utilizing hourly offsets of: -3, -7, -11, -15, etc.; OR, 1, 5, 9, etc.. These timeshifts cut at the information so the H4 bars look identical.

However, Daily charts have /23 possible hours of timeshifts (and a -15 change cuts the information exactly the same as a 9 change because that's an specific multiple of 24 in between).

If you already like how -7 cuts the H4 bars, then use -15. The H4 bars will probably be exactly the same, but the Daily charts will alter the way the bars cut on the information.

Since Shabs19 already pointed out, the M30 and M15 charts look exactly the exact same regardless of the number of hours timeshifted. (The pub TIME, however, is different so if you are wanting everything to be consistent time-wise, you might still wish to generate those lower-TF charts).

las3marias
19:28,
103710Thanks for the excuse.

I will just work on it. But thanks for providing this tool.

Best regards

luluatitia27
20:48,
103710
Hello,

that your indior is excellent. I simply wonder whether it could be modified the produce tick chart (i.e. constat volume chart, where new bar is drawn following specified number of ticks happens), where number of ticks per bar would be external parameter. As I have not worked with hst files and dont have mql wisdom I certain what are the hst file limitations. It's clear to me that the tick data can be found just when MT4 is real time connected to quotes and that MT4 server doesn't provide historic tick data as it merely provides... This indior is really entirely time-based so that it may be much easier to simply do something from scratch. That said, I don't have any plans to do so at present. I've observed a few MT4 tick chart progr which are on the market, but not one that I use (at least not one successfully). Those I've seen plot each tick and only shift the entire chart as ticks come in and a load to your CPU. I have not seen (but haven't much cared for) any existing MT4 program that counts ticks and combines them into pubs. Of course this attribute is part of some charting applications and I wish MT4 had it. Please post additional information here if anybody knows of a suitable MT4 program that may do it.

Paola1010
22:09,
Hi
Any idea why just the latest period updates and not all them?

Paola1010
23:30,
90691Issue resolved.Period converter is presently updating all of the 3 charts I have created.
To generate multiple converted charts -
you need to attach numerous indiors (interval converter) to the source chart.

To create 5 time frames include the converter 5 times to the source chart and not only once! Each indior will have a different multiplier to correspond to this timeframe. No wonder only 1 chart was updating because only 1 source multiplier was running and every time it had been altered only the chart upgraded.

thanks pips4life and majestic12. https://forexintuitive.com/attachments/1529238500.pnghttps://forexintuitive.com/attachments/1529238500.pnghttps://forexintuitive.com/attachments/1529238500.png

clonaciones
00:51,
90691i am attempting to utilize this indi to generate yearly candles.

I am not having much pleasure. Am using chart, period multiplier 12. Now to have the candle open in january, I am using (time change bars) and place it to -10. I've tried with numerous configurations, candles to alter a little, but cant appear to hit january open.

I am definitely doing something wrong. Any help appreciated.

luluatitia27
02:12,
90691
I am trying to utilize this indi to generate yearly candles.

I'm not having much joy. 'm utilizing chart, period multiplier 12. Now to possess the candle open in january, I am using (time change bars) and place it to -10. I have tried with numerous settings to alter a bit, but cant appear to hit january open.

I'm definitely doing something wrong. Any help appreciated. I truly have not used annual charts so that I didn't observe that there's indeed a problem with them because they don't blend the obvious Jan-Dec monthly candles as you would anticipate. It looks like this was used to operate in a former version and some afterwards changes I made bankrupt it... or it never worked properly. I'm surprised you are the first to remark on it.

I'm not certain when I can look at it to see whether there's a simple repair or not. Sorry but I have several other projects on my plate for today.

MARCOS_22496
03:32,
90691
My P4L PeriodCon.mq4 indior is purely for time-based charts. I have noticed there are several range bar and/or #tick bar indiors written for MT4 however I don't have any experience with any. Pips4life, all of your assortment of MQ4 tools is simply great. Fantastic documentation and support too - well done!

I'm hopeful that somebody like yourself will compose a fantastic quality Constant Range Bars indior for MT4.

We've got a hack of a Period_Converter indior that we are currently employing. It's called Range_Bar. Mq4 present in this post. It's OK but paints erratic bars during fast market motions. Also being a hackup we're not certain how accurate it is. I have had a look cannot stick to the code quite well.

We are having considerable success with RangeBars for reasons discussed in http://www.greattradingsystems.com/2010/03/1616/.

May I suggest it is worth your while to become more familiarized with Constant Range Bars. The current work we are performing is in this thread.

Regards, RD

variux12
04:53,
Anybody noticed that the indior isn't right?
For instance,for the timeframe 4DAILY that the indior calculates all of the days,weekend included.
Mon tue married thur, fri sat sun mon... etc..
I wonder if its possible to calculate just TRADING days?

luluatitia27
06:14,
90691
Has anyone noticed the indior is wrong?
By way of instance,for the timeframe 4DAILY the indior calculates all of the times,weekend included.
Mon tue married thur, fri sat sun mon... etc..
I wonder if its possible to calculate only TRADING days? It's not wrong, rather it's simply not supposed to slice up the time intervals using a trading week. It uses a calendar method.

That said, how useful is a D4 chart regardless of how you slice it? I can see it would probably be better if it were 4 consecutive tradings days, then the next 4 trading times, etc. because every bar would represent 4 times of trading electricity. But obviously some bars will begin on Monday, the next a Friday, the next a Thursday, the next a Wednesday, the next a Tuesdayafter which the pattern resumes the next Monday. What's to define on which the very first bar starts?? Each pub would be started by different feeds otherwise.

While this kind of feature might be useful, it's not a personal priority for me personally to implement such modifications at this time, so if someone else wants to take it on, please be my guest.

luluatitia27
07:35,
90691See article #1 to the latest version v1.9 upgrade.

2011-03-23: Released v1.9 upgrade of P4L PeriodCon.mq4
Changes:
* Fixed some of the problems with greater timeframe charts (e.g. per week ) which resulted in the start-of-the-bar to become irregular (i.e. a weekly ought to start the beginning of the week, either Sunday or Monday, not a Thursday for example). Some timeframe charts that demand timeshifts might or might not work, because the procedure alloe them and to slice up the source pubs is not perfect. This version, however, is far better than v1.8

luluatitia27
08:55,
106251See article #1 for variation v1_0's release.

2011-04-01: First Release v1_0 of P4L getPeriodSymbolTimeshiftsecLib.mq4
New:
* This libary file may be included on your MQ4 indior/script/EA source documents to translate the Symbol() and Period() values as altered by the P4L PeriodCon.mq4 indior. The library routine returns the period of time, symbol, and timeshiftsec values. It is up to the consumer to properly incorporate the values.
* Two usage models are explained in the code, possibly to call the routine at a separate library fileto incorporate the 3 essential patterns on your source code.
* Notice: This is brand new code and was tested for a few commonly generated charts. It has not been tested for each vague chart multiplier/timeshift combination. Report any issues found by submitting to the thread.

EG105
10:16,
90691I downloaded the latest versions from page 1 but can't get them to function (operator error I am sure).
I am trying to reveal GMT 1 hour 5min and 15 min EUR/USD charts. I read through page one instructions and the entire thread but no matter what, the time remains the exact same on the chart (GMT)
Can someone please tell me a step by step easy guide to get it to wotk for me.
Thanks

luluatitia27
11:37,
106251
I downloaded the most recent versions from page 1 but can not get them to function (operator error that I am convinced ).
I am trying to reveal GMT 1 hour on 5min and 15 minutes EUR/USD charts. I read through page one instructions and the entire thread but no matter what, the time remains the exact same about the chart (GMT)
Can you please tell me a step by step easy manual to get it to wotk for me.
Thanks Lavenham,

It is working fine for me, so it has to be a misunderstanding how to use it. Perhaps you're anticipating the *source* chart (to which you insert the two PeriodCon's) to change, and that's not how it functions. Instead, the origin M5 chart (or you can use M1) is only generating the information, not exhibiting it.

Open an origin M5 chart. Add two PeriodCon's to it. Allow DLL imports is empowered in the Common tab for both make sure. (If you don't, you'll get an Error message). From the Inputs tab section, alter the PeriodMultiplier to 1 and 3 . Change TimeShiftAdd_in_HptMM to 1.0 for both.

Separately, you must use the MT4 menu command: File Open Offline navigate into the EURUSD 1H,M5 and EURUSD 1H,M15 charts the origin chart generates. Open those and they'll display the information.

See my picture below. A number of relevant details are circled.

Should you follow these directions it should get the job done. Review the facts in Post #1 again. If all that fails, give full details of what specifically is not working (Broker; what is your origin chart: what is your PeriodCon settings changed from defaults; what messages popup; can you locate and start the offline charts; do they upgrade real-time with new loopholes? Open a Navigator window. Proceed to Pros and Journal tabs. Are there any error messages there?)
https://forexintuitive.com/attachments/15292385151995933233.png

EG105
12:58,
106251All working now - it was operator error my conclusion! Only thing not working from the time-shifted screens are #SpudFibo and AutoPivotIndior_ver5. Not a significant problem - that the lines are not drawing in the altered charts. MultiplePivotsV2 is working fine.

Many thanks for your help - much appreciated.

luluatitia27
14:18,
106251
All working now - it was operator error my conclusion! Only thing not working in the screens that are time-shifted are #SpudFibo and AutoPivotIndior_ver5. Not a problem - the lines aren't drawing in the charts. MultiplePivotsV2 is functioning fine.

Many thanks for your help - much appreciated. You can *probably* get #SpudFibo and AutoPivotIndior_ver5 to operate too by creating some extra offline timeframes with exactly the identical 1H timeshift. (I did not try this but a quick glance in the code gives me a confidence it will work).

This applies to any indior/program that you want to use that does not appear to operate on the offline chart(s), especially the timeshifted ones. By MT4, in the Navigator window Custom Indiors (or wherever is the program), right-click over the indior and select Modify. IF you've got THE SOURCE .MQ4 FILE, then it will open the MetaEditor. (If you don't have the source code, then search using Google. I discovered that these two easily).

You really don't have to be a developer to do this. You're just looking and searching for clues what's the issue and how to proceed.

Open the #SpudFibo.mq4 file. Used EditFind to search for Stage and Symbol (instance IN-sensitive search with no Word mode is best).

Nothing can be located for Symbol (good). But Stage finds references to PERIOD_D1.

Inserted Code iBarShift(NULL,PERIOD_D1,Time#91;0#93;-RRB- 1; // yesterday HiPrice =iHigh(NULL,PERIOD_D1,change );...
(Hint: In MetaEditor, select iBarShift or iHigh and hit the F1 key for Assist information of this command syntax! It describes what each argument is.)

The NULL for these functions is the Symbol(), and it's just searching for the identical Symbol() as on your chart. What is that? The PeriodCon has altered the Symbol() name so now it's EURUSD 1H.

Well, you don't have a PERIOD_D1 (Daily) chart for EURUSD 1H unless you generate it, so do so! If your origin chart is M5, add a second PeriodCon using all the PeriodMultiplier = 288 ( out of 24 * 60 / 5 ). (NOTE: You do NOT have to actually start the offline chart. In case PeriodCon is on an origin chart, the information is becoming generated whether you start the chart or not).

Alternatively, you could open a regular EURUSD,H1 chart, and add to it PeriodCon with PeriodMultiplier=24 and TimeShiftAdd_in_HptMM = 1.0 (to match your other 1H timeshifted charts)



What about AutoPivotIndior_ver5? Do the origin to start. File and search for Stage and Symbol.

It that origin, it's somewhat harder to spot the issue because instead of PERIOD_D1, somebody has just used the hard-coded 1440 (minutes/day). Elsewhere 10080 (minutes/week) and 43200 (minutes/month). (Example: ArrayCopyRates(Month_Price, Symbol(), 43200); )

The matter is the same. You need to generate EURUSD 1H of this Daily, Weekly, and Monthly charts.

For this, start a EURUSD,H1 chart. Insert 3 cases of PeriodCon to it using PeriodMultipliers of 24, 168 (24*7), and 720 (24 * 30), respectively, all with
TimeShiftAdd_in_HptMM = 1.0. (FYI, for such long timeframes as Weekly and I do not recommend with a source M5 chart, especially since the M5 chart is not likely to contain very much information, potential lt; 1 month even. Just depends).

FYI, the EURUSD 1H,Monthly chart *must * work OK, but frankly the Monthly charts are demanding because of the irregular span of the numerous months. They're not all simply 30 days obviously. You should carefully inspect the Monthly chart and inspect the Open/Close values, and verify that these do indeed match the precise hours that are specific from the chart for months of distinct length.

Instead... suppose you don't care about the 1H timeshift but just wish to observe the Daily/Weekly/Monthly pivots from UN-shifted information but exhibited on your M5 and M15 timeshifted charts. This is an instance where you can modify the source MQ4 file to use the newly uploaded library file in post #1: P4L getPeriodSymbolTimeshiftsecLib.mq4

Basically you would need to replace Symbol() anyplace with a varying symbol whose value comes in the library routine. The symbol value would be just EURUSD and not exactly what Symbol() believes which is EURUSD 1H. Clearly if the program looks for Daily/Weekly/Monthly information for the EURUSD symbol, those are standard charts so the information is there.

Modifying an app is a good experience to find out something about the MQ4 language. Yes, it can be tricky to do, but the rewards are often worth it. If nothing else, you can learn how to customize colors, default values, etc., in the progr you use the most.

Bottom line: Hopefully you can receive your two indiors to operate by simply creating the extra Daily/Weekly/Monthly offline charts every single with the 1H timeshift. If not, then sadly there may be some other subtle nuance in the indior source code that needs tweaking to acquire every working.

Good luck!
Kent ()

EG105
15:39,
106251Thanks to your help again. Works good but AutoPivots still needs work so will use it on the broker time.

I truly enjoy the time and effort you've made to assist and others reading this post will benefit too.

benedited
17:00,
106251hello,

Been using your indior for weeks now, its fantastic https://forexintuitive.com/attachments/1529238502.png

1) I've a request https://forexintuitive.com/attachments/1529238502.png Would it be posible to include an MA cross awake into the indior for the offline charts generated? I have tried looking for an MA cross over Alert indior that may be used on offline charts, but sadly have neglected.

Two ) Also, any possibility of including a partial lot near attribute in the indior as well. I know, this isn't directly pertaining to the time modifier, but I thought I'd give it a go.

thx

16mesther16
18:21,
106251I#8217 m wrong.
I can exhibit charts form the offline folder but they don#8217;t upgrade live?
What did I do wrong?
They are primarily changed charts.

Thanx a lot.

Luca

Falabarata
19:42,
106251Well

That is an absolutely amazing indior and I have been using this for at least 4 months now.

I have a query though. I don't have access to charts on my office system. (I receive a No Link status in MT4 when I am on office network. Hence, I usually connect and disconnect from the net (I use a data card) quite often to take a look at the charts.

And many several times, after I reconnect to the internet, the timeframes calculated utilizing this indior like H2, M135, H3, etc. don't get upgraded when I reopen MT4 / reconnect to the net. I must repeat the entire procedure for Adding the custom indior (P4L PeriodCon) and going to Open Offline.

This becomes quite time consuming since I use this indior to calculate multiple time frames on multiple currency pairs.

Is there any way how I can get the upgraded charts after I reconnect to the net without repeating the process over and over again?

Thanks
0908

luluatitia27
21:02,
106251
hello,

Been using your indior for weeks now, its fantastic https://forexintuitive.com/attachments/1529238502.png

1) I have a petition https://forexintuitive.com/attachments/1529238502.png Would it be posible to incorporate an MA cross awake to the indior for the offline charts produced? I've tried searching for an MA cross over Alert indior which can be used on offline charts, but sadly have neglected.

Two ) Also, any possibility of including a partial lot close feature in the indior too. I thought I'd give it a go, although I know, this isn't directly pertaining to this time modifier.

Thx

kkBd About #1: The P4L PeriodCon app has only to do with generating offline charts using either non-standard timeframes or timeshifted charts. I'm sure that there are MA cross alert progr on the market which either work on offline charts or may be made to work with modifiions. (I really don't use MA cross alerts so I can't help with that). See my earlier post only 2 above yours to get some suggestions on examining the code to look for areas where your indior might use Symbol() or Stage (), or PERIOD_*. Those are possibly the lines which might require modifiion to work with offline charts.

Re #2: you might not understand that MT4 has the capability to shut tight lots on open trades. What is the minimum lot size to get a trade with your broker? And is the commerce larger or at least 2X that size? If so, you can partly close your commerce by specifying the lot size when you shut the trade to something less than the original size of this trade. By way of example, suppose some commerce opens using 3 lots. Open the form to handle trade. 1 choice is to shut the whole trade at market. See the Lot size says 3 but there's nothing to stop you from changing that size down to 1, then push Close at market. 1 lot will shut, however, the other 2 will nevertheless be an open commerce. You can replicate the partial close of another lot if wanted.

Kent

luluatitia27
22:23,
106251
Properly

This is an absolutely awesome indior and I have been using this for more than 4 weeks today.

I have a question though. I don't have access to charts on my office network. (I receive a No Connection status in MT4 when I am on office community. Hence, I normally connect and disconnect from the net (I use a data card) rather often to take a look at the charts.

And many a times, once I reconnect to the internet, the timeframes calculated utilizing this indior like H2, M135, H3, etc. don't get upgraded when I reopen MT4 / psychologist...
Your description is very strange to me personally, since I don't have any problems with my charts not updating following the net reconnects after a time. I have my origin chart open (e.g an M1) and it has P4L PeriodCon attached to generate the offline chart data (e.g. an M2). Separately I've the offline (M2) chart available. The offline chart(s) are upgrading live when connected. If I disconnect my internet cable for a few minutes, then reconnect it, the origin chart ches up, and then all the missing offline chart bars get generated also.

Worse case I would think that only restarting MT4 should function good. I can not think of any reason why you would have to the indior to your source chart to induce the offline charts for back in sync. Can you store a template of your origin chart, and then delete the original source chart, start a new blank one, then apply the template? Does that work? It would be more easy than doing exactly the very same steps.

I can't reproduce your problem so I am sorry but I can not be of much help.

Kent

luluatitia27
23:44,
106251
I am not certain what I am unashamedly incorrect.
I will display charts form the offline folder but they don't update live?
What did I do wrong?
They're primarily changed charts.

Thanx a lot.

Luca You have not given any information, but as it works for me and hundreds of others, just review all of the steps in place #1 again. You are likely closing your origin chart. That is the reason the offline charts might not get upgraded live.

benedited
01:05,
90691
Regarding #1: The P4L PeriodCon application has just to do with generating offline charts with either non-standard timeframes and/or timeshifted charts. I am certain that there are MA cross alert progr out there that either work on offline charts or could be made to utilize modifiions that is minor. (I don't use MA cross alarms so I can't help with that). See my earlier post only 2 above yours to get some suggestions on examining the code to look for areas where your indior may use Symbol() or Period(), or PERIOD_*. Those are potentially... Ok thx for the answer. I simply found MYFX that allows up to 3 partial closes https://forexintuitive.com/attachments/1529238458.png My aim is not to manually perform, I wanted to preset several tp levels when I entered the trade. Its cool though. . .still an awesom indior.

Nereutxibcn
02:25,
I obtained the charts loaded 12 ones. Cool but I'd like help getting it to run in real time. . Any tips or help would be wonderful... so greatful for this particular indior. .

Best,
Dawna

luluatitia27
03:46,
90691
Hello I got the charts loaded 12 hour ones. Very cool but I'd like help getting it to operate in real time. . Any tips or help would be wonderful... so greatful for this particular indior. .

Finest,
Dawna I cannot replicate such a problem. My offline charts upgrade live with each tick. Timeshifts and different custom made timeframes am able to open. I am able to open several of every offline chart.

If you're still experiencing difficulties, then you need to clarify your steps and installation in total and complete detail.

Start by opening a resource chart, like an H1, to which you may add a number of instances of this P4L PeriodCon indior. Add the indior desirable custom settings.

SAVE a template of your origin chart and upload it to this thread.

When you open the offline charts, the number of every one are you opening?

What is your machine's CPU and O/S?
What broker are you using?
What variant of MT4 are you using?

When you stop and restart your MT4, do you find a first popup window that gives you message(s) similar to the one:
Looking for a couple of charts called: EURUSD 7H,Daily (offline) (Time changed by 420min)

Have a snapshot of this popup alert window and then catch all of the numerous messages it creates. (If you have none, then you shut your origin chart. You're not generating any offline charts reside, and this would be just the reason why your offline charts aren't getting updated).


If you want help, you have to provide more info.

MrCrazyMonkey
05:07,
90691I produced a H2 chart, however, this,

iClose(Symbol(), PERIOD_H1*2, 0)

does not work.

Is there any way to make this possible?

pandicorme
06:28,
A bunch for all the work you offer them at no cost, and put in these indiors.

sk4rt
07:48,
90691Pips4life, you are my hero! I been looking around everywhere for something such as your P4L PeriodCon.mq4 using its time-shift function.
Its really generous of you to give out fuits of your hard work here at no cost! Thank you a lot for those scripts!
Serg

Fid0_
09:09,
90691many thanks pips4life. Ive used this to get local time (GMT 10) on SPI200 FUT (Aussie inventory index) on Axitrader who have it 1 point per tick CFD on MT4 (thus do FXCM in aussie, additionally they have mt4). The neighborhood index is $25 per stage out of my price range to trade complete contracts ATM, so today I have a cheap and usable solution, with complimentary charts https://forexintuitive.com/attachments/1529238458.png

my candlestick signals were not as good with the incorrect time zone.

This is a really important point to have right. Thank you for sharing https://forexintuitive.com/attachments/1529238458.png

TRICKER
10:30,
90691hy guys. I have attempted the ultimate version and it works but you cannot trade from the new chart. why?

luluatitia27
11:51,
90691
I generated a H2 chart, but this,

iClose(Symbol(), PERIOD_H1*2, 0)

doesn't work.

Is there some way to make this possible? It works good for me. Did you use a timeshift, although you did not say? If so, then Symbol() would return the currency name PLUS a suffix! For instance: Symbol() EURUSD 1H

You say you're creating an H2 chart, along with your iClose uses PERIOD_H1*2. It works for my simple tests, but there's much more going on than your short post would suggest. Your title referred to iCustom that I presume is a typo and you meant iClose as the text. I can't indicate anything else. Fantastic luck.


Thanks a bunch for all the work you put in these indiors, and offer them for free.
Pips4life, you are my hero! I been searching around everywhere for something like your P4L PeriodCon.mq4 using its time-shift function.
Its quite generous of you to give out fuits of your hard work here for free! Thanks a lot for those scripts!
Serg
many thanks . Ive used this to find local time (GMT 10) on SPI200 FUT (Aussie stock index) on Axitrader who have it as 1 point per tick CFD on MT4 (thus do FXCM at aussie, additionally they have mt4). The local index is $25 per stage , out of my price range to exchange full contracts ATM, so now I have a cheap and useable solution, with free charts https://forexintuitive.com/attachments/1529238458.png
my candlestick signals weren't as great with the incorrect time zone.
This is an essential point to have right. Thanks for sharing https://forexintuitive.com/attachments/1529238458.png You are all very welcome.



hy guys. I've attempted the variant and it works but you cannot trade from the new chart. why? You can trade good if you are creating a chart that just used PeriodMultiplier to generate a non-standard timeframe (e.g. H2, M10, M45, etc.).

But if your chart is timeshifted, then it is true, the built in MT4 trade functions don't work. Why? Since on a timeshifted chart, the Symbol() title has been created to something non-standard like EURUSD 1H. MT4 has no clue what the 1H means. It may display a chart for a non-standard symbol name, but it can't exchange it (right ).




Your only option is to make use your own custom commerce purposes. They are scripts, as an instance, and you might even make hotkeys to call those scripts. The key is that those scripts should take advantage of the library functions from P4L getPeriodSymbolTimeshiftsecLib.mq4 as seen in post #1. Your script/EA/indior can use these supplied functions to extract the true value for your chart symbol, and you can exchange it accordingly. Whatever you do, though, will show the Buy/Sell/SL/TP lines for your commerce on a timeshifted* chart. Again, it is because MT4 knows nothing about what exactly the timeshift suffix ( 1H or anything ) which was added to the Symbol() title implies.


https://forexintuitive.com/attachments/1529238458.png

TRICKER
13:11,
90691
It works good for me. Did you use a timeshift, although you didn't state? In that case, then Symbol() would return the currency name PLUS a suffix! For example: Symbol() EURUSD 1H

You state you are creating an H2 chart, along with your iClose uses PERIOD_H1*2. It works for my simple tests, but there's far more going on than your post would imply. Your title called iCustom which I presume is a typo and you meant iClose as the text specified. I can't suggest anything else. Good luck.






You're all very welcome.




You... p4l what if this indior doesn't make the suffix anymore? I be in a position to trade and could not mind not studying 1 h.

dieguitoxx24
14:32,
90691 Works good for me, using 12 Hours charts on 15 pairs, no problems, obtained GO Markets so no time offset demanded, currently have 5 daily candles https://forexintuitive.com/attachments/1529238459.png
https://forexintuitive.com/attachments/1529238471151130478.png

luluatitia27
15:53,
90691
p4l what should this indior does not make the suffix anymore? I be able to exchange and could not mind not studying 1 h. MT4 isn't really flexible in this regard and to make it work at all requires some sort of compromise. Timeshifts are a feature that is useful, but there needs to be an alteration to either the symbol name or the interval. MT4 requires a mix that is unique or it will not allow you to generate the chart. Imagine if the Symbol title were left unchanged? There would not be any way. One *possible* alternative is to modify the period value to hint in the timeshift AND the new period but this would be very confusing and more difficult to program.

For instance, one could generate an H2 chart. The interval is 120 (min). But, suppose it is a 1H cancel, it *may change the period to be 121. It could be left to know what implies, which in this instance, means 120 and 1H. But suppose one desired to make an M90 chart using a 30M. By precisely the same tradition of changing the period value just, this could be 90 30 = 120. If a person generates an chart using a 1H that could be 60 60 = 120. How does one distinguish between 120 vs 120 vs 120? How should you know that 120 and 1 * HOUR is meant by 121? What about a 1minute counter? Would not that be 121?

Another major problem with making up a fake interval value is that numerous progr/indiors actually use the Period() work, and might expect the function to return the true value for the interval. If the function is different, then the calculations could be futile.

You wish to exchange from a timeshifted chart that's more difficult due to this change to this Symbol() name. But, you may also need to attach indiors and EA's which rely on an accurate interval () function value. Together with MT4, you can not have it both ways, due to it's limitations.

What I said is that commerce scripts might be readily written or modified that utilize the library work in place #1 that I provided, and it might make it trivial to place trades from a timeshifted chart. No it is not the built in trade controls but so what? Scripts like these are just as useful, maybe even better. (I don't possess such scripts (Yet) but perhaps someone else can suggest a few and might also be ready to change them if you are not a programmer. It would not be that hard to do).

luluatitia27
17:14,
90691
Works good for me personally, using 12 Hours charts on 15 pairs, no issues, got GO Markets therefore no time offset required, have 5 daily candles https://forexintuitive.com/attachments/1529238460.png Nice layout of charts.

Concerning your comment that Go Markets already has 5 daily candles, how did they execute this? Can they provide 5 MT4 install files? Or does the user select from one of 5 data servers where each of the information servers is a distinct? Or do they provide 5 symbol names for every one of the offsets for each Fx pair?

Which are the 5 daily offsets? IMO, GMT-5 and GMT 2 are of attention, but a few brokers use GMT, GMT 1 or GMT 3. Are these the 5 distinct daily offsets?

GO Markets is a Aussie broker, right? I would not want to put up live accounts with them at this moment, so do they offer the 5 offsets to demo accounts too?

dieguitoxx24
18:35,
906911 Structure (s)
Nice layout of charts.

With respect to your comment that Move Markets already has 5 daily candles, just how did they execute that? Do they provide 5 MT4 install files? Or can the user pick from one of 5 data servers where each of the data servers is a different? Or do they provide 5 unique symbol names for each of the offsets for each Fx pair?

What will be the 5 daily offsets? IMO, GMT-5 and GMT 2 are of most interest, but some brokers use GMT, GMT 1 or even GMT 3. Are those 5 different daily offsets?

GO Markets... Nothing as complied as that; they just start data at 8 AM Melbourne time, which signifies that a 5 PM New York open shut, except for DST right now is 6 PM, see chart attached.

They had a vote ago from users and it was approximately 90% wanted 5 equivalent daily candles rather than having to take care of the little Sunday candle. And this works well with my usage of all 12 Hour candles.

Right now, 1 hour to GO ( pun intended ) before any tick obtained, so there's a gap or lost info, but no thing, does not influence my trading style.
https://forexintuitive.com/attachments/1529238474872387107.png

dieguitoxx24
19:55,
90691 Picture didn't attach as normal, I have done this several times, don't know what the issue is, see whether it works ?
https://forexintuitive.com/attachments/15292384761591786422.png

dieguitoxx24
21:16,
906911 Structure (s) And here is exactly what GO Markets chart looks like soon after they begin Monday morning information an hour after trading starts...

PS: Using P4L Candletime also, it's excellent https://forexintuitive.com/attachments/1529238463.png
https://forexintuitive.com/attachments/15292384791670460836.png

Taruchan
22:37,
Hi Pips4life,

That is amazing, Makes trading on different timeframes alot easier, better having a new 4H bar on London Open...

Thanks heapsof

anemaldo
23:58,
90691Hi Pips4life,
A simple question...
I was able to use a H1 chart x 24 to make daily charts then Timeshift them (-7) to change my brokers host time to NY EST.. My question is how do I take out. I want a 5 day chart without a Sunday candle therefore how is this done in plain English? I know you mentioned something in the very first post but to me it had been Klingon speak.

Thanks for this particular indior, only makes me wonder why MT4 programmers make life so hard by not including a choice to choose your timezone?!

I am looking forward to your aid,

kazii
01:18,
90691
Hi Pips4life,
A simple question...
I was able to use a H1 chart x 24 to create daily charts then Timeshift them (-7) to alter my brokers server time to NY EST.. My query is how can I take out the Sunday candle. I would like a 5 day chart without a Sunday candle therefore how is this done in plain English? I know you mentioned something but to me it had been Klingon.

Thanks for this indior, only makes me wonder why MT4 developers create life so hard by not adding a option to choose your timezone?!

I am looking forward to your help,

Kaptain... I am not P4L, but from my reading of the directions below, it seems to me you would have to adjust the time shift to coincide with the start / end of your broker's trading week - which probably negates your initial intention of getting Daily bars opening on your own time period - perhaps can't have it both ways?

Although, re-reading the previous paragraph, it not possible, can you tell how many bars per week that your broker has?

I'd play with the time shift and appear at different charts until P4L returns; I am lucky as GO Markets already has 5 candles per weekI use this to trade 12 Hour charts = amazing! You should take a look at these, they will be a part of MT5 https://forexintuitive.com/attachments/1529238464.png

- Generate a Daily chart with 5-bars-per-week instead of the common 6-bars-per-week!

Example: Imagine that your broker time is 00:00:00 the same time as GMT. NewYork is GMT-5 that's 19:00:00.

Your broker closes Friday lt; 17:00:00 NY and reopens on Sunday gt;= 17:00:00 NY.

Your Daily chart has a 2-hour Sunday bar, which is undesired.

SO, you can generate an offline xxxxxx 2H, Daily chart which will *eliminate* the Sunday bar!

When your broker gets exactly 24*5=120 (or less) bars-per-week, and in the event that you currently have a brief Sunday (or Saturday) Daily bar on your chart, then you may choose a suitable timeshift to get rid of your extra (short) Daily bar!

luluatitia27
02:39,
103710
Hi Pips4life,
An easy question...
I was able to use a H1 chart x 24 to create daily charts then Timeshift them (-7) to change my brokers server time to NY EST.. My query is how can I take out. I want a 5 day chart with no Sunday candle so how is this done in plain English? I know you mentioned something but to me it was Klingon speak.

Due to this indior, just makes me wonder why MT4 programmers create life so challenging by not adding a option to choose your timezone?!

I'm looking forward to your help,

Kaptain... If you're making an EST feed by using -7H timeshift, then your broker feed must be GMT 2, right? And that GMT 2 feed happens to be the one most likely to possess just 5 Daily-bars-per-week. The Day would start on Sunday 5PM EDT (00:00 Monday on your GMT 2 feed), and it would end on Friday 4:59PM EDT (23:59 Friday). These are the normal hours for trading. A couple of brokers either start their Sunday after (usually an hour), or end sooner on Friday (usually an hour). (FYI, a very few like Oanda print a few added bars over the weekend, even with a rare extra hour on Friday, a very infrequent Satuday bar (often just a single tick), and then 3-4 earlier bars on Sunday. Oanda is fairly unusual in this respect, and the irregularity of the amount of this week is a drawback of Oanda IMO, at least with respect to drawing Channels/Trendlines/Pitchforks/etc. where the slope and intercepts are crucial ).

The vast majority of brokers supply just 120 bars (or less) a week. The Klingon speak to which you refer is led and those who have a broker with a few different times than GMT 2 which have the 5 Daily bars/week. If, by way of instance, you had an native GMT-5 broker (6 Days/week), then you can generate 7H timeshift charts to synthesize GMT 2, also THIS would be the way to get 5 Daily bars/week.

Your brokers GMT 2 feed is most likely 120 (or less) Hourly bars. Notice how 120 can be divided into 5 Daily bars? (5x24=120). I am guessing you have 5 Bars/week on your own charts, right?

So beginning with your GMT 2 feed, you created a GMT-5 feed. (Incidentally, IMO these two feeds are definitely the most useful and valid, but it's just my opinion). Split them with a beginning time-of-day and you are trying to take 120 bars/week, and as such you are likely to get 6-Daily-bars-per-week.

The only means for your program to prevent this is for this to unite the brief Sunday bar and lump the Open/High/Low, together with the Monday OHLC values. You would then be creating a Monday with 24 7 hours total. It's beyond the current scope of exactly what the program was written to perform, As soon as it's possible to perform this lumping, and I don't have any plans presently make this enhancement that is complied.

Should you want 5 Daily bars/week, then stick to your current GMT 2 native feed. But if you want to experiment with the GMT-5 feed, you are going to need to tolerate 6-Daily bars/week. (It's actually not too bad IMO).

anemaldo
04:00,
103710Thank you Callisto and pips4life .

I love the quick replies. Yes, you deduced my broker is GMT 2 along with the pubs are 5 bars each week.

I tried out OandA using their limitless presentation but discovered after that there are extra weekend pubs. Not interested together now after the actuality.

Anyway why I want NY close chart is that I believe that the liquidity of the US semester is quite high relative to the European market and the close of a candle on NY time represents a much better price action analysis.

All I really want is a NY EST chart with 5 candles. You will find brokers out there which provide this and that I am looking at Alphaforex based in Australia. I am not leaving my first broker since the terms are extremely good I just want the charts for technical analysis.

Thank you more for your kind replies.

Alex
05:21,
103710Hi Pips4life, great indior thanks for sharing.

I was wondering if you could help me with an Alert that I'm getting.

It states looking for a couple of charts called: currencypair 3h,h12 (offline) (time changed by 180min).

I'm not sure what to do. I've two charts running which are time shifted by 3 hours. The indior is really on a 1hr chart. The charts are recorded in the offline charts and appear to be operating fine and displaying. I simply don't know what the alarm is.

Cheers mate.

dieguitoxx24
06:42,
103710
Hello Pips4life, great indior thanks for sharing.

I was wondering if you could assist me with an Alert that I'm getting.

It states looking for a couple of charts named: currencypair 3h,h12 (offline) (time shifted by 180min).

I'm uncertain what to do. I have two h12 charts running which have been time shifted by 3 hours. The indior is on a 1hr chart. The charts are recorded in the offline charts and the two seem to be operating nice and displaying properly. I simply don't know what the alarm is.

Cheers mate. If you are only getting this once you start MT4, then it is absolutely normal, just a small time delay of getting the data into the offline charts I believe.

Just click OK, and carry on. 12 Hour charts you state? Sounds familiar...
https://forexintuitive.com/attachments/1529238425.pnghttps://forexintuitive.com/attachments/1529238425.png

kikegaby
08:02,
103710I'm a newbie. As nothing has happened, I followed the directions to receive 12 hour bars, but should have gone wrong. Any ideas would be appreciated.

kazii
09:23,
103710
I am a newbie. Since nothing has happened, I followed the directions to receive 12 hour bars, but must have gone wrong. Any ideas would be appreciated. Could be any number of things; stand by while I do a tutorial just for you, meanwhile:

1. How long have you been using MT4?

2. Can you leave the foundation chart available?

3. Can you start the offline chart?

kazii
10:44,
971532 Structure (s) OK, start a foundation chart and put on the P4L PeriodCon

Chart has to be 1 Hour, place Indior Multiplier into 12 = 12 Hours offline
https://forexintuitive.com/attachments/15292384351181420221.png
https://forexintuitive.com/attachments/15292384371484407910.png

kikegaby
12:05,
103710
Could be any number of items; stand while I do a tutorial just for you, meanwhile:

1. How long are you using MT4?
Just learning

2. Did you leave the foundation chart open?
Yes

3. Did you open the offline chart? I think so

kazii
13:25,
97153 Next, go File, Open Offline

Navigate down to find the chart that has been created, it will have a 12 inside, make sure the date is right

Open it, apply the P4L CandleTime and voila, works for me

https://forexintuitive.com/attachments/1529238427.png
https://forexintuitive.com/attachments/1529238427.png
https://forexintuitive.com/attachments/1529238439333035163.png

kikegaby
14:46,
97153I have opened a Hello chart but Can't attach indior

kikegaby
16:07,
97153I started AUDUSD H1 chart and using inbuilt period convertor set multiplier to 12. Opened offline and found AUDUSD h12.

kikegaby
17:28,
97153I have 12 H offline chart. Thanks.

kikegaby
18:48,
103710Now I have 12 H offfline chart can I get it update like a chart? Except for the easy questions but I am new to MT4

kazii
20:09,
103710
I have 12 H offfline chart can I have it update like a regular chart? Sorry for the basic questions but I am new to MT4 YES, but leave the 1 minute base chart open as well, for each currency - that is where the offline chart get the data feed.

Put the Candle Time on as seen in previous post to determine how much of this 12 hour left - when it is counting down, it is updating!

Many indiors do not work nicely with offlline charts, just experiment with that component of it.

PS: as well with all the PeriodCon, it is possible to offset your 12 hour candles in order that they rollover at 5 am 5 pm New York to keep in sync with them, or anytime that suits you, supposing that you are working on searching for signal every 12 hours.

kikegaby
21:30,
97153Thanks Calllisto
I started from scrarch and generated a 12 hour chart on EURUSD. I implemented the Candle Time if this is a word and it worked for a while although jumpily. I tried to shift time from GMT to 5PM NY time but get error message Hazardous timeshift value

kikegaby
22:51,
90691I generated hour charts. One offline. Together with the offline chart I tried a hour but nothing altered. The Candle Time ceased functioning on the 12 hor chart. I have a lot to learn.

kazii
00:11,
971532 Structure (s)
Due Calllisto
I started from scrarch and generated a 12 hour chart on EURUSD. I applied the Candle Time if this is a word and it worked for some time although jumpily. I tried to shift time from GMT to 5PM NY time but get error message Illegal timeshift value: 300 min has to be a multiple of origin TF 720 The Time Shift is made in Hours, watch images, can be PLUS, enter 1 or 2 or 3, and MINUS, enter -1 or -2 or -3 = whatever you need

Again, experiment with it till you find the correct Time Shift setting, yet, anytime you create a time change, it generates another offline chart named as per the popup message - you need to open this chart, use the Candle Time indior to observe how long left until it closes to see if it matches the period you desire the candle Publish.

Then as soon as you have it right, then see it instantly as New York 5 pm approaches, or your given close moment. I use this on 15 pairs, and DST is a real pain - this weekend actually, so even in the event that you work out it, next Monday, it is going to be'wrong' https://forexintuitive.com/attachments/1529238429.png

What is this? Same as what you're doing? Just continue doing trial error, does not take long, you can't break it and you will learn a lot
https://forexintuitive.com/attachments/1529238429.png
https://forexintuitive.com/attachments/1529238441310935431.png
https://forexintuitive.com/attachments/15292384431065642501.png

kikegaby
01:32,
97153Thanks Castillo
How do you start the chart that appears in the alert?

dieguitoxx24
01:53,
97153
Thanks Castillo
How do you open the chart that appears in the alarm? Same way you open the first chart; the Indior generates a new OFFLINE chart each instance of time change, that's why you have to know your time change settings first, prior to going a opening a lot of charts.

As soon as you've got the BASE chart with the correct settings from the PeriodCon Indior, store a template, then open each pair you need OFFLINE chart for, then use templatethen open each OFFLINE chart if you've got an offset, it'll be from the title of this popup message as in my case -2, I think it was plus the new period of 12

Which are you wanting to perform overall? Is there?

kikegaby
03:14,
97153Thanks
I am tryin to set my charts to close at 5pm New York and generate a working 12 H chart.

luluatitia27
04:35,
96365
Thanks
I am tryin to place my charts to close 5pm New York and generate a working 12 H chart. Blackmatt,

I get that you are *really* new to MT4, but to respect the time and past attempts of others, you are really going to have to read Post #1 over-and-over till you grasp the fundamentals that people are trying to describe to you . Go the full thread too. It's only 10 pages which won't take. Learning MT4 takes some time but there are already lots of threads which cover the fundamentals. (Do a search). Beyond the fundamentals, the MT4 Navigational methods and techniques thread of Hanover has a lot of tips that are advanced.

You made a reference to attaching the built-in period_converter (script), which will be complete garbage and that is the reason why this P4L PeriodCon (indior) was written.

It's obvious (to me, at least) from one of the error messages that you posted that you are working to attach this indior into the offline* H12 chart.


Illegal timeshift value: 300 minutes has to be a multiple of source TF 720
The source TF 720 informs me you added the indior into some 720min (=H12) chart. This is completely wrong and misses the point that I and others have made that you need to add this indior into some SOURCE (aka BASE) chart, like an H1 chart. You decide on the ideal multiplier (12) and when desired, you input a timeshift value (e.g. 6 hours or whatever) which will control which category of 12-hourly-bars will sort each H12 bar. You won't SEE any difference at all on the SOURCE chart however, you will get a popup message which informs you what *offline* chart has been generated.

Then you use the command: FileOpen_Offline, and then you discover the exact name as from the popup and you then open it.

Furthermore, you have to maintain the SOURCE chart open indefinitely, or it won't do any live tick upgrades anymore (which is why your own CandleTime would cease to operate ).

This is described in post #1, particularly under the How to utilize section.

I re-wrote that this indior a couple of years back and set a lot of new functionality into it. The popup messages make more sense with regard to not, and what the program used * to do so much in comparison to a completely new user choosing it up for the first time. I'll concede to you is that the text isn't quite as clear as it could be, as I reflect on the text of this popup message. In a future release (which won't be soon) I'll change the popup text from:


Looking for a couple of charts termed: EURUSD,H12 (offline) (Timeshifted by 0min)
into the new (proposed) text:

P4L PeriodCon: Do FileOpen_Offline of chart: EURUSD,H12 (offline) (Time altered 0min) and KEEP SOURCE H1 OPEN!

Good fortune,
Kent ()

kikegaby
05:55,
90691Thanks pips4life. Yes I am new to MT4 and I'll take your counsel and read all that you mentioned.

milamila
07:16,
90691Very useful indi, thanks Pips4life https://forexintuitive.com/attachments/1529238391.png

Antoniobege
08:37,
90691Excellent work Pips4life, really. Thanks for your efforts...

One question though: Can it be possible to bring an mirror mode, meaning to invert charts? This could be a great improvement to this indior. I am trying it myself but up to now I am unsuccessful...

luluatitia27
09:58,
90691
Excellent work Pips4life, indeed. Thanks for your efforts...

One query though: Can it be possible to bring a mirror mode, meaning to reverse charts? This could be a great addition to the indior. I am trying it myself but so far I am ineffective... That's a good idea. I'll put it to consider, but sorry, no promises when. Conceptually it seems fairly straightforward to implement. In the time of writing the chart into a data file, just invert every price (OHLC), and also change the output-Symbol() name to indie it is inverted. The easiest name change would be to add a prefix like I or inv, however a much better way would be to analyze the name to your 3-character currency titles and if the program finds two of these -- that it should -- just swap them, otherwise add the prefix.

Antoniobege
11:18,
90691Well maybe I will beat you. If I do, I will send you the source codeit'll be good enough to make it in your script. Https://forexintuitive.com/attachments/1529238391.png but that I also don't know when it will be done(and when my abilities are good enough). Thank you for thinking about it!

alc
12:39,
90691Can somebody please make me a script or anything is required to reach one common goal:-

1) I need something that shifts time by -1 of this mt4 server moment. So the bars are re-calculated to give close,low,high. For instance on 4hr chart, if the time changes -1, then we'll be taking a look at different 4hr bar open, close, high, low.

2) Can there be a way of for us to possess our very own friday close time plus sunday open moment? So we are able to tell it when to shut and open to the weekend?

I need both of these things.

Is it possible to design something that just ers for it?

I would love it if someone can create something for me right now, I am in such trouble locating a solution, in case a broker goes bankrupt. That I can play with weekend open and shut and I would like to have the ability to continue trading so long as mt4 is about and shift time.

Anyone care to help please? Thank you very much

luluatitia27
14:00,
90691
Can somebody please make me a script or whatever is needed to achieve one common goal:-

1) I need something which shifts time by -1 of the mt4 server moment. So all the bars are re-calculated to give close,low,high. For example on 4hr chart, if the time changes -1, then we'll be taking a look at different 4hr pub open, close, high, low.

2) Can there be a way of for us to possess our own friday close time and sunday open moment? So we are able to tell it when to close and open to the weekend?

I need these two things.

Might it be possible to style something... It doesn't seem you've done me the courtesy of reading post#1 and trying out the indior to find out if it really does what you need, since it most certainly could do #1 (timeshift). You may have to elaborate on what you mean by #2 since every broker sets their own hours. Many start the week at end the week and Sunday 5PM Eastern at Friday 4:59PM Eastern. What *exactly* is the problem with the charts the P4L PeriodCon indior produces?? Would you instead want to have an extra bar? Or does this have an extra bar you don't desire, and if so, what should be done with the data in THAT pub (e.g. throw away it, mix it with the following or preceding pub, or...)? Are you currently talking H4 bars, or Daily what or bars? Be specific.

I am simply asking the questions which you failed to describe, but I am busy with loads of other items and don't expect to make this code changes anytime soon if ever. You should hire a programmer to code it and not anticipate things.

dieguitoxx24
15:21,
90691
Can somebody please make me a script or whatever is needed to reach one common goal:-

1) I need something that alters time by -1 of this mt4 server moment. So all of the pubs are re-calculated to offer close,low,high. For example on 4hr chart, if the time changes -1, then we will be taking a look at different 4hr pub open, close, high, low.

2) Can there be a way of for us to have our very own friday close time and sunday open moment? So we can tell it start and when to shut for the weekend?

I need these two things.

Is it feasible to... #1 - As pips4life told you, all of the help you need is in Post #1, read it, apply the indior, use it, learn it, and then get back to us. Https://forexintuitive.com/attachments/1529238391.png

#2 - Have your very own close open times? The selfish of you of bit don't you believe? What about the rest of the forex traders in the world; leave us to suffer with actual market occasionally that are open! https://forexintuitive.com/attachments/1529238391.png

carlos
16:41,
90691that's very an excellent works of your on Clock and Candle
What about Candle Chart display available price and close price just. The Way to make EA Template for It? I think we can see chart better without the Wicks
many thanks

Mari
18:02,
90691Is it posible to get bar/candle 3 times or 2 times bar/candle in the MT4??

dieguitoxx24
19:23,
90691
Is it posible to have also 2 times bar/candle or 3 times bar/candle from the MT4?? Bizarre is what pops into my head! I mean, there are just 5 trading days in a week, so what makes the 2 days so on?? , on to FRI MON, and bar MON TUE

I figure, guess being the active term, make a 1 hour base chart using a multiplier of 48, then open the off line chart to determine what you get, fantastic luck, and good trading....

I may give it a go, but seeing as it is your idea, why did not you try it already by yourself?

https://forexintuitive.com/attachments/1529238392.pnghttps://forexintuitive.com/attachments/1529238392.png

dieguitoxx24
20:44,
90691
Is it posible to have 2 days bar/candle or 3 days bar/candle from the MT4?? The answer is YES

next....

https://forexintuitive.com/attachments/1529238392.png
https://forexintuitive.com/attachments/1529238392.png
https://forexintuitive.com/attachments/15292384021381326369.png
https://forexintuitive.com/attachments/15292384041788961476.png
https://forexintuitive.com/attachments/1529238406930344650.png

angeles601
22:05,
90691Hi pips4life

I had an idea that I might utilize your Indior to create an offline chart depending on the chart being replayed in the Strategy Tester. The idea was that I'd have the ability to see 2 or more timeframes being replayed synchronously. By way of example, place the ST to M5, add the indior for this M5 chart twice, once giving a H1 offline chart along with the 2nd giving a M15 offline chart...

once I add the indior and configure it I get an Alert and then MT4 locks up...

I am on Build 409, any ideas what is happening?

luluatitia27
23:25,
90691
Hello

I had a notion that I might use your Indior to make an offline chart depending on the chart being replayed from the Strategy Tester. The thought was that I'd be able to see 2 or more timeframes being replayed synchronously. By way of example, place the ST to M5, add the indior to the M5 chart twice, once giving a H1 offline chart and the 2nd giving a M15 offline chart...

When I add the indior and configure it I get an Alert and then MT4 locks up...

I'm on Build 409, any ideas what is going on?
I have not tried using it together with all the Strategy Tester in MT4 but as that instrument is pretty limited, I'm not surprised if there are problems. Nonetheless, if you get lucky and find it out, post what your solution/experience is.

If you desire to conduct a egy utilizing custom indiors or EA's, I guess you are fairly limited in what you can do with only MT4. However, if you only need fairly standard indiors and mean to check your egy utilizing manual style backtesting (maybe not an EA in other words), then consider using ForexTester2. It is a decent tool with a UI like MT4, and it may display multiple charts (any timeframe, and several currency pairs) as you can manual/visual backtesting. As said -- why it is not a comprehensive solution, and that is -- EAs or habit MT4 indiors can't run. If one is extremely good at programming, then I suppose you could write an equal indior/EA for it, but that is a lot of work (and I have never tried writing any custom instrument for ForexTester2 myself).

angeles601
00:46,
90691
I haven't tried using it together with the Strategy Tester in MT4 but as that instrument is pretty limited, I am not surprised if there are problems. If you get lucky and figure it out, post what your solution/experience is.

snip. Thank you for the reply.

I used ForexTester for a while a few years ago, I even tried coding inside but found it somewhat restrictive and feature poor compared to MT4.

Basically I am trying to replie a few of the functionality that Ninja provides, I have a few tools I've created for MT4 and the last bit is multi-timeframe synchronised PA Replay. I'd utilize Ninja but Ninja script provides almost zero functionality to utilize Fibs...

I will have a look at your code and see if I could find what's causing my issue.

angeles601
02:07,
90691A little update...

I sort of got it working, I was using M5 from the Strategy Tester and I generated an M15 chart... it ran for a minute or so before cleanup. I needed to set a upgrade interval of 10 secs. Because the ST is operating faster than actual time I feel the Indior struggles to maintain and can not slow down the ST down as it's running from the interface ribbon.

One solution is to build similar functionality into an EA and run that in the ST.

angeles601
03:28,
90691
One alternative would be to build similar functionality into an EA and operate that in the ST. Decided to go this path, used period_converter code with reference and built a small script to sit down the offline charts so that they can update themselves. Works well even with 4 offline timeframes below the interval running in the egy tester, e.g. ST H1 offline M30, M15, M5 and M1

Javi_930
04:48,
90691
Interesting! I found. I sent it to Period_inverter, to avoid confusion.
But it do not allow real time update. Without programming background, I am trying to follow along with guideline to modified your indior, but please let us know whether you have done it https://forexintuitive.com/attachments/1529238396.png I have read this thread and looks theres a lot I have to know to grasp whatever where the start of all this and how to use the indior from the 1st page? /

jacaga
06:09,
104035Hi Pips4life,

1st, I want to say Thank you for sharing this great indior! This indior is fantastic, but your kindness to share is even better!

2nd, I want to ask about the usability IndiorCounted from the offline chart. Like I use this, the command will not returned the actual value as from the online chart. It keeps returning . Is this understood? If this is understood, have you try to make the indior counted work?

Thanks! and
Regards

luluatitia27
07:30,
90691
Hello Pips4life,

1st, I want to say thanks for sharing this excellent indior! Your kindness to discuss is even better, although this indior is excellent!

2nd, I want to ask about the usability IndiorCounted in the offline chart. Like I use it, the control will not returned the actual value as in the online chart. It keeps returning . Is this known or it should have worked? Have you attempt to make the indior counted work, if this is known?

Thanks! And
Regards Alvseek, and everybody else with my P4L PeriodCon.mq4 indior:

Re #1, you're welcome and thanks for the match.

Re #2,
Thank you for that interesting observation. I wasn't conscious of it, however it does seem like a restriction with MT4, and it might very well be in charge of a degradation of performance if a person adds several indiors to offline charts, specifically those indiors that make use of IndiorCounted to stop excessive calculations (e.g. Moving Average, all Oscillators, many standard and custom indiors, EA's, etc.).


Some posts that mention this MT4 limit can be found by searching Google for keywords like: indiorCounted offline chart

This is one (but unfortunately it just supports -- and doesn't fix -- the problem):
http://forum.mql4.com/43049

I did not read through many others, but those posts affirm there is an MT4 limitation. So, to get round the issue, I have put together a possible replacement for your IndiorCounted() function which I've called myIndiorCounted(). It ought to work for either offline or routine charts, but I haven't yet tested it extensively. Use it and report back any problems in this thread. I put it in place # 1, if it works.

The attached file is simply a test indior that can be added to any chart, offline or normal. A popup alert will tell you exactly what the standard IndiorCounted() will return, and also exactly what my replacement function will come back, together with a count of the #bars in the chart.

If you add this to an offline chart, you will* notice there is a difference! Whereas the routine IndiorCounted() always returns 0 (which is the MT4 bug/limitation), you will see the myIndiorCounted() will return what it needs to, which is 0 the first time , then with the pitches that follow, it yields the value of Bars-1. For your 1st tick of each new bar, it yields Bars-2. If ever there is a situation where 2-or-more new pubs are observed on an offline chart, my purpose produces a safe assumption to return to force the recalculation of your other indior values. It should not impact your CPU loading as this shouldn't occur frequently.

Assuming all is well with my purpose, simply grab the bottom portion of the attached code. Catch only the int myIndiorCounted() section. Put that into your own indior-or-EA code, and change all existing references to IndiorCounted() to state rather myIndiorCounted(). Compile your code and it must work equally for ordinary charts as well as offline charts. If you're currently trying to utilize a indior, you will either have to find the source code for it, or you need to find an equal replacement with source code that you could edit.

For offline charts, there is one known difference in behavior, which is that if you perform a manual chart Refresh control, it will not force your entire indiors to recalculate all pubs. On a normal chart, a Refresh will work the same. This difference is not a major concern, but if you want to force a whole Refresh of offline charts, you should probably restart MT4 which will do it.


Good luck. Please report back with your experiences with this new function.
Kent ()
https://forexintuitive.com/attachments/1529238351627138650.mq4

jacaga
08:51,
90691
Alvseek, and everybody else with my P4L PeriodCon.mq4 indior:

Re #1, you're welcome and thanks for the complement.

Re #2,
Thank you for that interesting observation. I was not conscious of it, but it does seem to be a restriction with MT4, and it could very well be responsible for a lack of performance if one adds many indiors to offline charts, specifically those indiors which make use of IndiorCounted to prevent excess calculations (e.g. Moving Average, all Oscillators, many standard and custom indiors,... Hello, thanks for the response https://forexintuitive.com/attachments/1529238342.png

really I have use my own process to make things operate. What I am afraid of is when there's indior that the source is not available. But well, seems like we do not have any choice with this restriction that is MT4. Hope the MT5 will have better features.

Because of its myIndiorCounted. I will test and see how it functions. Will report when there's bug or errors.

Thanks! and
Regards

jacaga
10:11,
90691 experience an error when launching new chart. The variable returned 0 again.

In the attachment is the evaluation of myIndiorCounted my method of indior counted. It is analyzed but only about one day however...
https://forexintuitive.com/attachments/15292383542119177643.png
https://forexintuitive.com/attachments/1529238355966350064.mq4

luluatitia27
11:32,
90691
experience an error when opening new chart. The variable returned again.

In the attachment is the evaluation of myIndiorCounted my way of indior counted. It is analyzed but just about one day though...
Hello alvseek,

I'd like to receive a resolution to this, but I don't observe the same issue as you.

From the picture, it might seem you're creating two offline charts: one EURUSD_fx, and also yet another GBPJPY_fx, is that correct? (Or do you have more than one of every?)

Are you absolutely certain that you have active P4L PeriodCon that are upgrading both/all of the offline charts? (I don't understand why this would be a issue, but please verify).

From the list, it seems that EURUSD_fx is functioning fine. Your barsCounted and that from myIndiorCounted appear to agree with each other, so that doesn't appear to be the issue.

But, the GBPJPY_fx is always distinct, and also the simple fact that myIndiorCounted is 0 is a issue. The question is why?

In my code, there are only a few reasons why that might occur:
1) If the routine IndiorCounted() has EVER returned a non-zero amount, then that routine will probably always be used. That doesn't appear likely at all, since we both observe that on offline charts, it returns 0.

2) If the current Bars - last_Bars gt;= 2, then it will return 0. Obviously this is true that the very first time during the code because last_Bars would be 0. Nevertheless, the time last_Bars is getting set correctly, so from then on, it must pass through this section of code.

3) In the next section, there's the line:
if (timeBar0 == last_timeBar0) counted = Bars-1;
else...

Somehow this section of code is not getting executed, or there are strange values in place where both times are not equal to each other. (This is supposed to happen once for every new bar).

When this section of code is being entered but it passes to another section, then the calculation would be:
if ((timeBar0 - last_timeBar0)/(60*Period() ) == 1) counted = Bars-2;
else depended = 0;


From this, it has to return either Bars-2, or 0. Why not Bars_minus_more_than_2? This is my attempt to cover the risk that a chart Refresh from the source chart will update several bars in addition to the current bar. That would influence the offline history, and one would want it to recalculate all bars, hence return 0.

Recall, returning 0 every once in awhile is NOT a issue, but returning it all of the time is (because it will overload the CPU with wasted recalculations every tick).

Any idea which of the three code sections is returning the 0?

By the way, from your picture, I can't tell whether the behaviour for GBPJPY_fx altered after you first added it, or was it always that way?



Thought: My code uses the line:
static bool Normal_IC_Works; // Ordinarily initializes to untrue

Maybe it's not initializing to false as I expect, and that would get you stuck to the 1) section of code. Insert =false to it, see if that fixes it.


While I agree that your alvIC() routine is very simple, I think it might be too simple. The major problem is if there are one-or-more very OLD bars that get upgraded, which will then update all of the offline chart info. While this happens, you need to recalculate ALL bars (so a 0 is greatest ). This situation cannot always be detected. My hack is to assume that if there's more than just one new bar at one time, to recalculate all of them.

In your code, look at changing:
if (IC lt; 0) IC = 0;
to instead:
if (IC lt; 0 || Bars - last_read_bars gt;= 2) IC = 0;


Your code might not take care of the scenario in which the chart gets the highest number of Bars permitted. With every new bar, Bars never changes! However, the Time[0] does, and that is why I put it into my code.

jacaga
12:53,
90691
Hello,

I'd like to get a resolution for this, but I don't observe exactly the same issue as you.

From your image, it would seem you are generating two offline charts: one EURUSD_fx, and also yet another GBPJPY_fx, is that correct? (Or do you have several of each?)

Are you certain that you've got busy P4L PeriodCon which are updating both/all of those offline charts? (I don't understand why this would be a issue, but please verify).

In the listing, it appears that EURUSD_fx is working fine. Your barsCounted and from myIndiorCounted... I am sorry for not providing the full detail.

The EURUSD_fx is a true 1M online chart, although the GBPJPY_fx is 2M offline chart. The evaluation indior is activated to compare between the online and the offline. Yes, the P4L PeriodCon was activated in GBPJPY 1M to create the 2M.


But, the GBPJPY_fx is always distinct, and also the fact that myIndiorCounted is 0 is a issue. The question is why?

In my own code, there are just a couple of reasons why which may happen:
1) In the event the regular IndiorCounted() has EVER returned a non-zero number, then routine will always be utilized. That does not appear likely at all, because we both observe that on offline charts, it returns 0.

2) In the event the current Bars - last_Bars gt;= 2, it is going to return 0. Obviously that is true that the very first time during the code... Somehow, if you activate the test indior and watch it, it will be just fine. The issue occurred when I attempted to create a new chart that don't have any connection with any of them!

And when I tried to restart the MT4, strangely the IndiorCounted works for some first time and it returning 0, and so myIndiorCounted.

As for know, I haven't debug it yet to understand from which section the difficulty comes. However, what I am afraid is in case the offender come from the P4L Stage Con because the error occurred when I tried to open new chart that don't have some connection with the evaluation myIndiorCounted. Nevertheless, I will report it after I've tried.

Additionally, I founded another bug in P4L Phase Con, occurred when I tried to restart the MT4. At the period, the Bars is over-counted, and then back to normal. This generated some errors in certain indior in case it runs into a particular symbol and interval. (This mistake isn't appearing in my other offline chart). (pic at the attachment below)



While I agree that your alvIC() routine is quite simple, I think that it may be too simple. The problem is if there are quite OLD bars which get upgraded, which will upgrade the offline chart data. When this occurs, you do need to recalculate ALL pubs (so a 0 is best). This situation can't always be discovered. My hack is to assume that if there's more than just one new bar at a time, to recalculate all of them.

So in your code, look at changing:
if (IC lt; 0) IC = 0
to instead:
if (IC... Yes, you are right. When there's a new information for your older pub, the alvIC won't recalculate that, although it ought to have recalculate.

And, I don't hear or experience about greatest Bars allowed! Thank you for the warning. I will attempt to improve my codes and place it.

Thanks! and
Regards,
https://forexintuitive.com/attachments/1529238364452674355.png

jacaga
14:14,
90691 found that the offender.

As I mentioned that strangely that the IndiorCounted functions for some initial time and then it returning . This is happening too when you open a new chart (not certain why). And so, while myIndiorCounted is having test code

counted = IndiorCounted();
if (counted gt; 0 || Normal_IC_Works)

Normal_IC_Works = true;
return(counted);


it destroys the entire code after the IndiorCounted work at a Few of this time, but then returning 0. That is because of the || Normal_IC_Works. Following the work that is indiorcounted, the myindiorcounted will always returning value of IndiorCounted that after that constantly 0. Now it work fine. But it stillt required a long term test.

The indior is connected, along with my alternative code (mine appears more complex tough).

Thanks! And
Regards

EDIT: uploaded incorrect indior. Reload the proper one
https://forexintuitive.com/attachments/15292383661628228354.mq4

KarlaHaner
15:35,
90691Hello pips4life,

Is it possible to view M15 offline chart getting updated by P4L_PeriodCon exactly like any other non-standart MT4 timeframes like M3 working with P4L_PeriodCon? When I attempt to start out offline chart, it reveals all of price bars current date, rather than getting updated by indior realtime. I tried even deleting background . The indior generates M15 .hst file using appropriate date range (3 days worth of information ), but some how egy tester opens M15 chart together with information upto current date (over 30 days of data) even though there is not enough information for this.
I will appreciate any help in this aspect.


Thank you.

dieguitoxx24
16:55,
90691
Hello pips4life,

Is it feasible to view M15 offline chart getting updated by P4L_PeriodCon just like any other non-standart MT4 timeframes such as M3 working with P4L_PeriodCon? When I attempt to open offline chart, it reveals all price bars upto current date, instead of getting updated by indior realtime. I attempted deleting background file that was M15. The indior generates M15 .hst file using proper date range (3 days worth of data), but some how egy tester opens M15 chart with data upto current date (more than 30 days of data) even though... RTFM or in this case, browse Post #1 =

* As before, you cannot generate a chart that has the same period as an already existing normal timeframe: M1, M5, M15, M30, H1, H4, Daily, Weekly, Monthly (and on certain brokers like Oanda, M10). However, as it exists, there is no point in doing this. But if you need one of these normal charts but timeshifted no problem, by a certain level.

https://forexintuitive.com/attachments/1529238344.png

puesma
18:16,
90691Hi pips4life

what a Fantastic piece of software, up there with the very best of any for MT4 Online - if not the best

Thanks a Thousand

I Am sure many could Not trade too well without it
Ps, you should have a donate button on the thread somewhere

maxiseiscentto
19:37,
90691 I'm trying to Perform Inverse offline chart with PeriodCon indi,

I've Altered following codes

Inserted Code if (init) //first time, init data d_open = 1/Open#91;start_pos#93;; d_low = 1/Low#91;start_pos#93;; d_high = 1/High#91;start_pos#93;; d_close = 1/Close#91;start_pos#93;; d_volume = Volume#91;start_pos#93;; I = start_pos - 1; Should (FileHandle gt;= 0) last_fpos = FileTell(FileHandle); Should (CSVHandle gt;= 0) csv_fpos = FileTell(CSVHandle);

Inserted Code else i_time = LastBarTime/ps; i_time *= ps; d_open = 1/Open#91;I#93;; d_low = 1/Low#91;I#93;; d_high = 1/High#91;I#93;; d_close = 1/Close#

luluatitia27
20:58,
90691
I am trying to perform Inverse offline chart with PeriodCon indi,

I've altered after codes
...
what I am doing wrong? It could be a combination of things done wrong, but the main one is that you simply put d_low = 1/d_low, and d_high = 1/d_high. If the prices are inverted, then the High becomes the Low Cost (and also the Low becomes the High) from the inverted chart. When your data malfunction is detected by MT4, it displays nothing and craps out.

I am not responsible for changing the calculations of d_open/high/low/close because you did. It is much better to leave these alone, and then to reverse the prices exactly where the code writes the values into file(s).

I've a functioning compilation done. I just want a response to this:

Just how many decimals are used in various inverted charts? It seems to me that should 5-or-more are used in, say, EURUSD is fine from the inverted chart.

However, take money USDJPY for example. Most brokers record 3 decimal places, as in 78.563. What do brokers record for the equivalent? Do they say: 0.01273 or 0.012729 or 0.0127286? (The difference being 5,6 or 7 decimals).

Does one have a futures JPYUSD chart they may look in and tell me how many digits are commonly used?

Currently, my new code proposes to utilize:
Inserted Code int i_digits = Digits; // To get a non-inverted chart. If (InvertChart) // to get an inverted chart: if (i_digits lt;= 1) i_digits = 8; else if (i_digits lt;= 3) i_digits = 6; else i_digits = 5;...
Any issue with this plan?

maxiseiscentto
22:18,
90691
It might be a combination of things done wrong, but the main one is that you put d_low = 1/d_low, and d_high = 1/d_high. When the prices are inverted, then the High becomes the Low Cost (along with also the Low becomes the High) from the inverted chart. When your data malfunction is detected by MT4, it craps out and displays nothing.

I am not in favor of changing the calculations of d_open/high/low/close because you did. It is much better to leave those alone, and then to reverse the prices exactly where the code writes the values into document (s).

I've a functioning rewrite...

Thank you pips4life, I forgot the part, now it's functioning https://forexintuitive.com/attachments/1529238345.png

maxiseiscentto
23:39,
90691

However, take money USDJPY for example. Most brokers record 3 decimal places, as in 78.563. What do brokers record for the equal that is inverted? Do they state: 0.01273 or 0.012729 or even 0.0127286? (The difference being 5,6 or 7 decimals).

Does one have a futures JPYUSD chart they can look at and tell me how many digits are generally employed?

Currently, my new code proposes to utilize


Any issue with this program? XE.com using 5 digit for purchase yen pair too
Jpn/euro 0.00979

luluatitia27
01:00,
90691See article #1 for the latest version v1.11 upgrade.

2012-10-18: Released v1.11 upgrade of P4L PeriodCon.mq4
Changes:
* Variable InvertChart added. If set to True, an inverted chart is output with the I as a prefix to the name. (e.g. iEURUSD,H1)
* New external variables:
InvertedOutputMultiplier = 1.0 The inverted prices are = InvertedOutputMultiplier/price.
InvertedOutputDigits = -1, where -1 is Automatic, or the user may manually set to gt;= 0
Example: Invert USDJPY to find iUSDJPY (same as JPYUSD). Set InvertedOutputMultiplier=1000.0, and set InvertedOutputDigits=3 (or 4). A price of 79.275 would normally reverse to 0.012614 but with these overrides, inverted price will be 12.614
* Changed the principal preliminary popup message to
P4L PeriodCon: Do FileOpen_Offline of chart: EURUSD,H12 (offline) (Time altered 0min) and KEEP this Resource H1 OPEN!

salva4t
02:21,
90691GBU pips4lifeI'm new to ur indy (yet to download try it), but perusing thru the thread, ur commnt over time is obvious. GBU again

benedited
03:41,
90691hello pips4life

I'm tech deaf and dumb, this may be a silly question.

Gt; Will the mt4 quantity indior work with offline charts created by P4L PeriodCon?

Im doing a little research into VSA. And was wondering if the quantity based on the selected time frame would tell us more versus using the typical time frames to me.

My principal concern is the typical indior from mt4 would not provide us the real volume dependent on the candles supplied by P4L PeriodCon.

Yes, I am aware that quantity in forex does not measure total trades, but total action of the candle.

I suspect (hoping) that quantity (activity) within the selected time frame will provide some fascinating information https://forexintuitive.com/attachments/1529238345.png

luluatitia27
05:02,
103710
hello

I'm tech dumb and deaf, this could be a ridiculous question.

Gt; Will the mt4 volume indior work with offline charts made by P4L PeriodCon?

Im doing some research into VSA. And was wondering when the volume based on the selected time frame would inform us more versus using the typical time frames to me.

My main concern is the typical indior out of mt4 wouldn't supply us the real volume dependent on the candles supplied by P4L PeriodCon.

Yes, I know that volume in FX does not measure total trades, but overall... The normal MT4 volume indior and probably most other average volume indiors should work good with the charts made by P4L PeriodCon.

The outputs of P4L PeriodCon, including volume as well as all prices, are all taken from the bottom period and subsequently collected and grouped to create the desirable higher timeframe. The volume is a simple addition of the timeframe candle amounts.

By way of instance, state that you just open a base H1 chart, and then you use the indior to create a 24-hr Daily chart that's timeshifted by 7H.

When your broker time states 17:00, a new hourly bar starts on the regular base H1 chart. In your 7H,Daily chart, a new Daily bar with *chart* time 00:00 has only started. The volume is equal to the 1st bar in the bottom chart.

With the next hour, the Daily bar then adds the final volume of this 17:00 bar to the new volume of the most recent H1 bar of 18:00.

With each new hourthe exact same thing happens. The Daily bar shows the added volume in the bottom hourly bars of 17:00, 18:00,... through 16:00 of the following moment. When that 16:00 bar closes at 16:59:59 will the 7H,Daily bar and the volume for that Daily bar is closing.


So, nothing magic or mysterious. Just straightforward addition to acquire volume.

Good luck with your study of VSA.
Kent

Evasamper
06:23,
1037101 Structure (s) TILE VERTICALLY 4 TIME FRAMES OF SAME PAIR EACH UP TO 10 PAIRS WITH SIMPLE CLICK

Please can you take a look at my screenshot. I want EU, GU, EJ, UJ,....up to 10 pairs should all be exhibited 4 each as seen on my EU example. Is there a way I will make them DEFAULT such a manner that I don't have to be setting them up every time I reload my chart. Can you assist me with a script to do this please.

That's,

EU = 4 time period tile vertically

GU= 4 time period tile vertically

GJ= 4 time period tile vertically

e.t.c., e.t.c, e.t.c

Hope my explanation is quite clear today. Thanks


Example below for EU 4 screen time period vertically
https://forexintuitive.com/attachments/15292383741110611171.png

pindaka
07:44,
103710
TILE VERTICALLY 4 TIME FRAMES OF SAME PAIR EACH UP TO 10 PAIRS WITH SIMPLE CLICK

Please can you Have a Look at my screenshot. I need EU, GU, EJ, UJ,....up to 10 pairs should be displayed 4 each as noticed on my EU example. Is there a way I will make them DEFAULT such a manner I do not need to be putting them up each time I reload my chart. Can you assist me with a script to do this please.

That is,

EU = 4 time period tile vertically

GU= 4 time period tile vertically

GJ= 4 time period tile vertically

e.t.c., e.t.c,...

Hi,
you are able to perform simply the following:

a) the four charts you have: save them, e.g. as EURUSD Profile

b) now put another pair at those charts by simply drag and drop the pair for your charts

c) now that you've got, e.g., four charts with USDJPY, simply save this as USDJPY Profile

d) repeat with another pairs



So in the long run you only have to change the profile


Hope that will help

luluatitia27
09:05,
96365
TILE VERTICALLY 4 TIME FRAMES OF SAME PAIR EACH UP TO 10 PAIRS WITH SIMPLE CLICK

Please can you Have a Look at my screenshot. I need EU, GU, EJ, UJ,....
Hijacking my thread to ask your totally unrelated query is NOT WELCOME! It was to provide you a proposal, but be considerate to me and to other thread starters to honor the subject of each thread.

Find an appropriate thread that manages your topic matter and ask such questions there. Here is just one thread, which you can probably also benefit from by studying it all of the way through (that is, if you are intent on learning about your trading instrument, MT4).

MT4 navigational Methods and techniques

Evasamper
10:25,
90691@Infinitus, thank you for this suggestion. It helps. @Pip4life, hmm sorry about that. Incidentally I was able to grab several things. Cheers

Danaeris
11:46,
90691Pips4life,

Excellent work!
Besides of the open, high, low, close, volume exported into the csv file in real time, can we have indior worth exported also? I can control the indior worth, if upbeat. This was something I was looking for.
And the best is all values displayed in the information window be exported into the csv file with this glorious converter. This will grant space for any user to make his option. Of course from the mt4 official announcement, the information in the information window Can't Be manipulated further;--RRB-

Thanks,

luluatitia27
13:07,
106195
Pips4life,

Great work!
Apart from the open, high, low, close, quantity exported into the csv file in real time, can we have indior worth exported also? I will then manipulate the indior worth in excel at real time if affirmative. This was something I looked for.
And the top would be values shown in the data window be exported into the csv file with this splendid converter. More space will be granted by this for any user to create his option. Of course from the mt4 official announcement, the data in the data window can't be manipulated... My indior requires system data, interprets it, and writes it out into a document.

The data generated by other indiors isn't system info as I am defining it . It's not trivially available for my indior such that it might lead it, except to completely customize my code to import the other indior(s), likely with the usage of the iCustom() routine.

It could probably be done, but it is custom programming which could probably be carried out by contract for pay, which isn't something I'm seeking to perform at present.

juanjjc
14:28,
90691I'm sorry if this is a dumb question but I can't find where my csv is being saved to.

Settings: Allow DLL Checked
Period multiplier = 3 (15min chart)
Timeshift -2.0
Output CSV = 1

As could be anticipated, my hst document is being saved to C:MT4Alpari Demo Aug12historyAlpariUK-Spread-BettingEURUSD-2H45. Hst
there is absolutely no trace of any csv files being created.

Thanks!

luluatitia27
15:48,
106195
I am sorry if this is a dumb question but I cannot see where my csv has been saved to.

Settings: Allow DLL Checked
Period multiplier = 3 (15min chart)
Timeshift -2.0
Output CSV = 1

As could be expected, my hst file has been saved to C:/MT4Alpari Demo Aug12/history/AlpariUK-Spread-Betting/EURUSD-2H45. Hst
There is not any trace of any csv files being created.

Thanks! All documents obtained by MT4 FileRead or FileWrite operations utilize this folder:

C:/. . .path_to_MT4/experts/files/

you'll discover your file EURUSD-2H45. Csv beneath there.

(To help users like you who may have a similar query later on...)
When -- or even if -- I return to a new release, the descriptive message will change into:
CSV file will also be created in lt;MT4gt;/experts/files/

juanjjc
17:09,
106195Thanks! I was looking . I'm sure just adding a note from the directions on post 1 might do the trick however a message.

All the best,
Dave

luluatitia27
18:30,
106195
... I'm sure just including a note from the instructions on article 1 [regarding the CSV output ] would do the trick. Great idea Dave. Done.

Alberjudez
19:51,
106195 Hello,
Thank you Pip4Life for wonderful indior. I am attempting to make a 12hr chart but once I produce a 12hr chart with timeshift (either or -) then I will eliminate choice to trade on chart. I am not certain what am I doing wrong. pls. help. Thank you beforehand. pls. See the screenshot. If donot use timeshift I will be able to see trading choice as well as my current transactions. Thank you
https://forexintuitive.com/attachments/1529238313631929785.png

luluatitia27
21:11,
106195
Hi, Thank you Pip4Life for wonderful indior. I'm attempting to create a 12hr chart but once I produce a 12hr chart with timeshift (either or -) I will lose option to trade on chart. I'm not sure what am I doing wrong. pls. help. Thank you. pls. Watch the screenshot. But if donot use timeshift afterward I'll be able to see trading option as well as my current trades. Thank you image Hi candle_Stick,

This really is one of the constraints imposed when the Symbol() title has changed, which always occurs on TimeShifted charts. I'm sure it had been discussed in a few of the articles through the thread, but for clarity, I've added the following text to post#1:

Limitations:
* In case your generated chart has changed the Symbol() title (which comprises all TimeShifted charts!) , you won't be able to use that chart with EA's or alternative indiors that need the first Symbol() title in order to work. Neither will you view live trades displayed on that chart. Why? Your broker only knows about the official Symbol names (e.g. EURUSD). An EA can place a trade of the Symbol, and MT4 can exhibit the Buy/Sell/SL/TP lines for trades on all charts with the same Symbol name. But in case you have a TimeShifted chart, the Symbol title may have changed, for example, to EURUSD 7H. Your broker does not know anything about that new Symbol title, so that you can not trade it straight, and MT4 won't exhibit live trades on TimeShifted charts. Assuming you have access to the MQ4 source file, your code are likely to be modified to place trades if it knows the original Symbol() name. Document P4L getPeriodSymbolTimeshiftsecLib.mq4 below [in place #1] is supplied for this function, but it's up to you to alter your MQ4 source code.

Alberjudez
22:32,
97965Thank you P4L for response. I attempted to look at the app you suggested but because I really don't have some hints on programming. . So I needed to give up. However I attempted to alter P4L periodcon. . Such a way that when it returns it shouldn't add any H.. but again. . Not sure of my programming abilities. .
I had been looking at this area of your app. .

Symboloutput = symbol;
FLAG_NO_OFFLINE_CHART = true; // One cannot generate an offline chart with the same title as a regular TF chart!
If (OutputCSVFile ! ) = OUTPUT_HST_ONLY) OutputCSVFile = OUTPUT_CSV_ONLY; //two
}
else if (intShiftByNum gt; 0) symboloutput = StringConenate(symbol, ,DoubleToStr(intShiftByNum,0),strShiftByUnit);
else if (intShiftByNum lt; 0) symboloutput = StringConenate(symbol,DoubleToStr(intShiftByNum,0) ,strShiftByUnit); //disadvantage
else symboloutput = symbol;

All I was trying was, rather than generating a symbol like EURUSD 2H, 12hrs. . I had been trying to make it something like this EURUSD,12hrs 2H.. This way original symbol is not touched. . Not sure how complied to generate this. .
Thank you

CHICOKRATOS
23:53,
97965Have successfully used this to make H12 charts (of this kind GBPUSD, H12); however, when I try to do so with one hour time change (of the kind GBPUSD 1H,H12), MT4 doesn't seem to enjoy it1) a few indiors are missing, two ) if I attempt to set an order the wrong pair comes up, 3) when I eventually succeed in putting an order, through another time frame, the entries and stop horizontal lines aren't shown. Any ideas?

Oriolfer
01:14,
106195Just stumbled upon ribbon... I have of course seen Pips4life's work before on the site, so I understand this indy will be a quality thing.
. .
Please let me ask 1 thing I have NOT SEEN SO FAR as I have been skimming through the posts...
. .
-----
. .
QUESTION: Once I produce, say, a 7 min chart on my MT4... CAN I THEN ATTACH INDICATORS IN THE USUAL WAY TO IT AND HAVE THE INDICATORS RUN NORMALLY?
. .
... OR... is there there some limit in that area?
. .
Thanks . . .and thanks to Pips4life for his work on this.

Oriolfer
02:35,
106195update -- oops... I moved to re-read everything.... And that I see such matters as:
. .
Some indiors are not compatible with these generated charts.... Some of them perform, although indiors and scripts do not care about what the symbol name is precisely. (ALL EA's that take trades DO care, and are not compatible unless modified!) .... Also note any indior that's hardcoded the typical timeframe values may need modifiions to work with non-standard timeframes like M10, M45, H2, etc. (UPDATE: Watch launch of P4L getPeriodSymbolTimeshiftsecLib.mq4 below!)
. .
Well, you don't have to respond to my last post. I didn't read carefully enough the first time through.
. .
Thanks

puesma
03:55,
106195Hi,

does Anybody know if its going to be possible to Get a similar indior to Get MT5
Metaquote's interpretation of what we should use, isn't exactly the best Alternative
I realise There's no offline chart Alternative, but Can there be a work around for this

any Suggestions and advice appreciated
thanks

panpijo
05:16,
106195excuse me. .
Sorry if my english bad. .
I tried hard to understand the first post...
its really tiring and confusing. . LOL. .

Apologize for that. .
But just 1 question. . Is it done in simulator? Is the step same in simulator? Sorry if there was any question similar to this and repeated it. .
Want your response ASAP. .

thank you very much. .

dieguitoxx24
06:37,
97965
excuse me, sir. . Sorry if my english bad. . I strove hard to comprehend the original post... its very tiring and confusing. . LOL. . Apologize for that. . But just one question. . Can it be done in simulator? Is exactly the same in simulator? Sorry if there was any question similar to this and I repeated it. . Want your answer ASAP. . Thank you very much. . When you have issues with first article, you will surely have trouble with running a simulator.

Do you have a simulator? Which one?

What is it exactly that you want to simulate?

Have you even try to do everything you asked us to perform for YOU?

Should we say yes, and then you can't do it, we'll be here holding your hand for the rest of the year.

Do you even trade?

Do you have a trading program?

Good night https://forexintuitive.com/attachments/1529238305.png

aranchamc
07:58,
97965hi guys

I manage to find the offline charts but the price doesn't move and I must refresh the page every second to find that the change in price. . .help please

panpijo
09:18,
97965anyone understand many 4hr candle in 1? And just how many 4hr candle in 1 month?
thank you very much. .

dieguitoxx24
10:39,
97965
anybody know how many 4hr candle in 1 week? And just how many 4hr candle in 1 month? Thank you very much. . When you have a good broker that opens closes at New York 5 PM, the math is really easy

24 hours daily times 5 days = 120 hours

Divide that into 4 hours pubs ought to catch you 30?

How long is the month? 4 months will provide you 120 or 5 months will provide you 150

Now tell us your secret plan for world domination or else!
https://forexintuitive.com/attachments/15292383161322450057.png

celiatrf
12:00,
I've downloaded the indior. But sir, the indior is not working when I am not connected to internet. I also have tried it to backtest on a really old mt4 construct 410, but nevertheless there isn't any actual time update. If I turn the debug then it's showing that no machine. Please sir, give me a suggestion that what can I do?

I will be awaiting your reply.

luluatitia27
13:21,
96365
I've downloaded the indior. But sir is not working when I am not connected to net. I have tried it to backtest construct 410, but still there isn't any actual time update. When the debug flip then it's showing that no machine. Please sir, give me a proposal what can I do? I will wait for your answer.
Re-read post #1, I guess. I have no problems to generate a timeshifted/multiplied chartif I unplug my ethernet cable. Of course it does not update with new info, but it can use the information it has.

Maybe you need to Refresh. Right-click in the offline chart, and select Refresh.

If this does not help, sorry, I have no further comment. It's main purpose is for . Offline unconnected is working for me, so I do not know what to say.

victormartinezdiez
14:41,
96365HUGE 10x for this indi!!! The only way to exchange H4 TF using GMT. Wow 10x god for sending me here after hours of searching a solution https://forexintuitive.com/attachments/1529238284.png

salva4t
16:02,
96365
HUGE 10x for this indi!!! The only way to trade H4 TF using GMT. Wow 10x god for sending me here after hours of searching a solution https://forexintuitive.com/attachments/1529238285.png No tzolov, exness offers mt4 with GMT server time. But sure is strong, I'm a witness.

Ahstrid
17:23,
96365Hi,

could anyone advise how to acquire correct Quarter data.

In my broker´s MT4 1MONTH chart utilizing interval converter and including multiple = 3 I am seeking to acquire quarter data. Nevertheless generated data (displayed candles) are not revealed in anticipated periods as from 1.1. To 31.3, then from 1.4 to 30.6, then from 1.7 to 30.9, then from 1.10 to 31.12.

But have been displayed in various periods and candles began 6.11, afterward 14.2, afterward 15.5, afterward 13.8 therefore its aproximatelly 3 months between customs, but unfortunatelly this is not alligned from start of this year so its not equivalent to desired quarter from 1.1. To 31.3, then from 1.4 to 30.6, then from 1.7 to 30.9, then from 1.10 to 31.12.

Once I do the same to Month chart and I am adding multiple =12 I'm becoming year candles and this time CORRECTLY so every candle starts 1.1 each year. So why I cant receive also right quarter data. What's wrong?

Could anyone help me to find correct quarter data?

cheers
Fiala

sk4rt
18:44,
96365KentI cant thank you enough for updating and sharing this script!
This is a major improvement to MT4, - MetaQuotes should hire you and pay you tons of bucks for it!

luluatitia27
20:05,
96365
Hi, could anybody advise how to get proper Quarter data. To my broker´s MT4 1MONTH chart including multiple = 3 and utilizing period converter I am seeking to get quarter information. However generated information (displayed candles) are not showed in anticipated periods as from 1.1. Into 31.3, subsequently from 1.4 to 30.6, subsequently from 1.7 to 30.9, subsequently from 1.10 to 31.12. But are exhibited in various periods and candles began 6.11, then 14.2, then 15.5, then 13.8 therefore its aproximatelly 3 months between dates, but unfortunatelly this is not alligned from beginning of the year therefore... Hi Fiala,

My apologies for not responding sooner.

You found a bug with the code. You aren't doing anything wrong, I'm certain, and I replied the problem doing a multiplier of 3 on a Monthly chart. The pub dates are messed up, and the information looks bad. I see gaps that shouldn't exist, and it could be that the boundary-dates aren't being identified.

There is a part of the code that uses the PERIOD_* constants to calculate the length of the multiplied chart period. The lower timeframes tend to function better since the constant truly simplifies the period frame (e.g. PERIOD_H1 = 60, PERIOD_W1 = 10080 (=60*24*7). On the other hand, the PERIOD_MN1 = 43200(=60*24*30), which is a 30-day month, but some months are somewhat shorter and more, and that's the issue.

I understand I had believed multiples of Monthly charts a long past, and some thing I tried didn't work. Unfortunately, though, I do not even have time to glance at it right now, and MN_x3 charts are low priority for me personally. I really don't know when (or when ) I'll repair that, therefore...

If another programmer/user wants to look in to this complied code, then please do. Note: I did substantially change it a long time ago, although I didn't write the initial version of this. There is a line in the code commented out: / / /else if (MathMod(NewPeriod,PERIOD_MN1) == 0) // Doesn't work! That are the place to get started. (Elsewhere, there's another section related to encouraging timeshifts on chart too; same issue).

sk4rt
21:25,
96365Hi Kent,
Your superb script P4L Periodcon just stopped working following MT4 upgraded to build 574. I looked through http://forum.mql4.com/60075/page5, folks say that it's something to do with that arrangement of .HST files changed by ANSI to Unicode, so DLL's that handle them woudnt work no more (articles http://forum.mql4.com/60075/page5#892625 and http://forum.mql4.com/60075/page5#892658 are relevant to describing the issue ).
I had been wondering if you had any plans to upgrade this script sometime in the foreseeable future?
However, I know you have other things to do, and in case you dont plan to operate on the script anytime soon, will you tell (if you know) how can this code be converted to new format? I have read the code, and know how it works, but don't have any clue what needs to be done to update to new format. Hope to hear your ideas.
Thank you in advance!
Serg

irevolutiof
22:46,
90691Hi guys - script and I have a question concerning it's use. (sorry if the question is pretty simple )
I'd like to use this script to generate offline charts for backtesting an EA on habit time frames like H8 and H12. My broker is GO Markets and their D1 candle closes at the New York close 5pm EST.. So how do I be confident the offline charts that I generate (using imported tic data from forextester.com) coincide with the exact same chart time as my broker? By way of example, if I generate an H8 chart, I want to make confident the H8 candles that I generate from the script start at 5pm EST, 1am EST and 9am EST.. Perhaps someone can direct me in the right direction for this. Thanks very much.

Grensleaves
00:07,
90691Basic query:

When compiling in MT5, I get
gwstr: Parameter conversion not permitted online 1030
which corresponds to
len = GetWindowTextA(hwnd,gwstr,80);
what's wrong?

It compiles fine with MT4, my broker FXCM automatically
upgraded the platform to MT5.

luluatitia27
01:28,
90691I'll be looking to find out what I could come up with. Yes, the .hst structure altered, but I do not yet understand the details. Regarding gwstr, it is defined as type series, but the GetWindowTextA function expects a range of type char. It should be possible to repair the code. Not certain when, as there are a great many progr that need updates to keep workingout.

sk4rt
02:48,
90691thanks Pips4life!

Jack
04:09,
90691Hi P4L,

Many thanks for your indior, I have made a movie of its use with full attribution to you in my trading group - 1300 members.

FYI - the new MT5 format can be obtained here http://forum.mql4.com/60455

Kind regards,

Chris

angeles601
05:30,
90691
Hi P4L, Many thanks for your indior, I've made a video of its usage with full attribution to you personally in my trading collection - 1300 members. FYI - the new MT5 format is available here http://forum.mql4.com/60455 Kind regards, Chris
It is not MT5 it is the new MT4 .hst format, so it's extremely, very different to MT5.

selene15m
06:51,
90691Hi All, and pips4life!

I am greatly depressed. Let me provide you with the reasons to why I am depressed.

I absolutely adore P4L PeriodCon.mq4. I've been using offline charts with particular settings and now because the metatrader decided on upgrading to Version 4.00 Build 6.00 that the indior P4L PeriodCon.mq4 has stopped functioning.

I am depressed because of this. I cannot trade on account of the offline charts not functioning.

I've attempted to compile but it has been coming back with mistakes.

It's come back with the following problems:-


2 Warnings
--------------
Description:'void' function yields a value
File: P4L PeriodCon.mq4
Line: 886
Column:7

LINE 886 is as follows: return (-1);

------------------------------------------------

Description: not all control paths return a value
File: P4L PeriodCon.mq4
Line:966
Column: 1

LINE 966 is as follows: } // end of reinit

-----------------------------------------------------


1 Error
--------------

trick:'gwstr' - parameter conversion not allowed
File: P4L PeriodCon.mq4
Line:920
Column: 33

LINE 920 is as follows: len = GetWindowTextA(hwnd,gwstr,80);

----------------------------------------------

Is there a way for me to compile without needing any mistakes?

I attempted to revert to old version of mt4 but it is asking me to upgrade.

Can somebody help please?

Thanks for reading my post.

its_molly
08:11,
90691 same problems, MT4 new build trashes indior.
Script still works but its way too clunky and a script can not be incorporated/added into a template
https://forexintuitive.com/attachments/15292382902089438029.png

its_molly
09:32,
90691there is a god.

Another forum but a person called Mladen has recoded it to work.

http://www.forex-tsd.com/metatrader-4/122180-new-metatrader-4-compatible-indiors.html#post658590

selene15m
10:53,
90691
there is a god. Another forum but someone called Mladen has recoded it to work. Http://www.forex-tsd.com/metatrader-4/122180-new-metatrader-4-compatible-indiors.html#post658590 I believed there was a god. For the time being, I cannot make it work on my new version that is mt4.

Kindly put in full code please so I can make it work with the file you are using.

Thank you.

luluatitia27
12:14,
90691Perhaps you don't know that the 509 compiled .ex4 document is in fact far as I know -- harmonious with the new construct. I just used in on assemble 606, and it is correctly generating and upgrading the charts. Please provide details, In the event that you or somebody else is experiencing a problem with it.

You can't compile the old .mq4 on the new construct without code fixes, for sure.

its_molly
13:35,
90691
the 509 compiled .ex4 file is
I'll try that, is that on the first page or somewhere else?

Can it be possible to have a 4 hour chart generate a 8 and a 12 hour ? I.e add two copies of the indior to a chart?

PG

puesma
14:55,
quote I'll try this, is that on the initial page or somewhere else? Is it possible to have a 4 hour chart generate a 8 and a 12 hour ? I.e add 2 copies of this indior to a chart? PG you can generate whichever time frames you like
aslong as there Is Sufficient history data

luluatitia27
16:16,
An upgrade was added to article #1.

2014-02-14: Uploaded P4L PeriodCon 509.ex4 (nevertheless v1.11)

Changes: None. It was simply compiled with build 509, also it appears to be compatible with all the new builds gt;=600.
Fyi, the submitted v1.11 .mq4 file isn't compatible with all the new builds. It will require code changes. Should you have to create custom made edits, then you may use your own (old) backup of 509, or even find the 509 MetaEditor posted elsewhere that you may use to edit and then re-compile to create your own. ex4 file.

orts2455
17:37,
Hi Kent,
I am experiencing a really weird behavouir:

I used your indi for a month, now with construct 600 under win7 64 bit the offline chart are no more updating....

So I see there was the new 509 construct.
I got it 1.11 509, the last one in the first article.

I place it at the MQL4 indiors folder.

Only when I click on the origin online chart, it appear to work...
I clicked on import dll also....

Can you help me knowing what is happening? ^
I place in only the accumulated ex4 not the mql one.


Currently I m becoming mad couse I really do not know what we can do! Https://forexintuitive.com/attachments/1529185671.png)

thanks,in advance,

mat

luluatitia27
18:58,
hi Kent, I'm experiencing a very weird behavouir: I used your indi for month, now with construct 600 beneath win7 64 piece the offline chart are not any further upgrading.... So I read there was the new 509 construct. I got it 1.11 509, the previous one in the very first article. I place it in the MQL4 indiors folder. Only when I click the source online chart, it appear to work... I clicked import dll also.... Can you assist me understanding what is going on? ^ I place in only the accumulated ex4 not the mql one. Now I m becoming mad couse I really do not know what we can do! Https://forexintuitive.com/attachments/1529185672.png)... Mat,

I've win7x64, and XP. My XP has 600 and it works. On my Win7 I've just analyzed 610 and it also works. (That said, on my Principal Win7, I am sticking with older 509 installations and avoiding use of gt;=600 builds until they settle down and stop producing upgrades every 1-2 freaking days)


On Win7, I use a shortcut to begin the terminal, and have edited the shortcut so that the Target says, exactly with and without quotes as follows:
C:\Users\Kent\MT4 MBT 600\terminal.exe /portable

Therefore, my indiors prevent UAC and the stupid/complied extended route. I will then place the ex4 here:
C:\Users\Kent\MT4 MBT 600\MQL4\Indiors\P4L PeriodCon 509. Ex4

I have no clue what you mean as you say, only when I click the source online chart, it appear to work. Click??? After adding the indior, there's absolutely not any additional click from the source chart to be done. Are you following the instructions in article #1?

1. Open an H1 chart. For this example, use EURUSD,H1, but it can be anything.
2. Insert the sample template below. This adds two instances of P4L PeriodCon 509 to the chart. DLLs are enabled.
One generates base 7H,H4; another foundation 7H,Daily.
(Fyi, I have a broker that uses GMT-5 charts, so if I wish to find out what GMT 2 charts seem like, this is what I use).

3. FOREVER keep that source H1 chart open. There is not any additional requirement to click on nor Refresh nor do anything further with it. You can minimize it; just do not close it.

4. Then use menu command: FileOpen Offline -gt;gt; navigate to EURUSD 7H,H4, choose it and click on Open.
5. Do the Exact Same to start the EURUSD 7H,Daily.
(Hint: If you want to control the colours and installment of the offline charts, set up one of those offline charts as you want it. Then create a template and call it offline. Make certain that the F8/PropertiesCommon tabOffline charts button is chosen ).

Given that you have your source H1 chart open, then both of those offline charts should be upgrading, dwell, whenever a new source chart tick comes from.

WARNING: Be sure you don't have more than one source chart open which is attempting to generate the exact same offline chart as a different source chart. You can have multiple source charts, and numerous cases of this indior on any source chart, but do not ever try to generate exactly the exact same offline chart over once. Easiest way to check is to quit and restart MT4. The popup messages out of my indior will inform you which offline charts have been actively generated. Compare the names and make sure there are not any duplies.

Works for me. If not for you, I've zero idea why not.


Edit: Template removed. Go to post#1.

luluatitia27
20:18,
An upgrade was inserted to post #1.

2014-02-17: Uploaded sample 509 templates (Construct 600 harmonious )

Changes:
Two sample templates are available below. They're identical, except with respect to what indior title is used.
One assumes use of P4L PeriodCon 509. ex4. The other assumes use of P4L PeriodCon.ex4. (Both based on v1.11).
I do not care which name you use for the foundation indior. Your choice.

Use the Suitable template with any H1 chart. It'll generate two offline charts: base 7H,H4 and base 7H,Daily

The generated H4 and Daily charts are timeshifted by 7H. Why? These are intended for use with GMT-5 broker feeds (i.e. those who fit NewYork U.S. Eastern Time). If you have such a GMT-5 broker, you can use this template to generate GMT 2 charts. Fyi, GMT 2 Daily charts normally have 5 -Daily-bars-per-week, and 30 -H4-bars-per-week. GMT-5 charts (and most every other time feed) have 6-Daily-bars-per-week, also 31-H4-bars-per-week. I love to compare the two, since the broker feed affects, by way of instance, the slopes of trendlines, pitchforks, etc..


New users: No matter your broker GMT ?? , use these templates to begin, just to prove that you can generate and open offline charts. Then customize the settings and create your desired template(s) that fit your own requirements. If you'd like M10 or H2 charts... then customize. If your broker has another GMT offset, then use a different timeshift value to customize as desired.

(see post#1 for your own documents )

orts2455
21:39,
Hi kent, when I say I click on the h1 chart....it signifies that we've in the background a resource, that is not offline....it is online and is the h1 chart (eurusd ie).

The moment a click on that chart, the offline one,that periodconv is converting in a daily chart, get upgraded....this is what I tried to state!! Https://forexintuitive.com/attachments/1529185672.png

this is weird....

Nevertheless I tried just today.
This is what I do:
make an h1 chart eurusd
include P4lperiodconv 509
and place it 24 hours change in pub 2

then choose that chart in the offline button.
Till today it s okay but when I change profile, and then return to the exact same profile, then the chart is not any more updating!
I don't know whether this is really a bug. . .but this is what occurs to me....
Ah, and then when I click on the h1 chart I receive the popup alert telling me I have to open a new offline chart, even when I have already one!!

It is like if it quit refreshing when I change profile....while before was workiing today it is no more....

If you want I can let you team viewer....


m

luluatitia27
23:00,
hello kent, when I say I click the h1 chart....it signifies that we've in the background a supply, that is not offline....it is online and is the h1 chart (eurusd ie). The moment a click on that chart, the offline one,that periodconv is converting in a daily chart, get updated....this is what I tried to say!! Https://forexintuitive.com/attachments/1529185672.png that is bizarre.... However I tried now. This is what I do: produce a h1 chart eurusd add P4lperiodconv 509 and set it to multiplier 24 hours shift in bar 2 then I choose that chart in the offline button. Till now it s ok but when I alter... Hi Mat,

Ok. Given your better more detailed description -- which turns out to be subtle but quite crucial -- I have reproduced the MT4 bug. I am really glad to now be aware of it, because it impacts ALL indiors that are iconified, whenever one switches profiles. I registered a Service Request at http://www.mql5.com (yes 5, though its own MT4).

You have two options:
1) Cease using profiles. I don't domyself. I set up MT4 in several parallel connections, and I run several simultaneously. If you've got a modern computer with adequate CPU (esp. Numerous cores) and enough RAM, it should work good.
Two ) If you keep using profiles, un-iconify the source chart. (Additionally un-iconify every other chart that generates alerts or runs EA's, etc.) They aren't likely to function until MQ fixes this serious bug.

Here's the Service Request text that I registered:
Title: Construct 610. Iconified charts stay completely inactive after changing profiles! SERIOUS BUG!
Lots of customers have indiors that create alerts or other updates that must occur even when the chart is iconified. This is generally true, and was accurate in 509, however in 610, the BUG is that if you switch profiles back-and-forth with a different profile, these charts that are nevertheless iconified are NOT getting updated at all! The net effect is that alerts/updates/etc. Are completely disabled. This is totally unacceptable.

I am sure that you can use anything to reproduce this, but connected is my P4L PeriodCon 509.ex4. (Same problem occurs for native 610 compiled indiors!)
1. Open any H1 chart
2. Add my P4L PeriodCon 509 indior. The defaults are fine, and it'll generate an H2 chart.
3. FileOpen Offline pick the H2 chart that is being generated.
4. Iconify the source H1 chart. DO NOT CLOSE IT.
5. Observe that with new ticks, the offline chart remains becoming live tick updates.
6. Observe which is the current profile name (e.g. Default). Now alter the profile to some other profile. (e.g. Euro)
7. ) Change back to the previous profile name. (e.g. Default).
8. Observe that the offline chart isn't becoming live updates!
9. Un-iconify the source H1 chart.
10. Observe that the instant popup message out of my indior now tells you the indior is active and working, and is presently generating the H2 offline chart.
11. Observe that the H2 chart is once more getting live tick updates.
12. Repeat steps 5-7, without first iconifying the source H1 chart.
13. Observe that if you came back to the profile, you find the popup message out of my indior, also that the H2 offline chart is becoming live updates.
The only difference is whether the source H1 chart was iconified or not when you switched back to the original profile.

This behavior is totally unacceptable! Suppose it was an EA managing trades?? The behavior may be the exact same for EA's since it's for Indiors. I don't know, but even if this bug only affects Indiors, it's still unacceptable. Most indies provide alarms, and they'll be totally disabled and unworthy until this behavior is fixed.

NOTE: Although I am providing a 509. Ex4 document to reproduce this bug, it isn't important that this is a 509 file that is compiled. I can reproduce the exact same behavior with 610 compiled indiors also.
(the P4L PeriodCon 509. Ex4 could be found on the internet at FF).

luluatitia27
00:21,
Oh CRAP! This MT4 (construct 610) bug is much worse than I thought. Simply restarting MT4 has the same effect as changing profiles! Therefore, you cannot have ANY iconified charts after an MT4 restart *should * these chart do any updates, EA's, or alarms. They will be inactive until un-iconified!

ATTENTION P4L PeriodCon USERS WITH BUILDgt;=574 and lt;=610 ?? : Until this bug is fixed, you must un-iconify your source chart following an MT4 restart, or after changing profiles. Alternative: Never iconify your MT4 source chart. Leave it full size. Same is true for almost any charts that generate alerts!

(In case this turns out to be an inaccurate claim on my part, I apologize, however, this is exactly what the evidence indicates to me).

taniadg7
01:41,
Hey men,
I've been utilizing Periodcon for a long time and just recently installed the newest update but now I am discovering that whenever I see a new chart, I get an annoying alarm. It occurs every time I change my chart. Is there any way I see my charts by dragging the pair in the left side by one. I've attached a screenshot of this alarm I get. If anybody knows how to turn off this, please let me know!!
https://forexintuitive.com/attachments/1529185682939129780.png

luluatitia27
03:02,
Hey guys, I have been utilizing Periodcon for quite a while and just recently installed the newest update but now I am finding that if I view a new chart, I get an annoying alert. It occurs every time I change my chart. Is there some way to stop this?? I view my charts by dragging the pair from the left side by one. I have attached a screenshot of the alert that I get. If anybody knows how to turn this off, please let me know!! image Almost certainly you're utilizing the indior wrongly, so much because the popup alert is concerned, I know of no new change.

Your main chart is really a Daily chart. When you drag a new pair on it, it will reinitialize the chart. All indiors become restarted. The popup is a normal awake for a chart with P4L PeriodCon attached to it.

The matter is, the indior doesn't do anything to the source chart itself, so, what is the purpose? Unless of course, yours is a more straightforward process where you look at two different charts. Step 1: Drag the pair on the Daily chart which has PeriodCon. Step 2, drag the exact same pair on the offline D2 chart. (I don't even know that this may work similar to this for offline charts; I have only ever used the File-Open Offline menu command for this purpose. EDIT: No, you can not drag-and-drop a pair name on a offline chart. You have to use the menu command.) .


If yours are the same steps as before, I'd wonder why you're doing it this way.

However, to address the point which you see a popup each time, then you probably had changed one of the default variables. LimitedAlertsEnabled is true by default. You probably had put it to false (which you can certainly do as you add PeriodCon into some new chart). If false, there'll be no popup alert like people you mentioned except for fatal errors such as DLL's aren't enabled.

orts2455
04:23,
Oh CRAP! This MT4 (build 610) bug is much worse than I thought. Simply restarting MT4 has the exact same effect as switching profiles! Therefore, you can't have ANY iconified charts after an MT4 restart *should * these chart do any upgrades, EA's, or alerts. They will be inactive until un-iconified! ATTENTION P4L PeriodCon USERS WITH BUILDgt;=574 and lt;=610 ?? : Until this bug is fixed, you must un-iconify your source chart after an MT4 restart, or after changing profiles. Alternative: Never iconify your own MT4 source chart. Leave it full size. SAME goes for any...

https://forexintuitive.com/attachments/1529185673.png)) GREAT!! Https://forexintuitive.com/attachments/1529185673.png JOB KENT

I understand in metaquotes are extremely quickly doing bug correction, I hope, seeing how many different build they generated in the last months!!!! Https://forexintuitive.com/attachments/1529185673.png

I could say we will help not a couple of the mt4 community!!! Https://forexintuitive.com/attachments/1529185673.png

and thanks to the trick to maintain un iconified chart, I'll try!
And see u here to find the new build and see if it works!

cheers,

Mat

Unblocked
05:44,
An upgrade has been inserted to article #1. 2014-02-14: Uploaded P4L PeriodCon 509. Ex4 (still v1.11) Changes: None. It was only compiled using build 509, and it appears to be compatible with all the new assembles gt;=600. Fyi, the posted v1.11 .mq4 file isn't compatible with the new builds. It will require code changes. Should you need to make custom edits, then you can use your own (old) copy of 509, or even locate the 509 MetaEditor posted everywhere which you can use to edit and re-compile to make your... Hi pips4life, because mt4 updating I have not been able to upgrade using this ex4 file, win7 won't allow me! I've gone through program files (x86) and localappdata, got admin control and everything. . .my normal method is to open using metaeditor and compile the script so it conserves via mt4, but since this can be an ex4 I cannot do this!

Please help me in letting me know how I can utilise the ex4... no time versatility is really choking!

its_molly
07:05,
Hey Pips4Life,

brilliant work here, I've reinstalled an old MT4 and joyful to run with this.

I asked about creating 2 charts from a 4hr chart. I would like to achieve an 8hr and a 12hr from a 4 hr chart.

Can I want to get a unique ID for each instance of this indior, I tried loading it twice using another name but it wasn't happy (forever waiting for upgrade and my other chart stopped as well
What I would like to avoid would be 2 x 4hr charts simultaneously running to generate two more charts.

Can this even possible?

thank you
PG

luluatitia27
08:25,
quote Hello, because mt4 updating I have not managed to upgrade using this ex4 document, win7 will not let me! I have gone through program files (x86) and localappdata, got admin control and everything. . .my normal way is to open with metaeditor and compile the script so that it saves via mt4, but since this is an ex4 I cannot do so! Please assist me in letting me know how I could use the ex4... no timeframe versatility is really choking! There is plenty of confusion following the 600 upgrade. I really don't have all of the answers, and especially so because I am one of those who's sticking with 509. I am getting dragged to it kicking and screaming.

I am not your best resource for this. All I understand is that in 600 , use menu control FileOpen Data Folder. Navigate to the MQL4/Indiors/ folder, and place the .ex4 file there. At that point, I simply restart MT4 to allow it to comprehend the new file. There's probably a simpler way, however as you state, as it's only an .ex4, you can not simply compile it to force an upgrade.

In case this does not help, sorry I have no cycles to aid further. Fantastic luck.

luluatitia27
09:46,
Hey Pips4Life, brilliant work here, I have reinstalled an old MT4 and joyful to run with this. I asked about creating 2 charts off of a 4hr chart. I would love to attain an 8hr and a 12hr from a 4 hr chart. Do I need to have a special ID for each instance of this indior, I tried loading it twice with another name but it wasn't happy (forever waiting for update and my other chart stopped as well What I want to avoid is 2 x 4hr charts concurrently running to generate 2 more charts. Is this possible? Thank you PG I attach this indior multiple times to one source chart all of the time. On each case I use either all defaults (PerMult=2), I only change the PeriodMultiplier or the timeshift values or InvertChart. All the offline charts get generated, and I can open as many offline charts as I desire, and all them get updated with live ticks.

I have no idea why this wouldn't be working in 509. Good luck.

orts2455
11:07,
quote There is plenty of confusion after the 600 upgrade. I don't have all of the replies, and especially so because I'm one of those who is sticking with 509. I am getting dragged to it kicking and screaming. I'm not your very best resource for this. All I understand is that in 600 , use menu command FileOpen Data Folder. Navigate to the MQL4/Indiors/ folder, and put the .ex4 file there. Now I just restart MT4 to allow it to recognize the new file. There's probably a simpler way, but as you state, as it is just an .ex4, you can't just compile...
but can it be possible to use a sort of universal mt4 for every broker???

I like employing 509....but how can I???
That the fxcm one is not any more available....do you have a 509 I may use with fxcm too?

mat

Unblocked
12:28,
quote There's plenty of confusion after the 600 upgrade. I really don't have all the replies, and particularly so because I'm one of those who's sticking with 509. I'm getting dragged into it kicking and screaming. I'm not your best source for this. All I understand is that in 600 , use menu command FileOpen Data Folder. Navigate into the MQL4/Indiors/ folder, and place the .ex4 file there. At that pointI just restart MT4 to allow it to comprehend the new file. There is probably a simpler way, but as you say, since it is just an .ex4, you can't just compile... You sorted it. Amazing guy, thank you!

dintelcobb
13:48,
@pips4live: I posted that on a couple of forums, but never got a response to it:

hello guys, does any of you know a indi/ea that can do:
make an offline chart that reveals only the main trading time of a index (like dax or sp), and not an 24 hour chart. Would be great, if it would have starting time and end time and timeframe(1min, 5min. . .60min) as an inputsignal.
why? Because drawing trendlines in an 24 hour-chart where 16 hours do not have real volume doesn´t make much sense imho...
perhaps one of you can change the code of an renko/rangebar ea or even indior to do that. I tried, but that is far beyond my communicating abilities.
Or is it not possible to do something like that?

Today I found your indior, and that I think thats what I was looking for. Only the inputs for starting time and end time would need to be included. Would you please do that for me, would be a great support for me. Doesn´t matter which version, since I've assemble 509 and 600 running.

xuas
15:09,
Thank you pips4life! You are a life saver.
I trade through Armada plus they switched from GMT 0 to GMT 2 and once I retested my egy on the new 4hr charts it did not work half as well. No I just need to give it a day or to till the moving averages adapt their places and I can start trading with all the GMT 0 again through your indior.

A couple of items that would actually help if someone can assist me with
1)The 1 click on trading display doesn't work when I'm on the new 4hr offline chart.
2)The disperse indiors do not function when applied to the chart
3) The remaining candle period is calculated on the opposite chart not the offline one.
4)The order outlines (Entry SL TP) don't appear on the chart.

Thanks again pips4life
Cheers

taniadg7
16:30,
Hey Pips4life,
I'm pretty certain you can not but I only wanted to see whether there's any way to aggregate bars from over the weekend. Say you wan na na Tuesday toss bars from Friday to the next. Is there any way to aggregate those 3 pubs? I know you can add two days for the weekend but then the rest of the information is effected.

orts2455
17:51,
Hi pips4 life, I have notice....but prehaps I have something place bad, that the weekend gap candle is aggretated with the ancient monday candle....
is this normal?

What can I do to remove that candle?


mat

Unblocked
19:11,
Another one

http://forum.mql4.com/61886

Derlis
20:32,
Hello pips4 lifetime,

Is it feasible to include the SYMBOL name (such as EURUSD, USDJPY etc) in the CSV file that is generated. If I want to use this information to be imported to other trading applications, it's essential to have a symbol name which saves time. Could you please suggest what code changes could be done to make this happen?

Thanks
Santosh

Xandre
21:53,
Does anybody know how to get this to work in mt4i egy tester?? When I try the interval converted TF does not update...

Xandre
23:14,
Does anyone know how to get this to operate in mt4i egy tester?? When I attempt the period converted TF doesn't update...
If I can rephrase this question; how do I use the period converter for multi time period back testing? I am able to acquire multiple time period backtesting to work for unconventional timeframes i.e. 5 minute master tf using 35 min kid, but should I try to have a 5 minute master with 30 minutes child, it doesn't produce an offline chart because the 30 minute chart already exists. That is not any good to me personally because the online charts wont move in sync with the master tf...

Xandre
00:35,
Fixed

Villazon
01:55,
Hi

I am wanting to make an historical chart of GBPUSD showing candles between 1/01/2007 - 5/4/2010. Can the indiors posted on this thread be able to do this, or rather please could anybody tell me how to make this chart?

Many thanks
Mike

Grensleaves
03:16,
Pips4life,

Would you post the mq4 edition of https://forexintuitive.com/attachments/1529185638431921953.ex4?

Thanks.

luluatitia27
04:37,
, Would you post the mq4 edition of https://forexintuitive.com/attachments/15291856401227925859.ex4? Thanks. Read post #1

Narte12
05:58,
quote If I can rephrase this question; how do I use the interval converter for multipurpose frame back testing? I am able to get multiple time frame backtesting to work for unconventional timeframes i.e. 5 minute master tf with 35 min kid, but should I try to get a 5 minute master with 30 min child, it will not create an offline chart because the 30 minute chart already exists. That is not any good to me because the online charts wont move in sync with the master tf... Hi NaughtyPip,

Was this hard to begin? Here is what I've attempted...
Get MT4i ready with to operate with model set to Every tick
Press Start
Un-pause
load my chart template
add the P4L PeriodCon 509 indior
however that I really don't get an alert like P4L PeriodCon 509,EURAUD,H1 https://forexintuitive.com/attachments/1529185627.pngo FileOpen_Offline of chart: EURAUD,H2 (offline) (Time shifted 0min) and KEEP this Supply H1 OPEN!

Any info will be greatly appreciated. I will eventually want the h4 to be running but strove the h2 first.
Thanks
Robin

Harri9ne
07:18,
Hello! Thank you author! I've a question. If I create a daily chart with timeshift I need I get a chart with little pubs on Sunday. On really data feed I get from my broker there are not such pubs. Can I turn it off? And price have 5 digits but on altered chart price is rounded to 4 digits. Could it be OK? Enjoy your help.

luluatitia27
08:39,
Hello! Thank you writer! I have a question. If I create a daily chart with timeshift I want I get a chart with small pubs on Sunday. On very data feed I get from my broker there are not such pubs. Can it turn off? And price have 5 digits but on altered chart price is rounded to 4 digits. Could it be OK? Appreciate your help. I think the topic of 5bars/wk vs. 6bars/wk is covered in article #1. If you have 5bars/week now, you're probably on a GMT 2 broker. If you've got 120 hrs/week, any timeshift whatsoever will produce a Sunday (or little Friday or Saturday) bar. That's how it works. While it would be possible to create modifiions to the code to unite the little -#hours-Sunday bar into Monday (making only Monday a bar with gt;24hrs of data), that is not exactly what the code does now, and I have zero plans to change it to do so. (I doubt it is an easy fix).

Regards to 4 digits, it is suppose to keep the first 5-digits. You gave no details -- e.g. pair title, interval, cancel, broker title, etc. -- I can not even speculate.

Harri9ne
10:00,
quote I think that the topic of 5bars/wk vs. 6bars/wk is covered in article #1. In case you have 5bars/week today, you are likely on a GMT 2 broker. In case you've got 120 hrs/week, any timeshift at all will produce a Sunday (or little Friday or Saturday) pub. That is how it works. While it will be possible to create modifiions to the code to combine the little -#hours-Sunday pub into Monday (making only Monday a pub with gt;24hrs of data), that is not exactly what the code does today, and I have zero plans to alter it to do so. (I doubt it is an easy fix). Regards... Yes, I alredy read 1 post and discovered there information about 5 day week, however, thank you for your response. I did different timeshift from -4 till 4 and just in 1 case got 5 day week, when change 1. For me comfort -4. I try to understand how this timeshift reliable for my commerce. Will be this good or poor use such altered chart? About digits: scrieenshots was left by me. But curved price isn't crucial for me. More important is commerce on chart with timeshift, is it correctly? However, your job is quite cool, much value.
Origin daily
https://forexintuitive.com/attachments/15291856431811618013.png
altered daily
https://forexintuitive.com/attachments/15291856461156673939.png

Unblocked
11:21,
Might it be possible to find https://forexintuitive.com/cryptocurrencies-and-commodities/124-icustom-indior-based-ea-mql4.html MQL simply so users can change parameters in the source code to automatically load up by default. As you can imagine this useful little thing can operate dozens and dozens of custom charts on a fantastic system, so that it could require a lot of boring clicking out the procedure!

luluatitia27
12:41,
Is it feasible to post https://forexintuitive.com/cryptocurrencies-and-commodities/82-help-code-simple-indior.html MQL simply so users can change parameters in the source code to load up by default. As you can imagine this useful little thing may operate dozens and dozens of custom charts onto a fantastic system, so that it might take a lot of tedious clicking out the procedure! Just a few posts earlier, I just had this exchange:

quotemaindoor asks: Can you post the mq4 edition of https://forexintuitive.com/attachments/15291856531884467468.ex4? /quote
Read post #1 From post #1:


2014-02-14: Uploaded P4L PeriodCon 509. Ex4 (still v1.11)

Changes: None. It was simply compiled using construct 509, and it seems to be compatible with the new builds gt;=600.
Fyi, the posted v1.11 .mq4 file isn't compatible with the new builds. It will require code changes. Should you need to create custom edits, then you may use your own (old) backup of 509, or locate the 509 MetaEditor posted...
If you download P4L PeriodCon.mq4 from post#1, clearly it is v1.11 and that's the latest, most unchanged edition, and compiles in 509 only.

Unblocked
14:02,
Thanks. As you can imagine, it would have been clear had itn't been for the'Fyi, the submitted v1.11 .mq4 file isn't compatible with the new builds. It will require code modifications'

Unblocked
15:23,
In addition to: https://forexintuitive.com/attachments/15291856561579737144.mq4 60 KB | 4,247 downloads | Uploaded Oct 18, 2012 11:08pm

When stating uploaded in 2012 does not bode well for anyone hunting for the 2014 upgrade. No matter anyway, it was a minor request since the recorder is still wonderful. Thanks.

Flanxo
16:44,
hello men

I am having a little bit of trouble with D2 chart. My broker is regular Ny daily close broker GMT instaforex GMT 2

within my mt4, the D1 chart prints exactly 5 daily candles throughout the week, without a weekend candles.

I am not applying any timeshift to the below it's set at default

From the d2 chart below, it's printing the weekend , every other week. Is there something I could do in the settings to ensure it is similar to the D1 chart i.e. no weekend ?
https://forexintuitive.com/attachments/15291856582102059489.png

puesma
18:05,
compatible with All the New MT4
Mladen modified it some time Back (there is no source code, ex only)
https://forexintuitive.com/attachments/15291856601284095722.02 nmc

luluatitia27
19:25,
hi guys I am having a little bit of trouble with D2 chart. My broker is Ny daily near broker GMT instaforex GMT 2 in my mt4, the D1 chart prints 5 daily candles throughout the week, without a weekend candles. I am not employing any timeshift into the under it is set at default - 0 In the d2 chart below, it is printing the weekend candle, another week. Is there something I can do in the settings to make it similar to the D1 chart i.e. no weekend candle? image it is a bug that has existed since I inherited the code out of others long ago. A part is in the code that determines whether to start a new bar or not. Search for //else if (MathMod(NewPeriod,PERIOD_MN1) == 0) // Does not work! . That's a commented-out line for charts. Yours is one which would require a regular written to choose when to start a new D2 bar, then the code could set changeable startNewBar = true.

I have zero interest in D2 pubs. As you see the progr does produce them, but you still have no control over the start time of each D2 bar. Everything you want is simply to discover a consistent start-of-the-week for your bar. Then it may work. BUT... would you want 3 pubs every week, or 5 pubs every 2 weeks? And what determines which weeks could be united, along with weeks you want combined??? that is Fri-Mon

You see there are no standards, and yet the questions need to be dealt with.

Maybe someone else will want to bring it on, but the code is only 509 compatible also. I'm busy with other endeavors, sorry.

Flanxo
20:46,
Thank you for that. I appreciate your answer. I think its still fine as per the chart, using an additional bar every week. Agreed due seems hard to code. So wont worry too much further. thanks.

Grensleaves
22:07,
Hi,
This indior seems well written and quite versatile. I can not work out how to do a particular job though:
Lets say there are 11 bars in the current 15 min chart with the 11th pub being the most recent pub.
I wish to see the way the chart appears if we combine 3 15-minute bars from the 9th bar backward. Ie 45 mins however
beginning from the 9th pub instead of the current pub. Hence that the chart will probably have (1,2,3) (4,5,6) (7,8,9) (10,11). The current
pub within this offline chart will progress at (10,11). Is it feasible? It is, but I could not find how.

Grensleaves
23:28,
Hi pips4life,

Is my petition on Post 263, potential for this Indior or is that a new functionality
that I'm asking for? Whether there are some questions with my petition please allow me to know.

Also maybe I confused the question with the incorrect numbering, here is the corrected question:
Lets say there are 11 bars on the current 15 minute chart together with the 0th bar being the latest bar.
I want to see the way the chart looks if we unite 3 15-minute bars in the 2nd bar backwards. Ie 45 mins but
starting from the 2nd bar instead of the current bar. So that the chart will possess (. . ,11) (10,9,8) (7,6,5) (4,3,2) (1,0). The current
bar in this offline chart will progress in (1,0). Is it feasible?

Due

Grensleaves
00:48,
Pips4life,

why have you used i_time to be LastBarTime/ps then i_time *= ps.

Would not it be sufficient if you had done i_time = Timing [I] when startNewBar is true?

luluatitia27
02:09,
Hi, This indior appears well written and quite versatile. I can not work out how to perform a job Lets say there are 11 pubs on the current 15 minute chart with the 11th bar being the most recent bar. I wish to see how a chart appears if we unite 3 bars. Ie 45 mins but beginning from the bar instead of the current bar. So the chart will probably have (1,2,3) (4,5,6) (7,8,9) (10,11). The current bar in this offline chart will advance in (10,11). Is this possible? Maybe it is, but I could not find how....
Maindoor,

Sigh. Post #1 is extended, I know, but the answer is there. You want an chart, and you want to control that group of bars that are M15 that are united to make each M45 pub , right?

Isn't what you ask for accomplished by simply placing PeriodMultiplier=3 and TimeShiftAdd_in_Bars = 0 (default), 1, or two?


With respect to your question concerning the code, in which it lays i_time into a number/ps, then apparently undoes the split by placing it into i_time*ps. I am not planning to wrap my head around the code (that largely works) only to find out why again it is necessary or not, or if it occurs to be a futile divide-then-multiply in that specific case. Integer mathematics has a few strange impliions, and is different from that of mathematics with type factors. It is maybe necessary.

23/4 = 5
5*4 = 20

It began as 23, yet ended up as 20.

See?

Grensleaves
03:30,
quote Maindoor, Sigh. Post #1 is extended, I know, but the response is there. You want to have an chart, and you also want to control which category of bars that are M15 that are combined to create every pub that is M45 ? Isn't what you ask for accomplished by simply placing PeriodMultiplier=3 and also TimeShiftAdd_in_Bars = 0 (default), 1, or 2? By placing it into i_time * ps in which it sets i_time into some number/ps, then undoes the split. I am not going to wrap... pips4life,

Regarding the 2nd stage, I totally understand integer arithmetic and am aware of the consequences of that.
I just raised this since it is the root cause of an unintended side-effect.

Regarding the first point, I did watch Periodmultiplier and TimeShiftAdd_in_Bars even before beginning my question. My
issue is: it doesn't help in a usecase that I have and that seems possible for this indior.
Sorry I wasn't able to react earlier for some private reasons, but I assure you that I
will react immediately from now. I am looking at the indior now.
For example: Take GBPCHF,M15 as of now and attempt to generate a 75Min chart beginning at Time: 2014.9.26 13:00
you're able to reduce the start_pos to state 50 if making it easier. You'll discover that regardless of what factors are adjusted
it will always return to 2014.9.26 12:45. Due to the integer arithmetic logic.

I am only writing this all because, the surroundings Ive been in, the programmer always stands by his conclusions
and logic and defends his decisions strongly.
If you find it useless to wrap around the code with this requirement, that is fine. I'll get back to you
I find a remedy for this.

Thanks for responding.

alvaromorenomadariaga
04:51,
@pips4life:
what would you consider my formerly idea with altering the existing Linear-MT4-Charts with the period-Converter-Indi to have the great capability with Logarithmic -Charts?
I think many people using some kind of Trendlines.
Thanks for any advice.
Greeds Zack

alvaromorenomadariaga
06:11,
@pips4life:
I'd love to ask if you could code the exceptional feature Logarithmic -Chart with your Offline-Indior.
I'd love to cover this addition.
Please give me a brief info.
Thanks Zack

auzagh
07:32,
I can't understand one thing about this stage converter indior. Does this leave unpaired bars?
Forexample in the chart I attach, there's Friday pub 1 to the Daily chart and it is a single bar
on D2 chart. So is the Monday. Then the exact same thing with bars 8 and 7, 13 and 14, 19 and 20.
Is this a bug or is it done deliberately?
As I understand it, period converter ought to mix, say, Monday pub with Tuesday pub,
then Wednesday pub with Thursday pub, then Friday pub with the following Monday pub and so forth.
Why Friday pub is never combined with Monday pub in this indior? Can anybody explain this please?
https://forexintuitive.com/attachments/15291675781626852954.png

foxames
08:53,
Hello!

Can it be possible to acquire more bars. After I have made a customized time period?

thanks

nayat
10:14,
I've downloaded the document before and it workedout. I recently wiped my computer so I had to re download my broker. I've 700 is built by Oanda. I stick it at the file that is indiors and take the document. My files go MQL indiors. Like I've been reading, Maybe not MQL Experts indior. Nothing happens when I click it, although I am able to find the document name to pop up in the indiors. I've tried downloading it directly and it won't let me bring up my time frames that were distinct. I've tried switching the chart to 30 minutes, 1 min, 5 minutes, and the hour. After I double click the indior, it will not bring up the tab that gives you common tabs and also the inputs and what ever else comes with it. I've tried restarting. Not to sure what to do at this point. Any suggestions?

Rubioski
11:35,
Hi pips4life,

My local Market timing is 9.15 AM to 3.30 PM IST (22.45 into 4.55 according to my brokers GCI MT4 server time). I'm using daily interval. I need a single candle my trading session for each. Which have to close by today EOD today if a candle begins and it ought to start a new candle tomorrow if the new market session begins. As of now this isn't happening. Is there some way we could manipulate this?

Thanks
https://forexintuitive.com/attachments/15291675802036348489.png

konguii
12:55,
@pips4life 1st off thanks for all the great code. I do not wish to waste your own time so I will be short.... Now I am a little perplexed. I understand most of the applications of every one your indiors and a number of the code. But this is really where I am mixed up.

Issue one: The interface between Metatrader and the history data and the data stems in the Desk. They are two different times. ( I attached the beautiful metatrader warning relating to this)

Question 1: My question is that is this dealt with? Meaning the two different time stamps. I can't seem to wrap my head around this.

Issue Two: Everything occurs I presume is the Metatrader down load data doesn't have daylight savings time in it and is stamped Moscow Time

Question Two: Does it change for day light savings times?

Issue Three: How can day light savings get the job done. I think It works like that....It is obviously performed on a week end and the start time of this desk is now different. So it is a non Event for the Desk.

Question Three: Is that right?

Last Issue: When I was to down load all the data out of forum on news or use on of the news data bases in these forums.

Question Four: How on Earth would U correlate. Your Desk, Metatrader News and Day light savings ?

Do not feel like you have two response I know it is off topic. But I believe you are among the Time Men that are best to ask To Keep it on topic would Period_Converter Deal with the various time stamps and all the Day light savings?
https://forexintuitive.com/attachments/1529167564.png

Alfredo88
14:16,
My FXCM Metatrader using Build 765 and this converter will not working. Any solution please?

brunoshnaken
15:37,
Hi There,

I hope I have not missed the response along the way but I have tried creating a 3 Month TF Chart and it's worked for the historical bars but then it is painting a new candle for each and every live tick where each new'miniature candle' is obsolete the same...

I have attached the image if it helps...

Thanks,

Paul
https://forexintuitive.com/attachments/15291675841838119465.png

airwene-0
16:58,
Does anybody know if you are ready to backtest custom time periods?

I have found you back do this with RENKo Bars, but I would just like to utilize candlesticks back testing on a three minute chart.

Thank you, if anyone can help

dintelcobb
18:18,
an offlinechart is an offlinechart. You ought to be able to use exactly the identical process with renko, rangebar or custom time period. Don´t get me wrong: I never did it, because I don´t believe in backtesting anymore. Years ago I ran extensive backtests on tradestation utilizing tickdata and the help of a professional developer, but it was all just a waste of time. Trading live on a demoaccount is a way to find something which works. Just consider it: banks have hundrets of professional developers, do you need to compete with them? Do you think you can write much better code than they can?

knt17
19:39,
Hi There, I hope I haven't missed the answer along the way but I have tried creating a 3 Month TF Chart and it's worked for the historic bars but it is painting a new candle for every live tick where every new'mini candle' is obsolete exactly the same... I have attached the image in case it helps... Thanks, Paul picture Same here, MT4 Construct 830.

belu888
21:00,
I wonder if anybody attempted to make tick charts like this? That would be awesome to have mt4

MiguelTB
22:21,
I wonder if anyone attempted to create tick charts similar to this? That would be awesome to have in mt4 Not certain what you mean by like this, but there are a couple of of tick charts on offline charts available in this forum, hunt for constant quantity, some complimentary, some trials.

knt17
23:41,
Hi There, I hope I haven't missed the response across the way but I have tried creating a 3 Month TF Chart and it has worked for the historical bars but then it is painting a new candle for every live tick where each new'mini candle' is obsolete exactly the same... I've attached the image if it helps... Thanks, Paul picture Hey, I found a workaround. Use chart and use 12 as multiplier instead of monthly chart with 3. It works.

PuesPareceQue
01:02,
Hi, Thanks for the indior. I am trying to use this on multiple profiles which I have to change between many time repeatedly. When I change profiles I an Alert popup everytime. Is there some way to disable this as it gets in the way and could be annoying. Cheers.

Mcalesse
02:23,
Hello, I have downloaded this P4L PeriodCon.mq4 indior. . Nonetheless, it isn't working. .showing 1 mistake 2 warnings
(my personal computer is windows7 32 bit)
anyone getting same??
https://forexintuitive.com/attachments/15291675471628698415.png

lujuaba
03:44,
I wonder if anyone attempted to create tick charts similar to this? That will be amazing to have in mt4 There are two EAs that I have developed for creating tick charts:

https://forexintuitive.com/brokers/63-tradestation.html

https://forexintuitive.com/discussion-trading/49-jpy-interest-rate-statement.html

P?rez
05:05,
Hi, just wanted to say a BIG thanks for sharing all and these indiors of your hard work!

Like rera7,I also downloaded the P4L PeriodCon.mq4 indior and received the specific same error message
Does anybody have a way of solving this error and two warnings?

Thanks so much!

Andrei187
06:25,
Hi, just wanted to say a huge thanks for sharing those indiors along with all of your hard work! Just like rera7,I received the specific same error message Does anybody have a method of solving 2 warnings and this mistake and downloaded the P4L PeriodCon.mq4 indior? Thanks so much! Hi. Have the same error message along with warnings once I attempt to compile the P4L PeriodCon.mq4 indior. The'509' version is functioning, but it severely slows down my MT4 (Build 950). Hope someone is able (and willing) to solve these problems. Thank you Beforehand!

Cheers

airwene-0
07:46,
quote Hi. Have exactly the identical error message and warnings when I attempt to compile the P4L PeriodCon.mq4 indior. The'509' version is working, but it severely slows down my MT4 (Build 950). Hope someone is able (and willing) to fix these problems. Thanks in advance! Cheers http://ovo.cz/products/offline-charts-for-mt4/flexi-bars/

In?s
09:07,
Hi, @pips4life
Thank you very much for sharing your work. I've got an important question:
I would like to run my indior using h4 time frame on m30 graph.

Your template file consists of H1 to H4 or greater, but I want to run M30 into H4. Would you please create a new template file for M30 into H4 or is it possible to do this (M0 into H4) on your current system?

PS: my indior is working very nicely in m30 tf. I would apprreciate your aid.
Thank you Ahead of Time.
Best,

bitter1212
10:28,
Hello,
I exchange daily and weekly time frames, using a broker with GMT 0.

This produces a little Sunday pub (two hours in duration) on the daily that I do not want.

I would like the 1st daily candle of this week to begin on Sunday 10pm and end on Monday at 10pm, ie that a 2hr shift in my brokers GMT 0.
This would give me 5 daily candles for the week instead of the 6 that I currently get.

Is this accomplished?

Ignore the above, I've now worked it out with a offline chart, as per 1st post instructions.
Thanks

shap14
11:48,
Hello what would I have to enter if I wanted my chart to get hours 3,7,11 rather than hours 5,9,1.

Vane_ssa
13:09,
Last update: Feb 17, 2014, uploaded sample templates. (Build 600 compatible). Last P4L PeriodCon.mq4 upgrade. Ex4 (nonetheless v1.11) Last P4L getPeriodSymbolTimeshiftsecLib.mq4 upgrade: Apr 01, 2011, posted first release v1_0 There have been several variations of period converter progr which were first created in late 2005 and then upgraded into early 2006, however since thenthere have never been any updates (to my understanding ) or answers into some of the limitations -- until today. A new version (gt;= v1.6) is provided...
Your work is greatly valued. I am looking at this indior and it look the. mq4. Contain an error. Something incorrect after updates that are mt4?

https://forexintuitive.com/attachments/1529167551200063761.png

mesig88
14:30,
Hi my construct is 1010. I using period conver 509 but it slowing my MT4. Could someone help to repair it?

mikairene
15:51,
Hi All,

I Am Slightly confused of the settings.

This is your normal daily information:

2016.11.08 00:00 1.10419 1.10659 1.10079 1.10136 28954
2016.11.09 00:00 1.10176 1.12986 1.09081 1.09083 138434
2016.11.10 00:00 1.09082 1.09526 1.08639 1.08760 58242

and Should It is 20:01 now then I need to shift the time from now back to exactly 24 hours ago.

Enjoy this:

2016.11.08 20:01 ------------------------------------------------------
2016.11.09 20:01 ------------------------------------------------------
2016.11.10 20:01 1.09082 1.09526 1.08639 1.08760 58242

what's the right configuration?
Thank you so much.