VWAP cross in last X bars query on VWAP calculation

Forums ProRealTime English forum ProScreener support VWAP cross in last X bars query on VWAP calculation

Viewing 3 posts - 1 through 3 (of 3 total)
  • #167142

    Hi

    I’m just looking at the vwap and wanted to screen for crosses in last 10 bars say, so below I have combinations of codes commented out and a loop to check the last 10 bars shown – (been trying to see why its not working).

    However the results when setting to 2 minutes dont reflect the desired outcome,

    I’m assuming its to do with the VWAP calculation probably being calculated with too few candles, as the code whan on charts requires sufficient for it to start the calculation from the start of the day… I’m unable to get the platform VWAP up it only adds it to price, and  preloadbars doesnt seem to be an option… So I’m limited with screeners but have functionality for many others, its just the VWAP calculation causing an issue…

    Any pointers?

    PRT V11 Premium

     

    #167150

    Use brackets for selection:

    Parentheses are used for the sorting criterium (if any).

     

    #167151

    Ok sorted I think

    Code below works at first glance.. just a logic issue so recapped and this seems to reflect a cross in last X number of bars

     

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

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