Sum, select range

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

    Hi,

    For an example, if i want to add the last 20 closes i type; close + close[1] + close[2] + close [3] + [4]……….. How do i do this smart? There must be a better way… So how do i “sum” or select a range in code?

    Same with if i want the last 20 closes to be below current close, how do i type that?

    Thanks alot

    #14148 quote
    NicolasNicolas
    Keymaster
    Legend

    You can use the SUMMATION function to make a sum of the last x periods.

    Spekulanten 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

Sum, select range


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 12 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/03/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...