• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:47am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:47am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Multi timeframe multi chart 13 replies

Any Good Converter from MQ4 to MQ5? 0 replies

MQ4 to cAlgo Converter 5 replies

Looking for help with this periodcon indicator 3 replies

Backtest custom period? (period converter script) 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 73
Attachments: Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4
Exit Attachments
Tags: Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4
Cancel

Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4

  • Last Post
  •  
  • 1 45Page 678 17
  • 1 5Page 67 17
  •  
  • Post #101
  • Quote
  • Apr 25, 2011 12:16pm Apr 25, 2011 12:16pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 908 Posts | Online Now
Quoting zzmadd
Disliked
I’m not sure what I’m ding wrong.
I can display charts form the offline folder but they don’t update live?
What did I do wrong?
They are mainly shifted charts.

Thanx a lot.

Luca
Ignored
You haven't given any details, but as it works for me and countless others, just review all the steps in post #1 again. You're probably closing your source chart. That's the only reason that the offline charts might not get updated live.
 
 
  • Post #102
  • Quote
  • Apr 25, 2011 10:50pm Apr 25, 2011 10:50pm
  •  kkBd
  • | Joined Apr 2011 | Status: Member | 3 Posts
Quoting pips4life
Disliked
Regarding #1: The "P4L PeriodCon" program has only to do with generating offline charts with either non-standard timeframes and/or timeshifted charts. I'm certain there are MA cross alert programs out there which either already work on offline charts or could be made to work with minor modifications. (I don't use MA cross alerts so I can't help with that). See my earlier post just 2 above yours for some tips on examining the code to look for places where your indicator might use "Symbol()" or "Period()", or "PERIOD_*". Those are potentially...
Ignored
Ok thx for the reply. I just found MYFX which allows up to 3 partial closes My intention is not to manually execute, i wanted to preset multiple tp levels when i entered the trade. Its cool though...still an awesom indicator.
 
 
  • Post #103
  • Quote
  • May 1, 2011 11:53pm May 1, 2011 11:53pm
  •  mommypips
  • | Joined Feb 2011 | Status: Member | 11 Posts
Hi I got the charts loaded 12 hour ones. very cool but now I would like help getting it to run in real time.. any tips or help would be wonderful... so greatful for this indicator..

best,
Dawna
 
 
  • Post #104
  • Quote
  • May 2, 2011 1:51pm May 2, 2011 1:51pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 908 Posts | Online Now
Quoting mommypips
Disliked
Hi I got the charts loaded 12 hour ones. very cool but now I would like help getting it to run in real time.. any tips or help would be wonderful... so greatful for this indicator..

best,
Dawna
Ignored
I cannot reproduce any such problem. My offline charts update live with every tick. I can open several different custom timeframes and timeshifts. I can open more than one of each offline chart.

If you are still experiencing problems, then you need to describe your steps and setup in complete and full detail.

Start by opening a "source" chart, like an H1, to which you will add several instances of the "P4L PeriodCon" indicator. Add the indicator with all the desired custom settings.

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

When you open the offline charts, how many of each one are you opening?

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

When you stop and restart your MT4, do you see an initial popup window that gives you message(s) similar to this one:
Looking for one or more charts named: EURUSD+7H,Daily (offline) (Time shifted by 420min)

Take a snapshot of the popup alert window and capture all the various messages it creates. (If you have none, then you closed your source chart. You aren't generating any offline charts live, and this would be exactly the reason why your offline charts aren't getting updated).


If you want help, you need to provide more information.
 
 
  • Post #105
  • Quote
  • Jul 4, 2011 6:17am Jul 4, 2011 6:17am
  •  jesuscheung
  • | Joined Jun 2009 | Status: Member | 2 Posts
I created a H2 chart, however, this,

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

doesn't work.

Is there any way to make this possible?
 
 
  • Post #106
  • Quote
  • Jul 5, 2011 1:38am Jul 5, 2011 1:38am
  •  manalive
  • | Joined Nov 2009 | Status: Member | 6 Posts
Thanks a bunch for all the work you put into these indicators, and offer them for free.
 
 
  • Post #107
  • Quote
  • Jul 12, 2011 10:29pm Jul 12, 2011 10:29pm
  •  sergun
  • | Joined Jul 2011 | Status: Member | 8 Posts
