Problems with Standard Deviation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #182299 quote
    marie123marie123
    Participant
    Junior

    Hello guys,

    I want to count how many times the price closed above the SMA(20) + 3*STD (=Bollinger Bands with deviation 3 instead 2). The screener-results are completely wrong. I think the syntax isn’t correct. Can someone help me please?

    count=0
    for i=0 to 30 do
    upperBand=average[20](close)[i]+STD[3][i]
    if close[i]>upperBand then
    count=count+1
    endif
    next
    
    SCREENER [count>0](count)
    #182300 quote
    marie123marie123
    Participant
    Junior

    Problem solved! I wanted to delete this posting but it’s not possible.

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

Problems with Standard Deviation


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marie123 @marie123 Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by marie123marie123
4 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/26/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...