Monthly High Low Close Indicator

Forums ProRealTime English forum ProBuilder support Monthly High Low Close Indicator

Viewing 15 posts - 1 through 15 (of 50 total)
  • #15871

    Hi all,

    hope someboday can fix that little problem. I want that indicator to show previous month high low and close in any lower timeframe. Highs and lows works fine but the monthly close shows the wrong price.

    thanks in advance

     

    #15875

    Hi, is it for cfd’s with IG? Could be that on the last day of the month, apart maybe from December because of early market close on the 31st, if the candle close in its market happens to be at midnight or more in your time zone, the month on your last candle is switching early (for example a return of 5 for may on the last day of April, but a return of 4 of the day before that) therefore triggering your “month<>month[1]” condition 1 day early (or 1 candle early in lower time frames)

    A quick fix to this could be to use “openmonth” instead of “month”, because your last day of the month most likely still starts on the “proper” month regardless of the time difference between your area and the cfd market close time.

    Also line 19 could be shorter, all together a suggestion for lines 18 to 21 could be:

     

    1 user thanked author for this post.
    #15879

    Thank you. It should work with any brokers data depending on my pro realtime timeframe settings. Month open is okay but not really that what i am looking for. In that case i need that previous month closes.

    #15885

    I did not propose to give month open price level instead of close. That’s why I kept part of your line 19 when using Dclose of last day of previous month and wrote:

    And in your line 18, when instead of “month” I suggested using “openMonth”, it might be worth reminding openMonth is not the month open price level, it is the month number in which the candle opens (the same way “Month” is not the close price level but is the month number in which the candle closes).

    Using “openmonth” instead of “month” makes sure you avoid the glitch of month number switching one candle earlier than you want, because your “if month<>month[1]” is triggered on last day of month rather than first day of new month, and captures close of the day-before-last (which you don’t want) rather than the last day of the month (which you want).

    2 users thanked author for this post.
    #38133

    Hi, I’m looking for an indicator that show previous quarter high and low. Thanks in advance.

    #38140

    @kinyo

    Quarter high/low can be retrieved with this code snippet:

     

    #38204

    Hello Nicolas, thank you for this code but there is a problem.
    Your indicator only draws correctly the highest of the previous quarter (red line). The lowest is not good (green line). If anyone has an idea to solve this bug ?

    #38207

    Sorry, wrong code, this one should work better:

     

    #38227

    Great ! Thank you very much.

    #38479

    Hello, I try to code a screener that display the forex pairs whose price closes (in daily) on the previous highest (display number 2), below the previous lowest (display number 1) or in the middle (display number 0) for monthly and quarterly.
    Unfortunately nothing appears when launching this screener and I don’t understand why ?

     

     

    #38576

    I can not do anything with OpenMonth, I fixed the screener to return information with “Month” instead, but the values of the quarters may not be the right ones, to be checked:

     

    #38593

    Hi Nicolas, thank you very much once again for your precious help. Your code seems to work properly.

    #46593

    Hello, what is wrong, why is this not working?

     

     

    #46888

    Strange, this code works as an indicator but not as a screener??

     

    1 user thanked author for this post.
    #46890

    @Swingforfortune

    Because it needs at least some history to be loaded (barindex>20):

    I still have some of your posts in pending review, because you didn’t send me the code in open source format 🙂 You can send them to me at my email: nicolas[at]prorealcode.com ; many thanks for sharing!

Viewing 15 posts - 1 through 15 (of 50 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login