Changes

Jump to navigation Jump to search

5. Compilation. Modules and assembly handling

2 bytes removed, 09:56, 6 May 2013
no edit summary
## Fill this function with any info that can be necessary common classes including basic classes of indicators, signals, methods, etc.
## This common code can be used further in any other signals and indicators
 
When the compilation of a study is initialized, either after pressing the “Compile” button or because of changes to a study, it will check to see if this study is already applied to a chart or a scanner window. If it is already being used, after compilation has been completed successfully, MultiCharts .NET will be informed that these exemplars should be re-created from a new assembly, re-initialize their inputs with the values set by user, and recalculate.
 
<div style="background-color: #E3FBE5;">'''IMPORTANT NOTE:''' After such a partial re-compilation (Compile->Compile (F7)), the studies with modified code will be already from another assembly (with a different name), and unmodified studies will be still from the previous assembly. It should be noted if the same static variables with several classes are used (for example for data transfer). The workaround for this is to re-compile the studies completely (Compile->Recompile All (Ctrl+F7)). In this case, ALL the studies will be re-compiled and re-created. This compilation mode is useful for '''development''' but can lead to '''undesirable results''', such as '''disabling of automated trading''' performed by an unmodified signal.

Navigation menu