median previous hour priceline in a 1 minute chart

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #79711 quote
    MertMert
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #79717 quote
    MertMert
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    GraHalGraHal
    Participant
    Master

    Added as Row 62 to here Snippet Link Library

    robertogozzi thanked this post
    #79734 quote
    MertMert
    Participant
    Average

    Did looks good. Thanks so far. Highly appreciated.

    #79794 quote
    NobodyNobody
    Participant
    Veteran

    fugedaboudit

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NobodyNobody
8 years ago.

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