help with code writing

Forums ProRealTime English forum ProScreener support help with code writing

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

    Hi,
    I am stage “begins” in programming search engines in your excellent software.

    I wanted to ask, is it possible to ask for such conditions, for example –
    Before 30 bars – for 30 bars, the indicator was less than the “X”?
    If so, how do you write it?

    Now I know that you can ask, for example – before 30 candles – the indicator was less than the “X”
    But I do not know how to ask for it automatically for several days.

    #7895

    Hi balance,

    To do this we have to make a loop in the past to test if your indicator were effectively under the “X” value.

    In this example i’m testing if the RSI over the last 30 bars were below the 50 level:

    I coded this in the forum, haven’t test it, please gimme feedback if it works .. or not 🙂

     

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