Sum, select range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14140 quote
    Spekulanten
    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
    Nicolas
    Keymaster
    Master

    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.

Sum, select range


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

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