PowerLanguage.NET Flashcards

(16 cards)

1
Q

Text in PowerLanguage Editor Output Window ausgeben

A

IOutput.WriteLine Method
A method that outputs to Output Window the resulting string of the ‘_args’ arguments application to the ‘_format’ formatting string and then positions the cursor on a new line.

void WriteLine(
string format,
params object[] args
);

Output.WriteLine(“Debugausgabe”, “”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Text in PowerLanguage Editor Output Window ausgeben

A

IOutput.Write Method
A method that outputs to Output Window the resulting string of ‘_args’ arguments application to ‘_format’ formatting string.

void Write(
string format,
params object[] args
);

Output.Write(“Debugausgabe”, “”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Text in Powerlanguage Editor Output Window löschen

A

IOutput.Clear Method
A method for cleaning the Output Window.

void Clear();

Output.Clear();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Aktueller Close-Wert des Handelsinstruments

A

IInstrument.CloseValue Property
Read-only property.Returns series current bar’s Close value.

public double CloseValue { public get; }

double wert = Bars.CloseValue;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Aktuelle Bar-Nummer des Handelsinstruments

A

IInstrument.CurrentBar Property
Read-only property. Returns current bar’s number.

public int CurrentBar { public get; }

double nummer = Bars.CurrentBar; //ältester Bar: nummer = 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Aktueller High-Wert des Handelsinstruments

A

IInstrument.HighValue Property
Read-only property. Returns series current bar’s High value.

public double HighValue { public get; }

double wert = Bars.HighValue;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Infos zu aktuellem Handelsinstrument ausgeben

A

IInstrument.Info Property
Read-only property. Provides an interface for accessing symbol information.

public IInstrumentSettings Info { public get; }

string feed = Bars.Info.DataFeed;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name des Datenfeed ausgeben

A

IInstrumentSettings.DataFeed Property
Read-only property. Returns datafeed name of the symbol.

public string DataFeed { public get; }

string feed = Bars.Info.DataFeed;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Komprimierung des Datenfeed angeben

A

Resolution Members

Size Read-write property. Resolution size.
Type Read-write property. Resolution type.

string komp = Bars.Info.Resolution.Type; //Minute
uint zeit = Bars.Info.Resolution.Size; //10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Flag für letzten Bar im Chart

A

IInstrument.LastBarOnChart Property
Read-only property. Indicates whether current bar is the last bar on the chart.

public bool LastBarOnChart { public get; }

if (Bars.LastBarOnChart == true)
{ }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Kategorie des Handelsinstruments anzeigen

A

IInstrumentSettings.Category Property
Read-only property. Returns category of the symbol.

public ESymbolCategory Category { public get; }

Enumwerte:
None “None” symbol category.
Future “Futures” symbol category.
FutureOption “Futures Option” symbol category.
Stock “Stock” symbol category.
StockOption “Stock Option” symbol category.
Index “Index” symbol category.
CurrOption “Currency Option” symbol category.
IndexOption “Index Option” symbol category.
Cash “Cash Option” symbol category.
Bond “Bond” symbol category.
Spread “Spread” symbol category.
Forex “Forex” symbol category.
FutureRolover “Futures Rollover” symbol category.
Commodity “Commodity” symbol category.

ESymbolCategory kat = Bars.Info.Category;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Beschreibung des aktuellen Handelsinstruments

A

IInstrumentSettings.Description Property
Read-only property. Returns description for the symbol.

public string Description { public get; }

Output.Write(Bars.Info.Description,””); //EUR/USD Forex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name des aktuellen Handelsinstruments

A

IInstrumentSettings.Name Property
Read-only property. Returns name of the symbol.

public string Name { public get; }

Output.WriteLine(Bars.Info.Name,””); //EURUSD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Zeitpunkt des letzten Bars im Chart

A

IInstrument.LastBarTime Property
Read-only property. Returns the last bar’s time.

public DateTime LastBarTime { public get; }

Output.WriteLine(Bars.LastBarTime.ToString(),””); //30.03.12 17:59:00

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Zeitpunkt des aktuellen Bar ausgeben

A

IInstrument.TimeValue Property
Read-only property. Returns current bar’s time.

public DateTime TimeValue { public get; }

DateTime zeit = Bars.TimeValue;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Werte des aktuellen Bar abrufen

A

Close Read-write property. Bar “Close” price value.
DownVolume Read-write property. Bar “DownVolume” value.
High Read-write property. Bar “High” price value.
Low Read-write property. Bar “Low” price value.
Open Read-write property. Bar “Open” price value.
OpenInterest Read-write property. Bar “OpenInterest” value.
State Read-write property. Bar “State” value.
Time Read-write property. Bar time.
TotalVolume Read-write property. Bar “TotalVolume” value.
UnchangedVolume Read-write property. Bar “UnchangedVolume” value.
UpVolume Read-write property. Bar “UpVolume” value.

//Aktueller Close-Wert:
double wert = Bars.Close[0];