Improved multi-timeframe/offset/chart period converter, P4L PeriodCon.mq4 - Page 2
Page 2 of 5026 FirstFirst 123412 ... LastLast
Results 11 to 20 of 255

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

  1. #11
    90691
    Quote Originally Posted by ;
    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.

  2. #12
    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?

  3. #13
    90691
    Quote Originally Posted by ;
    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.

  4. #14
    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.


  5. #15
    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.

  6. #16
    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.

  7. #17
    Ok thanks for your help. Investigate and I will have to work everything you've stated.

  8. #18
    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.

  9. #19
    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.

  10. #20
    97965
    Quote Originally Posted by ;
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners more information