Programming divergence of stochastic

Forums ProRealTime English forum ProOrder support Programming divergence of stochastic

Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • #18306

    Hi all, I was hoping that someone would be able to help me program a divergence in price and stochastic indicator.

    What I am looking to test for is a lower high in price compared to a previous high, while the stochastic indicator shows a lower high compared to the previous high?

    Has anyone coded something like this before?

    #18544

    Please find attached the indicator code for stochastic divergences. The indicator spot divergences between price and the crossover of the stochastic with its own moving average signal line.

    The stochastic values are only taken into account if they are above the overbought zone or below the oversold zone (you can modify these levels at will in the parameters).

    This is the same code as the ones from the MACD or RSI divergences indicators already posted into the Library in other different format:

    #18581

    Bonjour Nicolas,
    Je rajoute cette ligne pour identifier de quelle divergence (bull) on parle mais le retour image n’est pas top ! d’où vient mon erreur STP

     

    #18584

    @Supertiti

    Merci de parler en Anglais dans le forum Anglais.

    Please speak English in English Forums!!

    #18585

    Hello Nicolas,

    I add this line to identify what divergence (bull) we talk about but the image return is not top! Where  my error comes from

    #18596

     

    #18608

    OK

     

    #19060

    Hi Nicholas sorry for not responding, I’ve been away for a while.

    Thanks for the link I will have a go with those!

    #52700

    Hi, I want reduce the false signal on the stochastic divergence by considering true signals only that signals generated when the stochastic remain under the oversold zone or above the overbought zone.

    In the attached picture you can see that the code doesn’t work correctly.. you can see the code too, but I don’t understand why.. Nicolas can you help me?

    Thanks

    Piero

    #52802

    This is already what the code does (if I remember correctly), you have to define yourself the level of the “oversoldzone” and also for “overboughtzone” in the code.

    #52806

    No Nicolas, see the pictures..

    ————————————–

    Another question, from yesterday I have a mistake from the Proscreener web area when I go to write a new post, this is the post:

    Title: Is there a way to do a screening of the only last “x” bars?

    I’m working on a stochastic divergence screening routine, but it give me all the signals that it find in the period that it go to analyze (I don’t know how long is the period), is there a way to retrieve only the signals that it find in the last fixed number of bars?

    Barindex can work in the proscreening?

    Thank’s

    Piero

    #52812

    This is another mistake that the indicator gives:

     

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

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