Drawrectangle from pivots points and OPR

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #82563 quote
    RIBO
    Participant
    Junior

    Hello, I don’t have a good result.

    I would like a drawrectangle with:

    • PPJ (pivot point Daily),
    • OPR ( the high and low from the first candle , 8 hours, in UT 15 minutes and if the candle is lower 5 pips, include wicks)
    • GAP (last day)

    the highest of my rectangle can be PPJ or OPR or GAP and the same for the lowest.

    //once plusBas = close*1000
    PPJ = (DHigh(1) + DLow(1) + DClose(1)) / 3
    OPR= (time=080000) and open and close
    GAP= Close and time>214500 and time <=220000
    
    // Rectangle 
    x = gap
    x1= 180000
    
    y= high (ppj or opr or gap) 
    y1= low (ppj or opr or gap)
    
    DRAWRECTANGLE(x, y, x1, y1) coloured (30,30,255)

    Merci pour votre aide

    #83501 quote
    RIBO
    Participant
    Junior

    Hello, if you have a solution ? Thank you very much

    #83504 quote
    Vonasi
    Moderator
    Master

    The values of x and x1 must be a barindex reference and not a condition. So you will need to store or calculate the value of barindex for the 080000 candle for example.

    The values of y and y1 must be a price reference.

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

Drawrectangle from pivots points and OPR


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
RIBO @lucie_ribaudeau Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Vonasi
7 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/11/2018
Status: Active
Attachments: No files
Logo Logo
Loading...