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
    Inertia
    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
    Nobody
    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
    Nobody
    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
    Inertia
    Participant
    Master

    Simply awesome Brisvegas !

    You made my day 😉 …

    #58914 quote
    Leo
    Participant
    Veteran

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

    #58922 quote
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
8 years, 1 month ago.

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