Indicator with stochastic smoothed

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #24979 quote
    Henry
    Participant
    Average

    A request that was addressed to ProRealTime:

    Hello,
    I would an indicator that tells me when the %K cross with %D of Stochastic smoothed (17,9,3)

     

    a=Stochastic smoothed (17,9,3)%K
    b=Stochastic smoothed (17,9'3)%D
    
    condizione1=a>b
    condizione2=a<b
    
    if condizione1 then
    c=1
    elsif condizione2 then
    c=-1
    endif
    return c
    
    

     Suggestion for an anwser:

     

    nbperiode=14
    PeriodeK=3
    PeriodeD=5
    
    
    a=SmoothedStochastic[nbperiode,PeriodeK](close)
    b=average[PeriodeD](a)
    
    condizione1=a>b
    condizione2=a<b
    
    if condizione1 then
    c=1
    elsif condizione2 then
    c=-1
    endif
    return c
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Indicator with stochastic smoothed


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Henry @henry Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/13/2017
Status: Active
Attachments: No files
Logo Logo
Loading...