Category

General-Purpose Functions

Description

Reference a Data or Library item by name

Syntax

Item(name, ...)

Parameters

name - string specifying an item name

Notes

This function works the same way Format does in terms of its parameters. The output is then treated as an item name.

For example, Item("entry_rule_{#}", rule_num) would look for an item called "entry_rule_1" if rule_num had a value of 1.

The referenced item must be the name of in item in either the Data or Library section of the current script (or an included script).

One use of this feature is to have a set of different factors that could be parts of an EntrySetup or ExitRule, for which you can run a kind of optimization that tests each factor separately.

Here is a template for how this might work:

(The "(formula)" items are just placeholders for meaningful trading conditions.)

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC