Formula Language Course · Lesson 8 of 9
Nobody memorises the syntax of 200-plus functions, and MetaStock never expected you to. The Paste Functions dialog drops correct syntax straight into your formula.
As you can imagine, with over 200 pre-programmed functions it would be next to impossible to memorise every parameter and its correct syntax. That is why MetaStock includes a Paste Functions dialog box, which pastes the correct syntax straight into any formula you are working on. Click the Functions button while editing any formula to display it. (Note: your cursor must be inside the formula box for the Functions button to become active.)
The Paste Functions dialog groups all of the functions into 11 categories, listed on the left-hand side, with the function names listed on the right. At the bottom left are two check boxes:
For ease of use, keep both boxes checked.
Once you begin programming you will become quite familiar with this dialog. When you need any formula's syntax, scroll the function list: the syntax of the highlighted function is displayed near the bottom of the dialog, under Format. Click OK (or double-click the function name) and the selected function is pasted into your formula at the cursor location.
And if you still make a mistake and forget a required parameter, don't worry: MetaStock displays a dialog reminding you of the expected parameter.
That completes the toolkit. In Lesson 9 we put it all together with a set of exercises covering everything from price array identifiers to variables and comments.
Everything in these lessons works in the free 30-day MetaStock trial: full software, live data, your own watchlist.
Start Your Free 30-Day Trial →30-DAY TRIAL · FULL VERSION · CANCEL ANYTIME · AFFILIATE LINK, SAME PRICE FOR YOU
The Formula Language Course: Course home · 1. First formulas · 2. Operators · 3. Precedence & periodicity · 4. Built-in functions · 5. Nesting · 6. Variables · 7. Comments · 8. Pasting functions · 9. Exercises