STDEV of a specified Range

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175798 quote
    deletedaccount051022deletedaccount051022
    Participant
    New

    Hello,

    I am hoping someone can kindly help.  I am trying to calculate 2 x the standard deviation of a range over a specified number of bars.  However, I am failing to got the correct formula.

    Thank you very much

     

     

     

    rrange=high-low
    stdrange=2*stdev(rrange,[10])
    @AlgoHunter1 thanked this post
    #175800 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Hi, keyword “range” is already high-low in probuilder language, and “std” is the right syntax, not stdev: https://www.prorealcode.com/documentation/std/

    So if  understand your request, that would be:

    Nbars=10
    
    stdrange=2*std[Nbars](range)
    
    return stdrange
    #175804 quote
    deletedaccount051022deletedaccount051022
    Participant
    New

    Superb, merci!  That has worked a treat.  Thank you for the link too, added to boomarks.

Viewing 3 posts - 1 through 3 (of 3 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

STDEV of a specified Range


ProOrder: Automated Strategies & Backtesting

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by deletedaccount051022deletedaccount051022
5 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/20/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...