C# 클래스 NinjaTrader.Indicator.EncogFrameworkIndicator

상속: Indicator
파일 보기 프로젝트 열기: filgood/encog-financial 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ParseArraySize void

공개 메소드들

메소드 설명
DrawError ( ) : void
WaitForPacket ( ) : void

Wait for a packet. Timeout if necessary.

보호된 메소드들

메소드 설명
Eval ( string str ) : IDataSeries

Evaluate a custom indicator. These indicators must be in the form: INDICATOR.VALUE[BARS_NEEDED] For example, MACD(12,26,9).Avg[1] This would request the current BAR of the Avg value of the MACD indicator. If the indicator has only one value, then the following format is used. EMA(14)[1] This would request the current bar of EMA, with a period of 14.

FillParams ( MethodInfo targetMethod, IList paramList ) : object[]

Fill the parameters of a 3rd party indicator.

GotPacket ( String line ) : void

Process a packet.

Initialize ( ) : void

This method is used to configure the indicator and is called once before any bar data is loaded.

OnBarUpdate ( ) : void

Called on each bar update event (incoming tick)

OnTermination ( ) : void

Called when indicator terminates.

OpenConnection ( ) : void

Open a connection to Encog. Also send the HELLO packet.

ParseCSV ( string line ) : IList

Parse a line of CSV. Lines can have quote escaped text. A quote inside a string should be HTML escaped (i.e. ") Only " is supported, and it must be lower case. Ideally, I would like to use HttpUtility, however, in .Net 3.5, used by NT, this requires an additonal reference, which is an extra step in the setup process.

PerformError ( string whatError ) : void

Handle an error. Display the error to the user, log it, and set the state to error. No further processing on this indicator will occur.

PerformGoodBye ( ) : void

Tell the remote that we are about to disconnect.

Send ( String str ) : void

Send data to the remote socket, if we are connected. If we are not connected, ignore. Data is sent in ASCII.

비공개 메소드들

메소드 설명
ParseArraySize ( string str, int &index, string &name ) : void

Parse an array size, for example "avg[5]". Return both the number, and the name before the brakets.

메소드 상세

DrawError() 공개 메소드

public DrawError ( ) : void
리턴 void

Eval() 보호된 메소드

Evaluate a custom indicator. These indicators must be in the form: INDICATOR.VALUE[BARS_NEEDED] For example, MACD(12,26,9).Avg[1] This would request the current BAR of the Avg value of the MACD indicator. If the indicator has only one value, then the following format is used. EMA(14)[1] This would request the current bar of EMA, with a period of 14.
protected Eval ( string str ) : IDataSeries
str string The indicator string.
리턴 IDataSeries

FillParams() 보호된 메소드

Fill the parameters of a 3rd party indicator.
protected FillParams ( MethodInfo targetMethod, IList paramList ) : object[]
targetMethod System.Reflection.MethodInfo The name of the indicator( i.e. "MACD(12,26,9)")
paramList IList The parameter list.
리턴 object[]

GotPacket() 보호된 메소드

Process a packet.
protected GotPacket ( String line ) : void
line String The packet line.
리턴 void

Initialize() 보호된 메소드

This method is used to configure the indicator and is called once before any bar data is loaded.
protected Initialize ( ) : void
리턴 void

OnBarUpdate() 보호된 메소드

Called on each bar update event (incoming tick)
protected OnBarUpdate ( ) : void
리턴 void

OnTermination() 보호된 메소드

Called when indicator terminates.
protected OnTermination ( ) : void
리턴 void

OpenConnection() 보호된 메소드

Open a connection to Encog. Also send the HELLO packet.
protected OpenConnection ( ) : void
리턴 void

ParseCSV() 보호된 메소드

Parse a line of CSV. Lines can have quote escaped text. A quote inside a string should be HTML escaped (i.e. ") Only " is supported, and it must be lower case. Ideally, I would like to use HttpUtility, however, in .Net 3.5, used by NT, this requires an additonal reference, which is an extra step in the setup process.
protected ParseCSV ( string line ) : IList
line string The line to parse.
리턴 IList

PerformError() 보호된 메소드

Handle an error. Display the error to the user, log it, and set the state to error. No further processing on this indicator will occur.
protected PerformError ( string whatError ) : void
whatError string The error text.
리턴 void

PerformGoodBye() 보호된 메소드

Tell the remote that we are about to disconnect.
protected PerformGoodBye ( ) : void
리턴 void

Send() 보호된 메소드

Send data to the remote socket, if we are connected. If we are not connected, ignore. Data is sent in ASCII.
protected Send ( String str ) : void
str String The data to send to the remote.
리턴 void

WaitForPacket() 공개 메소드

Wait for a packet. Timeout if necessary.
public WaitForPacket ( ) : void
리턴 void