5. Compilation. Modules and assembly handling: Difference between revisions
From MultiCharts
5. Compilation. Modules and assembly handling (view source)
Revision as of 09:56, 6 May 2013
, 6 May 2013no edit summary
(Created page with "PL.NET supports studies written on 2 programming languages, C# and VB.NET. It is well known that the .NET Framework contains the compilers for both of these languages. But it ...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
## Fill this function with any info that can be necessary common classes including basic classes of indicators, signals, methods, etc. | ## 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 | ## 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. | 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. | <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. | ||
</div> | </div> | ||
[[Category:. | [[Category:5. Compilation. Modules and assembly handling]] |