Instrument Context is a process that provides automatic direct access to instrument information.  Script sections where instrument context in automatic by default is shown in the Blox Script Timing table, and in the table here.  During the initialization of test, each instrument's data is automatically loaded into an instrument object.  Instrument context makes access to the instrument data easy.

 

In script sections where instrument context information is not automatically provided, instrument data can still be accessed using the Instrument Object's LoadSymbol function.  The LoadSymbol function uses the BPV Instrument Type as a container to access an instrument in a script section where instrument context is not automatically provided.  Examples showing how to create the scripts statements is available in the LoadSymbol topic.

 

The LoadSymbol function can also be used to bring additional instruments into a script location where instrument context is automatic.  This means the active instrument Trading Blox Builder made available can have a companion instrument brought into the script section at the same time.  This ability to access more than one instrument provides information that might influence how the script logic considers.  An example of how this can  be used is with a spread value difference between two instruments, or a ranking comparison of group of instruments.

 


Edit Time: 9/12/2020 10:28:44 AM


Topic ID#: 57

 

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software