Why Can't use or call some indicator?

Forums ProRealTime English forum ProScreener support Why Can't use or call some indicator?

Viewing 10 posts - 1 through 10 (of 10 total)
  • #34756

    Hallo to all,

    I tried to write a simple screener using Schaff Trend Cycle Indicator, but when I try to build it, platform says “Selected indicator Is not available in ProBuilder Language. Select another indicator.”

    But STC is a built-in ProRealTime 10.3 indicator.

    I tried also to…

    Call “Schaff Trend Cycle”[10,23,50]

    But the result is the same.

    What’s the problem?

    #34806

    Some indicators can’t be used in “Simplified creation”, they need to be recoded into the screener directly.

    I found the Schaff trend cycle codes in these 2 posts: https://www.prorealcode.com/prorealtime-indicators/schaff-trend-cycle/

    and there: https://www.prorealcode.com/topic/dax-intraday-scalping-strategy/

    #34998

    Thank you for your answer Nicolas.

    I had already found indicators that You mention, but both of them draw a different graphic compared of Schaff Trend Cycle that comes with Prorelatime 10.3.

    I asked to Prorealtime support service and I’m waiting for an answer.

    However, in the meantime I found an interesting article here: http://traders.com/Documentation/FEEDbk_docs/2010/04/close.html

    In the article, the calculation method of STC is explained like this:

    *** Code Start ***

    *** Code end ***

    I tried to translate it, but I have 2 problems:

    1. In this formula: XMAC=MACD (c,MA1,MA2), the parameter c is not documented. It seems to be the cycle, but what is its default value?
    2. CurrentBar is a value that must be present in ProBuilder also. Maybe is it BarIndex?

    Thanks.

    #35003
    1. c = Close
    2. Yes you can translate this instruction with “BarIndex” in Probuilder
    #35009

    Thanks.

    #35019

    I translated the code, but my indicator plots nothing and I can’t find the error.

     

    #35367

    I think you should embed the whole code into a condition that test if enough barindex has passed to completely calculate the longer moving average. Tell me if I’m not clear enough 🙂

    #35720

    I reviewed code translation: “<=” operator needs to be inverted to “>=” on both code lines 24 and 42.

    The result is on the attached image: the first Schaff Trend Indicator is the ProRealTime built-in, the second “My Schaff Trend Cycle” is the translated indicator.

    Curves are a little bit different, but inversion points are the same.

    Now I can use it to build a screener.

    1 user thanked author for this post.
    #42380

    I made some improvements from you code @Francesco, thanks for taking the time to translate it. Now the indicator seems almost identical than the one of the platform. I certainly add your indicator to the library, since the code of the Schaff trend cycle is an often query in the forums 🙂

    NOW IN LIBRARY : Schaff Trend Cycle 

    #42454

    Thanks Nicolas.

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

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