median previous hour priceline in a 1 minute chart

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #79711 quote
    Mert
    Participant
    Average

    Hello,

    I am unable to code myself and was helped very well yesterday. I have another issue that I need some help with.

    I am looking for a code that draws in a 1 minute chart the median priceline of the previous hourly candle. If anyone can help me with that it will be fantastic.

    Thank as lot in advance and with regards,

    Andre

    #79716 quote
    robertogozzi
    Moderator
    Master

    Previous hour means fixed hours (9-10, 10-11, 11-12,….) or just the 60 previous bars of any given minute?

    #79717 quote
    Mert
    Participant
    Average

    Hello Roberto,

     

    It means fixed hour. Actually I can have it drawn with the standard price line. If I do that, I cannot code an indicator in a 1 minute chart for example: 1 minute close higher than previous hour mid point. That is what I am after.

    If not clear do please let me know.

     

    Thanks in advance,

     

    Andre

    #79723 quote
    robertogozzi
    Moderator
    Master

    This should do, if you apply it on the price chart it will report what you need:

    defparam calculateonlastbars = 200
    MinuteBars = OpenMinute + 1
    hh         = highest[60](high[MinuteBars])
    ll         = lowest[60](low[MinuteBars])
    RETURN (hh + ll) / 2
    #79733 quote
    GraHal
    Participant
    Master

    Added as Row 62 to here Snippet Link Library

    robertogozzi thanked this post
    #79734 quote
    Mert
    Participant
    Average

    Did looks good. Thanks so far. Highly appreciated.

    #79794 quote
    Nobody
    Participant
    Veteran

    fugedaboudit

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

median previous hour priceline in a 1 minute chart


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mert @mert Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by Nobody
7 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/04/2018
Status: Active
Attachments: No files
Logo Logo
Loading...