C# Class Forex_Strategy_Builder.Indicator_Compilation_Manager

Manages the operation of indicators.
显示文件 Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Public Methods

Method Description
GetReferencedAndInitialAssembly ( Assembly initialAssembly ) : System.Reflection.Assembly[]

Gather all assemblies referenced from current assembly.

Indicator_Compilation_Manager ( ) : System

Constructor.

LoadCompileSourceFile ( string filePath, string &errorMessages ) : void

Load file, compile it and create/load the indicators into the CustomIndicatorsList.

LoadSourceFile ( string pathToIndicator, string &errorLoadSourceFile ) : string

Reads the source code from file contents.

Private Methods

Method Description
GetIndicatorInstanceFromAssembly ( Assembly assembly, string indicatorFileName, string &errorMessage ) : Indicator

Creates an indicator instance from the assembly given.

Method Details

GetReferencedAndInitialAssembly() public static method

Gather all assemblies referenced from current assembly.
public static GetReferencedAndInitialAssembly ( Assembly initialAssembly ) : System.Reflection.Assembly[]
initialAssembly System.Reflection.Assembly
return System.Reflection.Assembly[]

Indicator_Compilation_Manager() public method

Constructor.
public Indicator_Compilation_Manager ( ) : System
return System

LoadCompileSourceFile() public method

Load file, compile it and create/load the indicators into the CustomIndicatorsList.
public LoadCompileSourceFile ( string filePath, string &errorMessages ) : void
filePath string
errorMessages string
return void

LoadSourceFile() public method

Reads the source code from file contents.
public LoadSourceFile ( string pathToIndicator, string &errorLoadSourceFile ) : string
pathToIndicator string
errorLoadSourceFile string
return string