Once x = 0

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56853 quote
    Mansoor
    Participant
    Average

    Merry Christmas everyone.

    I see a lot of codes in this forum start with “Once variable = 0”. This statement seems to be redundant in most cases. In fact I haven’t found any code which this line would make a difference.

    I believe in other languages you have to define variables before using them and most people are using the same method but that’s not necessary in PRT. Can anyone prove otherwise?

    #56855 quote
    Vonasi
    Moderator
    Master

    If you have a variable that you want to start at a certain level and then be adjusted by the strategy then this is the way to ensure that happens surely.

    #56856 quote
    Nicolas
    Keymaster
    Master

    You are right, declaring variables is not necessary in probuilder. X is equal to 0, if you are not defining any other value for it.

    Sometimes, depending of the way the program is coded, it’s necessary to give variables values, but once, that is the purpose of this instruction.

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

Once x = 0


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mansoor @mansoor Participant
Summary

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

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