Can I use a prebuild indicator on an array variables ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #166943 quote
    erikeerike
    Participant
    Junior

    Hi

    I need to calculate a moving average for ROC(1) for last 100 day for each daily close. I also want to calculate STD upon those 100 days.
    Can I use array variables for this?
    I yes how do I usage the indicators Average[100](myArray) and STD[100](myArray) for this?
    After the first 100 days I want to recalculate Average and STD for each new date.

    #166951 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You don’t need arrays, AVERAGE[100] will always be calculated over the last 100 periods despite arrays.

    #167020 quote
    erikeerike
    Participant
    Junior

    Thank you!
    I thought I had tried that but it seems I hadn’t.
    Now I have and it works fine.

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

Can I use a prebuild indicator on an array variables ?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
erike @erike Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by erikeerike
5 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/13/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...