Finding hourly highs/lows using 1 min data

Forums ProRealTime English forum ProOrder support Finding hourly highs/lows using 1 min data

Viewing 15 posts - 1 through 15 (of 16 total)
  • #10241

    Is there a command that specifies the max/min price between 2 past data points, ie max price(bar[1],bar[60], and then max price(bar[61,bar[120]) etc?

    Many thanks in anticipation …

    #10256

    Does anyone know how to do this, or if it is possible?

    #10269

    Do you want to know the highest price only between 2 values or within the range of these 2 boundaries?

    #10270

    Hi Nicolas,

    … within the range – I am trying to calculate 60min o,h,l,c data from 1 min data …

    #10275

    ok, but not from round hour to another round hour if I understand well?

    #10277

    Hi Nicolas,

    I would like to calculate them from round hour to round hour – yes

    #10278

    This is what I wrote but – surprise, surprise- not working 🙁

     

    #11831

    Please try this with 1 Minute time Frame:

     

    #11832

    Sorry

    There is one missing endif at line #148

    Some variables ar not used in the code. You will have an error message for each variable not used

    #11849

    Hi,

    I would do it this way:

     

    #11886

    Hi, don’t know if it’s the right answer to this question, but here is a solution to find the highest and lowest price each new hour:

     

    #11893

    Sorry guys but what does <> mean?

    #11902

    <> means “different” or “not equal”.

    #34699

    Hallo, Nicolas,

    how can I modify your code to find the highest and lowest price each 4 hours?

     

     

    #34721

    Hallo, Nicolas,

    I need highs and lows of the last 4 hours in 5 min chart. How must I modify the code to get the same timing as in 4H Chart, i.e. my segments have the same start und end time as in 4H chart – at 010000, 050000, 090000 and so on?

     

     ONCE HH=0
    ONCE LL=low[1]*1000
    ONCE i = 0
    ONCE hhigh = 0
    ONCE llow = low[1]*1000

    if hour<>hour[1] then

    if i = 4 then

    HH=hhigh
    LL=llow
    TBarIndex=barindex
    drawsegment(TBarindex,HH,barindex,hhigh)
    drawsegment(TBarindex,LL,barindex,llow)
    hhigh = 0
    llow = low[1]*1000
    i=0

    endif

    i=i+1

    endif

    hhigh = max(hhigh,high)
    llow = min(llow,low)

    return HH AS "NEWHIGH", LL AS "NEWLOW"

     

Viewing 15 posts - 1 through 15 (of 16 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login