Pips4life, you are my hero! I been looking around everywhere for something like your P4L PeriodCon.mq4 with its "time-shift" function.
Its really generous of you to give out fuits of your hard work here for free! thanks a lot for the scripts!
Serg
 
 
  • Post #108
  • Quote
  • Aug 22, 2011 6:27am Aug 22, 2011 6:27am
  •  garth11
  • | Joined Jan 2011 | Status: Member | 4 Posts
many thanks pips4life. ive used that to get local time (GMT + 10) on SPI200 FUT (Aussie stock index) on Axitrader who have it as 1 point per tick CFD on MT4 (so do FXCM in aussie, they also have mt4). the local index is $25 per point, out of my price range to trade full contracts ATM, so now i have a cheap and usable solution, with free charts

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

this is a very important thing to have right. thanks for sharing
 
 
  • Post #109
  • Quote
  • Aug 29, 2011 11:32am Aug 29, 2011 11:32am
  •  deltatrade
  • Joined Mar 2010 | Status: natural medicine | 643 Posts
hy guys. i've tried the ultimate version and it works but you cannot trade from the new chart. why?
 
 
  • Post #110
  • Quote
  • Edited 6:29pm Aug 29, 2011 5:46pm | Edited 6:29pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 908 Posts | Online Now
Quoting jesuscheung
Disliked
I created a H2 chart, however, this,

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

doesn't work.

Is there any way to make this possible?
Ignored
It works fine for me. You didn't say, but did you use a timeshift? If so, then "Symbol()" would return the currency name PLUS a suffix! For example: Symbol() -> EURUSD+1H

You say you're generating an H2 chart, and your iClose uses "PERIOD_H1*2". It works for my simple tests, but perhaps there is far more going on than your brief post would imply. Your title referred to "iCustom" which I assume is a typo and you meant "iClose" as your text specified. I can't suggest anything else. Good luck.

Quoting manalive
Disliked
Thanks a bunch for all the work you put into these indicators, and offer them for free.
Ignored
Quoting sergun
Disliked
Pips4life, you are my hero! I been looking around everywhere for something like your P4L PeriodCon.mq4 with its "time-shift" function.
Its really generous of you to give out fuits of your hard work here for free! thanks a lot for the scripts!
Serg
Ignored
Quoting garth11
Disliked
many thanks pips4life. ive used that to get local time (GMT + 10) on SPI200 FUT (Aussie stock index) on Axitrader who have it as 1 point per tick CFD on MT4 (so do FXCM in aussie, they also have mt4). the local index is $25 per point, out of my price range to trade full contracts ATM, so now i have a cheap and usable solution, with free charts
my candlestick signals were not as good with the wrong time zone.
this is a very important thing to have right. thanks for sharing
Ignored
You're all very welcome.


Quoting deltatrade
Disliked
hy guys. i've tried the ultimate version and it works but you cannot trade from the new chart. why?
Ignored
You can trade fine if you are generating a chart that only used PeriodMultiplier to generate a non-standard timeframe (e.g. H2, M10, M45, etc.).

However, if your chart is timeshifted, then it's true, the built-in MT4 trade functions don't work. Why? Because on a timeshifted chart, the "Symbol()" name has been made to something non-standard like "EURUSD+1H". MT4 has no clue what the "+1H" means. It can display a chart for a non-standard symbol name, but it can't trade it (directly).




Your only option would be to create & use your own custom trade functions. They could be scripts, for example, and you could even create hotkeys to call those scripts. The key is that those scripts should make use of the library functions in "P4L getPeriodSymbolTimeshiftsecLib.mq4" as found in post #1. Your script/EA/indicator can use these provided functions to extract the true value for the chart symbol, and then you can trade it accordingly. Nothing you do, however, will show the Buy/Sell/SL/TP lines for your trade on a *timeshifted* chart. Again, it is because MT4 knows nothing about what the timeshift suffix ("+1H" or whatever) that was added to the "Symbol()" name means.


 
 
  • Post #111
  • Quote
  • Sep 3, 2011 6:39pm Sep 3, 2011 6:39pm
  •  deltatrade
  • Joined Mar 2010 | Status: natural medicine | 643 Posts
Quoting pips4life
Disliked
It works fine for me. You didn't say, but did you use a timeshift? If so, then "Symbol()" would return the currency name PLUS a suffix! For example: Symbol() -> EURUSD+1H

