Code to find When PRT BANDS short Term Line changes colour

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

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

    #234164 quote
    Iván González
    Moderator
    Master

    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.

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ález
1 year, 7 months ago.

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