Strategy Volume Price Level

Forums ProRealTime English forum ProOrder support Strategy Volume Price Level

Viewing 2 posts - 1 through 2 (of 2 total)
  • #93576

    Hi Coders,

    I am opening a thread to test a strategy based on this indicator I made.

    https://www.prorealcode.com/prorealtime-indicators/volume-by-price-levels-v2-extended/

     

    Its goal is to identify strength and weakness in the distribution of volume per price :

    • Max (strong level of volume per price => resistance or support depending on the position of the price)
    • MinSup (week segment of price above the Max)
    • MinInf (week segment of price under the Max)

     

    There are 2 strategy ideas behind this indicator:

    1. if the price crosses over (respectively under) the strong volume level (“Max”), the price will tend to test a week point in the distribution of volume per price, respectively either superior (“MinSup”) or inferior (“MinInf”).

    2. A second idea would be to use a section of StartHighest/EndLowest (respectively StartLowest/EndHighest) to set entry point if the price crosses over MinInf (respectively MinSup) and use Fibonacci to have a trailing stop.

    I wrote this code but it nos doing what I want; apparently it is not sequencing the highesthigh and lowestlow ;

    Has anybody a clue to what should be modified or done?

    Thanks for your help,

    Chris

     

     

    #93592

    At a glance it appears that you zero everything in lines 29 to 34 on every run through the code so you have no last values to compare to. Maybe you need to use ONCE?

    1 user thanked author for this post.
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