Can I use a prebuild indicator on an array variables ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #166943 quote
    erike
    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
    robertogozzi
    Moderator
    Master

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

    #167020 quote
    erike
    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.

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 erike
4 years, 10 months ago.

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