Valid date for indicator

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

    If I want my indicator to only be valid to a specific date, how do I program that?

    #220752 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    This will expire after Sept. 13th:

    Myindicator = range > (average[100,0](range) * 1.5)
    IF OpenDate > 20230913 THEN
       Myindicator = 0
    ENDIF
    RETURN Myindicator
    umebon 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

Valid date for indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
umebon @umebon Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
3 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/11/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...