Stochastic and MACD Indicator Screener

Forums ProRealTime English forum ProScreener support Stochastic and MACD Indicator Screener

Viewing 4 posts - 1 through 4 (of 4 total)
  • #205031

    Hello,

    I am trying to build a screen for certain stochastic signals and MACD. However i am struggling to access the fast and slow stochastic programmatically.

    Please check the screenshots of the MACD and stochastic, how can I get the 3 indicators into a variable?

    Currently I have

     

    But this is only one of the two coming out of the stochastic indicator (when you plot it there are two lines). How can I access both (I need: Stochastic 14 periods, K smoothing 3, D smoothing 2, Wilders Average

    One more questions: Is it possible to programmatically draw an indicator in the right color, as bar diagramm, and group them together? (e.g. create a full settings page in one go)

    I want to have the main price window with a few MA, a secondary with stochastic, a third with MACD etc. Can I also define the colors of each? A simple

     

    does not work. .

     

    Cheers

    Emiglio

     

     

     

    #205042

    Your code:

    computes the WilderAverage of the Stochastic indicator.
    What do you mean by “I need: Stochastic 14 periods, K smoothing 3, D smoothing 2, Wilders Average“?

    As to your last question, if you look at the many examples in the forum and in the online documentation for RETURN, COLOURED, STYLE etc… you will see how you can plot them in different colours and shapes.
    As to grouping them, you can combine many of them in one custom indicator, such as:

    as you will see after adding it below your chart, different indicators use different scales, so you may find that (in this case), to be able to spot the regular MACD lines, you will have to enlarge the scale quite a lot and STOCHASTIC lines will be huge!
    On the contrary, if you want to see the STOCHASTIC lines regularly, MACD lines will be very tiny!

    #205077

    Thank you very much for the help, now I am much wiser. Sorry, I did not find the help for style and histogram.

    If you take a look at my second screenshot, I want to programmatically replicate the indicator (e.g. stochastic, 14 periods, %D = 2, %K = 2 and Wilder Average selected.

    When I try this code:

    it gives slightly different results. Why is that? How do I get the right indicator?

    Is it possible to create multiple indicators (in multiple sections) in one go?

    #205325

    Indeed you have to chamge the StoK line with this one:

     

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

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