Overview of Fields and Data.

Overview of Fields and Data.

Let's review the public members of the BotTabScreener class.

BotTabScreener - public constructor. Initializes the necessary fields of the class.

StartProgram - public field of type enumeration StartProgram. Indicates the type of program that created the tab. The enumeration has the following values:

1. IsTester - environment for testing robots on historical data.

2. IsOsOptimizer – strategy optimizer.

3. IsOsData – program for downloading historical data.

4. IsOsTrader – program for actual trading.

5. IsOsConverter – tick data to candlestick converter.

6. IsOsMiner – program for searching for price patterns in data series.

Tabs – public field, contains a list of all BotTabSimple class instances belonging to the current screener.

TabName – publicly accessible property of type string, the unique name of the tab.

TabNum – publicly accessible property of type int. The number of the tab in the list of all tabs belonging to the robot.

LastTimeCandleUpdate – public auto-implemented property of type DateTime. Returns the time of the last candle update.

Clear – public method. Clears the data structures stored in the screener.

EventsIsOn – public property. Allows enabling/disabling all event streams.

TryLoadTabs – public method. Loads settings for tabs from a file.

SaveSettings - public method. Saves the screener settings to a file.

LoadSettings - public method. Loads screener settings from a file.

Delete – public method. Prepares the screener for deletion, unsubscribes from all events coming from simple tabs.

DeleteEvent – an event that signals the screener has received a command to delete.

GetJournals – public method. Returns a list of all journals belonging to the simple tabs of the screener.

PortfolioName – the name of the trading account with which the current screener works.

SecuritiesClass – the class of trading assets that are added to the screener tab.

TimeFrame – the interval of the candlestick chart.

ServerType – enumeration. Indicates the type of trading platform with which the screener works.

EmulatorIsOn – flag. Indicates whether the emulation mode is activated.

CandleMarketDataType – method of constructing candles, trades or changes in the order book.

CandleCreateMethodType – type of candles used in the tabs.

SetForeign – a flag indicating whether to display non-trading intervals on the chart.

CountTradeInCandle – the number of trades in candles that are built not over time but over ranges.

VolumeToCloseCandleInVolumeType – the value of the traded volume for candles that are built by volume.

RencoPunktsToCloseCandleInRencoType – the number of points the price must move to form Renco-type candles.

RencoIsBuildShadows – a flag indicating whether to build shadows for Renco-type candles.

DeltaPeriods – a setting parameter for the delta period of a cluster chart.

RangeCandlesPunkts – the number of points in range candles.

ReversCandlesPunktsMinMove – the size of the minimum movement for building Revers-type candles.

ReversCandlesPunktsBackMove – the size of the reverse movement for building Revers-type candles.

ComissionType – the type of commission used in the calculations of trades in the screener.

ComissionValue – the size of the commission used in the calculations of trades in the screener.

SaveTradesInCandles – this flag indicates whether to save anonymized trades in the candles.

PositionsOpenAll – a property that returns a list of all open positions across all securities in the screener.

ShowDialog – public method. Opens the screener's settings window.

ShowChart - public method. Takes the index of a simple tab and opens the chart window for it.

StartPaint - public method. Starts the process of drawing the table with the screener’s instruments.

StopPaint - public method. Stops the process of drawing the table.

SecuritiesDataGrid – a control that displays the table with the screener’s instruments.

CreateCandleIndicator – public method. Creates an indicator for the screener. It accepts the following parameters:

1. num – the sequence number for the indicator;

2. type – the name of the indicator class to be created;

3. param – a list of strings that serve as parameters for the indicator;

4. nameArea – has a default value, the name of the chart area where the indicator should be displayed;

SyncFirstTab – synchronizes indicators between simple tabs.

SendNewLogMessage – public method. Sends a message to the log.

LogMessageEvent – public event. Sends an informational message to the log. The method associated with the event delegate must take two parameters: a string – the message itself and a value of the LogMessageType enumeration.

CloseAllPositionAtMarket – public method. Goes through all simple tabs and closes all positions at the market price.

GetTabWithThisPosition – public method. Takes a position number, finds and returns a simple tab that owns the position with that number. If no such tab exists, null is returned.

If you have any difficulties or questions, please write to the support chat. Link