comparing indicators from different periods

Forums ProRealTime English forum ProOrder support comparing indicators from different periods

Viewing 6 posts - 1 through 6 (of 6 total)
  • #86852

    Hi,

     

    I was looking through the forums and had a query in regard to comparing indicators in different time periods. Say  I wanted to compare an RSI from 6 candles ago to a current close[0]. How would I go about doing this for example could I do the following;

     

    Also if certain conditions are met would it be possible to record a value inside pro real time.

     

     

    Really appreciate the feedback and support provided

     

    Kind Regards,

     

     

     

    #86853

    The documentation found under help can be very useful when you don’t know the format for a bit of code:

    https://www.prorealcode.com/documentation/stochastic/

    Your RSI code looks fine but bear in mind that the current candle is 0 so six candles including the current candle is candle 5.

    1 user thanked author for this post.
    #86858

    Hi That’s great thanks for that in regard to the second question is it possible to record a variable ?

     

     

    Really Appreciate  the input

    Kind Regards,

     

     

     

     

    #86860

    is it possible to record a variable ?

    Yes of course it is. Just save a value as any variable name just as you have done and that variable will keep that value until you give an instruction to change it.

    So for example you could even save the last five values:

     

    1 user thanked author for this post.
    #86862

    Between lines 4 and 5 this one is missing:

     

    2 users thanked author for this post.
    #86863

    Well spotted Roberto – that’s what happens if you try to cook dinner and reply on a forum at the same time!

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

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