Restrict inputs for variables?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #78935 quote
    margincallcat
    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!

    #78945 quote
    robertogozzi
    Moderator
    Master
    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.

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 robertogozzi
7 years, 5 months ago.

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