Customized Oscillator that take initial value the yesterday's highest/top price

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #58753 quote
    InertiaInertia
    Participant
    Master

    Hi all,

    Any one would be kind enough to create an oscilator (or any tool) that would take for initial value the yesterday’s highest/top price.

    I would need to know where I am precisley today compare to yesterday top price.

    Yesterday higher would be my benchmark for the d day in a way…

    Does this make sens ? Thank you 😉

    #58755 quote
    NobodyNobody
    Participant
    Veteran

    if you want this as intraday code will modify  . I like to normalize all my indiators to percent instead of price , if you require that as well just ask

     

    // Distance from last bar high
    
    DLBH = close - high [1]
    
    return DLBH as " Distance from last bar high "
    Inertia thanked this post
    #58758 quote
    NobodyNobody
    Participant
    Veteran

    Intraday Version

    // Distance from last Daily  bar high
    
    DLBH = close - Dhigh (1)
    
    return DLBH as " Distance from last bar high "

    Intraday version as %

    // Distance from last Daily  bar high as %
    
    DLBH = close - Dhigh (1)
    
    DLBHperc = DLBH / Close *100
    
    return DLBHperc as " Distance from last daily bar high as % "
    Inertia and Nicolas thanked this post
    #58855 quote
    InertiaInertia
    Participant
    Master

    Simply awesome Brisvegas !

    You made my day 😉 …

    Sample.png Sample.png
    #58914 quote
    LeoLeo
    Participant
    Veteran

    Sorry I have a cuestion, in intraday chart what give the value Dhigh? I mean Dhigh[0]

    #58922 quote
    NicolasNicolas
    Keymaster
    Legend

    It’s Dhigh(0) with parenthesis and it gives today’s highest price.

    Inertia thanked this post
Viewing 6 posts - 1 through 6 (of 6 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

Customized Oscillator that take initial value the yesterday's highest/top price


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Inertia @inertia Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by NicolasNicolas
8 years, 8 months ago.

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