Indicator calculated on specific time window daily

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #225830 quote
    _angkor_
    Participant
    New

    Hello

    I’d like to build an indicator that is calculated only on close values of a fixed spcific daily time window. For example RSI of the last 100 hourly bars at close, but the 100 hourly bars that must be taken into account are those inside the time window 9:00-22:00 of each day despite the market is open from 00:00-23:00. I mean that i need to filter out from the computation all the bars that are outside my desired time window

    I tried to customize the graph intrady times displayed but it affects only the graph.

    The only way I thought to achieve this is to register each close on a custom array and then calculate my indicator, but it would be very complicate.Does anybody know an easy way to achieve this?

    Thanks a lot

    #225856 quote
    robertogozzi
    Moderator
    Master

    You can find some examples I coded  about 3 kind of MAs, but it can work with most indicators, if you have some knowledge of programming with the PRT language https://www.prorealcode.com/prorealtime-indicators/time-range-moving-averages-simple-exponential-weighted-trsma-trema-trwma/.

    If you can’t write, let me know.

    #225857 quote
    robertogozzi
    Moderator
    Master

    Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.

    Thank you 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Indicator calculated on specific time window daily


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
_angkor_ @popol_vuh Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzi
2 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/30/2023
Status: Active
Attachments: No files
Logo Logo
Loading...