Dynamic Price Line Indicators

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3488 quote
    scribbles
    Participant
    New

    Hello

    I am trying to determine if the indicators I require are included as standard, or will require any custom coding.

    I have 2 Price Lines setup on a the main price chart using the standard price line indicators.

    1. Displays previous days close.
    2. Displays current days open.

    What I am after is the option to setup additional price lines, offset from the current day open. ie +.10 , +20, -.10 , -.20, etc.

    I can add these manually to the main chart, but it is time consuming, and it would be ideal to configure these as a dynamic indicator.

    Can anyone advise if this can be done with the standard indicators, I cant seem to find one.

    Many Thanks

    PriceLines-indicator.png PriceLines-indicator.png
    #3490 quote
    Nicolas
    Keymaster
    Master

    Hello scribbles, welcome on ProRealCode.

    There is no such indicator already included in the platform. If you just want to add plus and minus lines offset from the day open, it is not difficult to add them by code.

    Hold on an hour or two while I finish other hurry duties and I’ll post the indicator for you to understand 🙂

    #3491 quote
    scribbles
    Participant
    New

    That will be most helpful, thanks

    #3493 quote
    Nicolas
    Keymaster
    Master

    Here we go, as simple as it is.

    line1 = 10
    line2 = 20
    
    prevclose = DCLOSE(1)
    currentopen = DOPEN(0)
    plusline1 = currentopen + line1*pipsize
    plusline2 = currentopen + line2*pipsize
    minusline1 = currentopen - line1*pipsize
    minusline2 = currentopen - line2*pipsize
    
    RETURN prevclose, currentopen, plusline1, plusline2, minusline1, minusline2

     

    PriceLines indicator

    Would be great to make a small presentation of yourself scribbles, here : http://www.prorealcode.com/forum/announcements/forums-new-members/

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

Dynamic Price Line Indicators


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
scribbles @scribbles Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
9 years, 11 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 03/07/2016
Status: Active
Attachments: No files
Logo Logo
Loading...