Horizontal LInes based on VWAP

Forums ProRealTime English forum ProBuilder support Horizontal LInes based on VWAP

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 2 posts - 1 through 2 (of 2 total)
  • #173678 Report

    Hi all,

    Hope you’re well.

    I’ve been working on this idea for over a year but because I don’t like drawing lines manually, I end up forgetting and losing the concept. I’ve attached two pictures here for your understanding. I think I asked earlier but I didn’t get any acceptable/real response. I am using IG and I am on PRT11 like many others.

    The idea is to draw a horizontal line based on VWAP at 00:00 or 23:00 hours local time(00:00 new daily candle start while 23:00 is US Open – based on GMT+01 my time). I can use VWAP indicator but there is no function where I can call VWAP within my indicator. A pseudo code in my mind is:

    if (time =2300) then

    myvwap = get vwap

    drawLine (myvwap)


    I hope you got my point. More in pics. Thanks.

    #173782 Report

    Hi ashehzi

    Only been using PRT for about a month, saw your post and thought I would take a break for my own PRT problems and have a crack at yours. Create a new indicator and copy code.

    If I understood your problem, you just wanted some lines drawn from the period end at the vwap value.

    The code I knocked up is just a starting point for something much better alsoI haven’t fully checked its operation fully. I notice’s a couple of issues which I haven’t had time to look into.

    1.  my vwap line doesn’t follow  the stock vwap(daily) points, don’t know why.
    2. Lines probably don’t need to be drawn backward.
    3. The more data in chart the more lines drawn and that, in this version is going to clutter the chart.
    4. Only works properly in 30min timeframe unless time value changed to close of 1st bar of period.
    5. Don’t think reset variable are quite in the right place I think there slightly out of sequence.

    Anyway, hope this is helpful in some way and move you forward.  Will think about it. All the best.


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

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