You say you're generating an H2 chart, and your iClose uses "PERIOD_H1*2". It works for my simple tests, but perhaps there is far more going on than your brief post would imply. Your title referred to "iCustom" which I assume is a typo and you meant "iClose" as your text specified. I can't suggest anything else. Good luck.






You're all very welcome.




You...
Ignored
p4l what if this indicator doesn't make the suffix anymore ? i couldn't mind not reading +1h and be able to trade.
 
 
  • Post #112
  • Quote
  • Sep 4, 2011 6:53am Sep 4, 2011 6:53am
  •  Erebus
  • Joined Jul 2011 | Status: Member | 7,083 Posts
Works great for me, using 12 Hours charts on 15 pairs, no problems, got GO Markets so no time offset required, already have 5 daily candles
Attached Image (click to enlarge)
Click to Enlarge

Name: offline 12 hours.jpg
Size: 275 KB
Maximize wins, minimize loss, stay in the game as long as you can
Counter-Trend Entry Return This Week: -5.7%
 
 
  • Post #113
  • Quote
  • Sep 4, 2011 12:29pm Sep 4, 2011 12:29pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 908 Posts | Online Now
Quoting deltatrade
Disliked
p4l what if this indicator doesn't make the suffix anymore ? i couldn't mind not reading +1h and be able to trade.
Ignored
MT4 isn't very flexible in this regard and to make it work at all requires some kind of compromise. Timeshifts are a useful feature, but there has to be a change to either the symbol name or the period. MT4 requires a unique combination or it won't let you generate the chart. What if the Symbol name were left unchanged? There would be no way to know what is the timeshift. One *possible* alternative would be to modify the period value to hint at the timeshift AND the new period but this would be very confusing and harder to program.

For example, one could generate an H2 chart. The period is 120 (min). However, suppose it's a +1H offset, it *could* possibly change the period to be "121". It would be left to the user to know what "121" means, which in THIS case, means "120" and "+1H". But suppose one wanted to make an M90 chart with a +30M offset. By the same convention of changing the period value only, this would be 90+30 = 120. Similarly, if one generates an H1 chart with a +1H offset, that too would be 60+60 = 120. How does one distinguish between "120" vs "120" vs "120" ? How does one know that "121" means 120 plus 1 *HOUR* offset? What about a 1minute offset? Wouldn't that be "121" too?

Another major problem with making up a fake "period" value is that many programs/indicators actually use the "Period()" function, and would expect the function to return the true value for the period. If the function lies, then the calculations would be useless.

You want to trade from a timeshifted chart which is harder because of the change to the Symbol() name. However, you may also want to attach indicators and EA's which rely on an accurate "Period()" function value. With MT4, you can't have it both ways, because of it's limitations.

What I already said is that trade scripts could be easily written or modified that use the library function in post #1 that I already provided, and it could already make it trivial to place trades from a timeshifted chart. No it's not the built in MT4 trade commands but so what? Scripts like these are just as useful, perhaps even better. (I don't have such scripts (Yet) but maybe someone else can suggest some and might also be willing to modify them if you yourself are not a programmer. It wouldn't be all that difficult to do).
 
 
  • Post #114
  • Quote
  • Sep 4, 2011 12:39pm Sep 4, 2011 12:39pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 908 Posts | Online Now
Quoting Erebus
Disliked
Works great for me, using 12 Hours charts on 15 pairs, no problems, got GO Markets so no time offset required, already have 5 daily candles
Ignored
Nice layout of charts.

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

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

GO Markets is an Aussie broker, right? I wouldn't want to set up live accounts with them at this time, so do they offer the 5 offsets to demo accounts too?
 
 
  • Post #115
  • Quote
  • Edited 6:33pm Sep 4, 2011 5:15pm | Edited 6:33pm
  •  Erebus
  • Joined Jul 2011 | Status: Member | 7,083 Posts
Quoting pips4life
Disliked
Nice layout of charts.

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

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

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

They had a vote long ago from users and it was about 90% wanted 5 equal daily candles rather than having to deal with the small Sunday candle. And this also works very well with my use of 12 Hour candles.

