PowerLanguage.NET Flashcards
(16 cards)
Text in PowerLanguage Editor Output Window ausgeben
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”, “”);
Text in PowerLanguage Editor Output Window ausgeben
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”, “”);
Text in Powerlanguage Editor Output Window löschen
IOutput.Clear Method
A method for cleaning the Output Window.
void Clear();
Output.Clear();
Aktueller Close-Wert des Handelsinstruments
IInstrument.CloseValue Property
Read-only property.Returns series current bar’s Close value.
public double CloseValue { public get; }
double wert = Bars.CloseValue;
Aktuelle Bar-Nummer des Handelsinstruments
IInstrument.CurrentBar Property
Read-only property. Returns current bar’s number.
public int CurrentBar { public get; }
double nummer = Bars.CurrentBar; //ältester Bar: nummer = 1
Aktueller High-Wert des Handelsinstruments
IInstrument.HighValue Property
Read-only property. Returns series current bar’s High value.
public double HighValue { public get; }
double wert = Bars.HighValue;
Infos zu aktuellem Handelsinstrument ausgeben
IInstrument.Info Property
Read-only property. Provides an interface for accessing symbol information.
public IInstrumentSettings Info { public get; }
string feed = Bars.Info.DataFeed;
Name des Datenfeed ausgeben
IInstrumentSettings.DataFeed Property
Read-only property. Returns datafeed name of the symbol.
public string DataFeed { public get; }
string feed = Bars.Info.DataFeed;
Komprimierung des Datenfeed angeben
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
Flag für letzten Bar im Chart
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)
{ }
Kategorie des Handelsinstruments anzeigen
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;
Beschreibung des aktuellen Handelsinstruments
IInstrumentSettings.Description Property
Read-only property. Returns description for the symbol.
public string Description { public get; }
Output.Write(Bars.Info.Description,””); //EUR/USD Forex
Name des aktuellen Handelsinstruments
IInstrumentSettings.Name Property
Read-only property. Returns name of the symbol.
public string Name { public get; }
Output.WriteLine(Bars.Info.Name,””); //EURUSD
Zeitpunkt des letzten Bars im Chart
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
Zeitpunkt des aktuellen Bar ausgeben
IInstrument.TimeValue Property
Read-only property. Returns current bar’s time.
public DateTime TimeValue { public get; }
DateTime zeit = Bars.TimeValue;
Werte des aktuellen Bar abrufen
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];