Newbie Request for Simple High/Low Indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5199 quote
    8oUBw8Qio38oUBw8Qio3
    Participant
    New

    Good Day,

    I am not familiar with coding in Probuilder and hesitant to spend money on custom programming as long as I don’t have a functioning, profitable trading strategy. As such, I was hoping that a coder among you would be willing to code the following simple indicator:

    – To display previous month/week/day high/low on chart as horizontal line – To be displayed in price window, NOT in separate indicator window – Colour/thickness of lines to be customizable – Lines to show across all time frames, e. g. high/low on monthly chart to be shown on H1 and M15 time frames – Only show previous month/week/day high/low, not historic ones

    I am aware that it is a lot to ask for! Thanks in advance for your time.

    #5344 quote
    NicolasNicolas
    Keymaster
    Legend
    Hello, here is a short prorealtime code for what you are requesting, but only for the previous week high and low. I’m sure you can easily adapt or complete this one for the monthly and daily one.
    //weekly high/low
    IF DayOfWeek < DayOfWeek[1] THEN
     weekHprevious = myH
     weekLprevious = myL
     myH = High
     myL = Low
    ELSE
     myH = Max(High, myH)
     myL = Min(Low, myL)
    ENDIF
    
    if Today[0] <> Date[0] then
     weekH = undefined
     weekL = undefined
    else
     weekH = weekHprevious
     weekL = weekLprevious
    endif
    
    RETURN weekH,weekL
    TheYangGuizi thanked this post
    previous-week-high-and-low-prorealtime-indicator-code.png previous-week-high-and-low-prorealtime-indicator-code.png
Viewing 2 posts - 1 through 2 (of 2 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

Newbie Request for Simple High/Low Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
8oUBw8Qio3 @8oubw8qio3 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
10 years, 5 months ago.

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