Code to find When PRT BANDS short Term Line changes colour

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #234161 quote
    pdrhpdrh
    Participant
    Average

    Does anyone have coding to find when the PRT Bands Short Term line changes colour

    #234164 quote
    Iván GonzálezIván González
    Moderator
    Legend

    The PRT Bands code is ProrealTime's own, so it is not published. Anyway you just have to do a few tests to see what type of moving average it is. I've been testing and I see that it is a 4-period weighted moving average.

    wma=weightedaverage[4](close)
    
    green=roc[1](wma)>0
    red=roc[1](wma)<0
    
    if green and red[1] then
    drawarrowup(barindex,low)
    elsif red and green[1] then
    drawarrowdown(barindex,high)
    endif
    
    return wma
    pdrh and druby thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Code to find When PRT BANDS short Term Line changes colour


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
pdrh @pdrh Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
2 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/21/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...