H/L AVG Opening 5min

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #74518 quote
    Kam Mahey
    Participant
    New

    Hello all,

    I’m very new to ProRealtime and require some help while still learning how to code.

    I would like to automate a horizontal line h/l avg (mid) of the opening 5min candlestick created on a 5min candlestick chart.

    Would need to also see historic opening 5min candlestick h/l avg horizontal lines also on the chart.

    Any help would be appreciated.

    Many Thanks

    #74521 quote
    Nicolas
    Keymaster
    Master

    (mid) of the opening 5min candlestick

    You mean the market open? Is it the first bar of the day or a candlestick at a precise hour? (CFD is different from Future opening hour).

    #74555 quote
    Kam Mahey
    Participant
    New

    Hi,

     

    Thank you for looking into this for me.

    Yes market open

    It would be the h/l avg (mid) of the first 5min candle on a 5min chart for UK time 14:30-14:35, US time 0930

    #74595 quote
    Nicolas
    Keymaster
    Master

    The fastest and easy way to do that is:

    timeopen = 083500
    
    if time=timeopen then 
     drawhline((high+low)/2)
    endif
    
    return

    You can change yourself the “timeopen” variable to adjust the market open hour if you want to.

    Lines can only be plain one (no dotted one sorry..).

    Kam Mahey thanked this post
    #74608 quote
    Kam Mahey
    Participant
    New

    Hi Nicolas,

    How do i add this to the main price chart?

    Thank you so much for this, i am a total newbie to this platform and have been with Sierra Charts for years so big learning curve for me.

    Need to spend a lot of hours learning this platform.

    #74609 quote
    Vonasi
    Moderator
    Master

    If you have already created it as an indicator then just click on the spanner in the corner of the price chart and a window will come up where you have the option to add indicators to the chart.

    Kam Mahey thanked this post
    #74613 quote
    Kam Mahey
    Participant
    New

    I have added the indicator and named it ‘5min h/l avg’.

    i right-clicked on chart and selected  ‘settings price’ added indicator ‘5min h/l avg’

    Nothing shows up on chart and ‘5min h/l avg’ indicator is a light grey colour in the ‘Settings – Price’ where other indicators, i.e VWAP is black.

    #74614 quote
    Kam Mahey
    Participant
    New

    Hi both,

     

    All working now , after i renamed the indicator.

     

    Many thanks

    #74615 quote
    Vonasi
    Moderator
    Master

    [attachment file=74616]

    Kam Mahey thanked this post
    #75554 quote
    Kam Mahey
    Participant
    New

    Hi all again,

    Need some more help 🙁 please.

    I would like the same as above but on a daily chart as well, so a horizontal line created on  the mid of each daily candle.

    My main goal would be just to create the hline on the mid of a daily candle on the top 50 to 100 candles which have the highest amount of volume over a given amount of units?

     

    Thanks

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

H/L AVG Opening 5min


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Kam Mahey @kam_mahey Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by Kam Mahey
7 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/27/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...