Right now, 1 hour to GO ( pun intended ) before any tick received, so there is a gap or missing data, but no matter, doesn't affect my trading style.
Attached Image (click to enlarge)
Click to Enlarge

Name: open times.jpg
Size: 159 KB
Maximize wins, minimize loss, stay in the game as long as you can
Counter-Trend Entry Return This Week: -5.7%
 
 
  • Post #116
  • Quote
  • Edited 6:32pm Sep 4, 2011 5:19pm | Edited 6:32pm
  •  Erebus
  • Joined Jul 2011 | Status: Member | 7,083 Posts
Picture didn't attach as usual, I've done this many times, don't know what the problem is, see if it works here?
Attached Image (click to enlarge)
Click to Enlarge

Name: where.jpg
Size: 123 KB
Maximize wins, minimize loss, stay in the game as long as you can
Counter-Trend Entry Return This Week: -5.7%
 
 
  • Post #117
  • Quote
  • Edited 6:37pm Sep 4, 2011 6:35pm | Edited 6:37pm
  •  Erebus
  • Joined Jul 2011 | Status: Member | 7,083 Posts
And here is what GO Markets chart looks like shortly after they start Monday morning data an hour after trading starts...

PS: Using P4L Candletime also, it is great
Attached Image (click to enlarge)
Click to Enlarge

Name: what look like.jpg
Size: 219 KB
Maximize wins, minimize loss, stay in the game as long as you can
Counter-Trend Entry Return This Week: -5.7%
 
 
  • Post #118
  • Quote
  • Sep 13, 2011 2:10am Sep 13, 2011 2:10am
  •  Loooit
  • | Joined Nov 2009 | Status: Member | 86 Posts
Hi Pips4life,

This is awesome, Makes trading on different timeframes alot easier, Much better having a new 4H bar on London Open...

Thanks heaps.
Ask me again when I know what I'm talking about.
 
 
  • Post #119
  • Quote
  • Sep 14, 2011 12:32am Sep 14, 2011 12:32am
  •  Kaptain
  • | Joined Sep 2011 | Status: Member | 9 Posts
Hi Pips4life,
A simple question...
I managed to use a H1 chart x 24 to make daily charts then Timeshift them (-7) to change my brokers server time to NY EST. My question is how do I take out the Sunday candle. I want a 5 day chart with no Sunday candle so how is this done in plain English? I know you mentioned something in the first post but to me it was Klingon speak.

Thanks for this indicator, just makes me wonder why MT4 developers make life so hard by not including a choice to choose your timezone?!

I am looking forward to your help,

Kaptain
 
 
  • Post #120
  • Quote
  • Sep 14, 2011 1:34am Sep 14, 2011 1:34am
  •  Callisto
  • | Additional Username | Joined Jun 2011 | 421 Posts
Quoting Kaptain
Disliked
Hi Pips4life,
A simple question...
I managed to use a H1 chart x 24 to make daily charts then Timeshift them (-7) to change my brokers server time to NY EST. My question is how do I take out the Sunday candle. I want a 5 day chart with no Sunday candle so how is this done in plain English? I know you mentioned something in the first post but to me it was Klingon speak.

Thanks for this indicator, just makes me wonder why MT4 developers make life so hard by not including a choice to choose your timezone?!

I am looking forward to your help,

Kaptain...
Ignored
I'm not P4L, but from my reading of his instructions below, it seems to me that you would have to adjust the time shift to match the start / end of your broker's trading week - which probably negates your original intention of having Daily bars opening in your own time zone - maybe can't have it both ways?

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

I would play with the time shift and look at various charts until P4L returns; I'm lucky as GO Markets already has 5 candles per week, I use this to trade 12 Hour charts = awesome! you should have a look at those, they will be part of MT5

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

Example: Suppose your broker time is 00:00:00 the same time as GMT. NewYork is GMT-5 which is 19:00:00.

Your broker closes on Friday < 17:00:00 NY and reopens on Sunday >= 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!

If your broker has exactly 24*5=120 (or less) bars-per-week, and if you currently have a short Sunday (or Saturday) Daily bar on your chart, then you can pick an appropriate timeshift to eliminate your extra (short) Daily bar!
OPPORTUNITY IS NOWHERE
 
 
  • Platform Tech
  • /
  • Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4
  • Reply to Thread
    • 1 45Page 678 17
    • 1 5Page 67 17
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023