Restrict inputs for variables?

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

    Hello! Sorry if this has been asked before but i cant find through search and i dont know what to look for in the language documentation really.

     

    Is there a way to “restrict” inputs for variables to a specific interval. I have attached PRT standard moving average nr of Periods for example; it can not go under 1.

     

    I have some inputs in my varables that i wish to restrict from being under and/or over a specific value.

     

    Help is appreciated!

     

    Have a great weekend!

    Skärmavbild-2018-08-24-kl.-13.25.13.png Skärmavbild-2018-08-24-kl.-13.25.13.png
    #78945 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    Periods = max(1,min(999,Periods))  //range 1-999
    margincallcat 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

Restrict inputs for variables?


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/24/2018
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...