Definitively, I don’t understand how work proscreener motor…

Forums ProRealTime English forum ProScreener support Definitively, I don’t understand how work proscreener motor…

Viewing 9 posts - 1 through 9 (of 9 total)
  • #116558

    Good afternoon,
    Please, let me introduce my self, I am new in this world, and I am learning as much I can…
    But, I don’t understand how works proscreener search engine.
    Perhaps is because I came from another kind of programming,
    I was trying to study another screeners before to create my own screeners.
    I am using free proreal time V11 with values at end of day( soon I will update to realtime…)
    My doubts:

    Doubt 1:

    For example, I use one indicator that shows last zigzag value, I see that returned value matches with chart (image001.jpg)

    But, same instruction in proscreener has different return(image002.jpg), why??

    This hasn’t a lot of sense, I know,.. i just to understand the program..

    In fact , the returned value is not matching with any peak or valley (image003.jpg); i added a line for better visualization.


    doubt 2:

    Why  I see in some screeners at the tag declaration the use of “once” instruction?? Does it means that the code is not executed only one time?
    What the the rules for code execution?
    Normally, in another worlds, to execute several times, it is used loops, FOR; WHILE….

    All of this become because I have created a screener(image004.jpg), but it hasn’t the expected behaviour:

    What I want to do with this code:
    -Call zigzag function and detect changing trend(peak/valley), but only a number of periods before (with tag); not from very begining.
    -Store values of peaks and valleys in different tags…
    -Show results with recent peaks and valleys

    -tags LAST and ACTUAL are discounted automatically? do  I need to decrease manually?
    If I not decrease them, comparision will be done with same values?

    I don’t know If I was really clear with my doubts…. (I tried believe me.. 🙂 )

    Thanks in advance for help…

     

    #116618

    I might not understand the whole problem, but I think it comes from your own coding experience with other programming language.

    ProBuilder coding language has no array for personal variable (not yet but will come soon), and I think that you want your code to use it. A number in brackets [10] is just an offset of bars quantity on the chart, not the 10th value in an variable array.

    “once” instruction is used to give a variable a value only one time at the first read of the code.

    Have in mind, that ProScreener has a data history available of “only” 254 periods, so some discrepancies might occur between a chart and what ProScreener can read. ZigZag of 4 percent from peak to valley start at first bar available in history, and if the history is different, therefore the result can be different.

    #116695

    Hello

    First, to say thanks for fast reply and demonstrate interest… 🙂

    ProBuilder coding language has no array for personal variable (not yet but will come soon), and I think that you want your code to use it. A number in brackets [10] is just an offset of bars quantity on the chart, not the 10th value in an variable array.

    Yes, I see, but for me what is strange is from where is starting this offset… Does it means that the offset is for each candle? So, code is going trough every candle?… from the first one?

    In case of yes,  How to delimit it?

    What I want with my code is to have stored in tags:

    Valley0-> value of first zigzag change(from decrease to increase), no far than xxx candles
    Peak0->value of first zigzag change(from increase to decrease), no far than xxx candles

    Valley1-> value of second zigzag change(from decrease to increase), no far than xxx candles
    Peak1->value of second zigzag change(from increase to decrease), no far than xxx candles

    Valley2-> value of third zigzag change(from decrease to increase), no far than xxx candles
    Peak2->value of third zigzag change(from increase to decrease), no far than xxx candles

    But, I am not receiving expected returns…

    Thanks again for you sharing of knowledge  🙂

     

    #116742

    Without arrays, you have 2 solutions:

    1. you know that you only want to store the last 3 zigzag points, so in this case, use 3 variables with 3 different names and change their values each time a new zigzag appear
    2. store all Valley in a variable “Valley” and make a loop through data to fetch all previous values of that variable and do what you want from there..

    Look at how I proceed in this indicator code example: https://www.prorealcode.com/prorealtime-indicators/zigzag-supdem-supply-and-demand-zones/

    I made loop through the lookback periods to compare variables “t” (valley) and “p” (peak) between them.

    Variables arrays will make our life easier! They will come very soon I hope!! 🙂

    #117243

    Hello,
    finally, I created that works… I still have doubts about how are manage some data types.but….. hahahah

    Is not perfect, and surely….could be improved.. but as I am beginner; I am more or less happy… 🙂

    I accept advices..

     

    Was created in Spanish.. sorry for that.

    Tiempo -> Time
    Vela-> Candle
    Punto->Point

    What does this code:
    With this code is detect Wolfe wave pattern, can be configured to stablish the quality of the wolfe waves, detecting delta between candles and values of points.

    What doesn’t does  this code:
    Detect if the last candle of chart is in buying area, wolfe pattern could be some candles before…

    In attachment there is an example of result…

    What will be great from code Suite:
    -Arrays.
    -Debug of tags, or a list with tag values at end of execute, I had to add returning 1 by 1 all the tags to be sure that were ok

    Thanks

     

    #117353

    Hi, new version,

    With this other type, are find values with current scenario in the point 5,

     

    #117367

    Thanks a lot for this valuable screener code! It should be featured in the library! Could you please put it there if you don’t mind? With some explanations? If you don’t have time i would do it for you.

    Share your code into the library!

    #118305

    Hello and sorry for my absence..

    I was busy these last days…

    For me will be be very satisfactory to share my first code with the community, of course…

    I will try to do it during weekend, did you played with the screener?

    For me what is a pity is that screener cannot draw in the chart.. would be nicest…

     

    #118328

    This is a nice stock screener that will benefit to a lot of people.

    The screener is not a code to plot on the chart 🙂

    Create an indicator from your screener code and add it on the price chart.

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

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