Draw Slope on previous Day

Forums ProRealTime English forum ProBuilder support Draw Slope on previous Day

Viewing 5 posts - 1 through 5 (of 5 total)
  • #87458

    Please help,

    I am trying to auto draw a slope on previous day high at angle but the origin does not index to highest previous day high.
    The barindex does not coordinate to the price when drawn by indicator (Gray line).

    The red line is intended out come, drawn form previous day high manually.

    Any help is appreciated and thanks in anticipation.

     

    #87508

    I think that you wrongly trying to found the barindex of the previous day high, this code should work:

    I returned the barindex and the founded bdh, try to compare them with the cursor details panel to find if bdh is the correct barindex or not (it should).

    #87511

    You are a saviour, thanks alot. I am very grateful for your time and the effort thanks! 🙂

    #87525

    Is there away to apply this logic to Find PreviousWeekHigh and its Barindex?

    Thanks

    #88716

    You can always use the multi-timeframe functionality to perhaps show both.

    Perhaps also have a look at my topic here: https://www.prorealcode.com/topic/calculating-diagonal-trend-lines-using-fractals-and-trigonometry/

Viewing 5 posts - 1 through 5 (of 5 total)

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