Coding for high and low between set hours

Forums ProRealTime English forum ProBuilder support Coding for high and low between set hours

Viewing 9 posts - 31 through 39 (of 39 total)
  • #7593

    Ok, the code before the last code that went to Dave was correct (But needed to go back 24hrs on the chart),

    The next code that went to Dave was in the correct location on the chart but the close was incorrect.

    Getting there.

     

    #7594

    Ok so now the close price is correct, but needs to move back to line up with High and low.

    Getting closer.  Like i’m playing with a rubic’s cube.

     

    REM ESTABLISH MAX AND MIN EACH DAY OF WEEK
    base = 360
    periodo = 006000-horaanterior
    n = abs(round(periodo/100))
    x = abs(round(base/n))

    IF TIME=010000 THEN
    horaanterior = Time[1]
    endif

    IF DAYOFWEEK=1 THEN
    MAXIMO = CashHighFr
    MINIMO = CashLowFr
    IF TIME = 160000 THEN
    CashHighMo = Highest[x](high)
    CashLowMo = Lowest[x](low)
    CashCloseMo = Close
    CashClose = CashCloseFr
    ENDIF
    ENDIF

    IF DAYOFWEEK=2 THEN
    MAXIMO = CashHighMo
    MINIMO = CashLowMo
    IF TIME = 160000 THEN
    CashHighTu = Highest[x](high)
    CashLowTu = Lowest[x](low)
    CashCloseTu = Close
    CashClose = CashCloseMo
    ENDIF
    ENDIf

    IF DAYOFWEEK=3 THEN
    MAXIMO = CashHighTu
    MINIMO = CashLowTu
    IF TIME = 160000 THEN
    CashHighWe = Highest[x](high)
    CashLowWe = Lowest[x](low)
    CashCloseWe = Close
    CashClose = CashCloseTu
    ENDIF
    ENDIF

    IF DAYOFWEEK=4 THEN
    MAXIMO = CashHighWe
    MINIMO = CashLowWe
    IF TIME = 160000 THEN
    CashHighTh = Highest[x](high)
    CashLowTh = Lowest[x](low)
    CashCloseTh = Close
    CashClose = CashCloseWe
    ENDIF
    ENDIF

    IF DAYOFWEEK=5 THEN
    MAXIMO = CashHighTh
    MINIMO = CashLowTh
    IF TIME = 160000 THEN
    CashHighFr = Highest[x](high)
    CashLowFr = Lowest[x](low)
    CashCloseFr = Close
    CashClose = CashCloseTh
    ENDIF
    ENDIF

    return MAXIMO AS “LAST DAY MAX”,MINIMO AS “LAST DAY LOW”,CashClose as “Cash Close”

    #7595

    Thank you Adolfo, just seen your message.

    Its Like a jigsaw puzzle this programming stuff.

     

    #7596

    Bingo…………..  ASX 4Pm close GMT +10

     

    REM ESTABLISH MAX AND MIN EACH DAY OF WEEK
    base = 360
    periodo = 006000-horaanterior
    n = abs(round(periodo/100))
    x = abs(round(base/n))

    IF TIME=010000 THEN
    horaanterior = Time[1]
    endif

    IF DAYOFWEEK=1 THEN
    MAXIMO = MyHigh
    MINIMO = MyLow
    IF TIME = 160000 THEN
    MyHigh = Highest[x](high)
    MyLow = Lowest[x](low)
    Myclose = close
    ENDIF
    ENDIF

    IF DAYOFWEEK=2 THEN
    MAXIMO = MyHigh
    MINIMO = MyLow
    IF TIME = 160000 THEN
    MyHigh = Highest[x](high)
    MyLow = Lowest[x](low)
    Myclose = close
    ENDIF
    ENDIf

    IF DAYOFWEEK=3 THEN
    MAXIMO = MyHigh
    MINIMO = MyLow
    IF TIME = 160000 THEN
    MyHigh = Highest[x](high)
    MyLow = Lowest[x](low)
    Myclose = close
    ENDIF
    ENDIF

    IF DAYOFWEEK=4 THEN
    MAXIMO = MyHigh
    MINIMO = MyLow
    IF TIME = 160000 THEN
    MyHigh = Highest[x](high)
    MyLow = Lowest[x](low)
    Myclose = close
    ENDIF
    ENDIF

    IF DAYOFWEEK=5 THEN
    MAXIMO = MyHigh
    MINIMO = MyLow
    IF TIME = 160000 THEN
    MyHigh = Highest[x](high)
    MyLow = Lowest[x](low)
    Myclose = close
    ENDIF
    ENDIF

    return MAXIMO AS “LAST DAY MAX”,MINIMO AS “LAST DAY LOW”,MyClose as “Cash Clo

    #7597

    Next challenge  add the pivots points.

    #7600

    Awesome Jeff!!! Congrats!!

    There are some pivots created by other members in Library here, just use some of them and get it!

    Best trading 🙂

    King regards

    #7611

    Thank you Adolfo, i could not have done this with out your help, really appreciate you time.

    All done now with pivots…..(:

    #22976

    Hello,

    I would need to know only the maximum and the minimum of one day in a range of times eg 15:30 cet cet 2150 regardless of the Time Frame used. I tried to change these indicators but can not get anything. You can help me ? Thanks

    #169213

    Multi time-frames and lighter version.

     

Viewing 9 posts - 31 through 39 (of 39 total)

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