Why does traders look for GlobalVariable Set anf GlobalVariable Get?

2 Views
Vernon Petty
Answered 2 years, 4 months ago
<p id="isPasted">Traders often use GlobalVariable Set and GlobalVariable Get functions in trading software to store and retrieve persistent variable data across multiple executions of their trading program.</p><p>Global variables are variables that retain their values between program runs and can be accessed from any function or script within the program. By using the GlobalVariable Set function, traders can store important data, such as trading parameters, strategy settings, or trade management rules, in global variables that persist across different program executions. This data can then be accessed by using the GlobalVariable Get function.</p><p>The benefit of using global variables is that it …</p>
1 View
David Hunter
Answered 2 years, 3 months ago
<p>Traders may use GlobalVariable Set and GlobalVariable Get functions to share data between different parts of their trading strategy or between other instances of an expert advisor or script running on the same terminal. For example, a trader may use GlobalVariable Set to save the results of a calculation and then use GlobalVariable Get in a different part of their strategy to retrieve that data and use it in another calculation. This can help streamline the trading process and make managing and modifying trading strategies easier over time. Additionally, GlobalVariable Set and GlobalVariable Get can be used to store and …</p>