You need to enable JavaScript in order to visit our site!
 
Logo PTMC
NAVIGATION
CANCEL
 
or via PTMC account
Restore password
or via PTMC account
Logo PTMC
NAVIGATION
or via PTMC account
Restore password
or via PTMC account
or via PTMC account
Restore password
or via PTMC account

NETMacros

class
The base class for the .NET scripts.

Fields

NetScriptCache NetScriptCache Кеш основных данных, для производительности Используется Platform

Properties

Accounts IAccountsCollection Represents access to collection of all available accounts.
Ask double Last Ask for the current instrument
Author string The author of the script
Bid double Last bid for the current instrument
Comments string The full name of the script
Company string The autor's company
Copyrights string The copyrights string
CurrentChart Chart Represents access to the current Chart.
CurrentData HistoricalData Represent access to currently download historical data.
DateOfCreation string The date when the script was created
ExpirationDate long The expiration date for trial version. 0 when expiration not specified
Fills FillsCollection Represents access to collection of all today fills.
Id Guid ID индикатора
Indicators IndicatorsCollection Represents access to collection of all indicators.
Instruments InstrumentsCollection Represents access to collection of all available instruments.
Orders OrdersCollection Represents access to collection of all available orders.
Password string The password for the script. Must be encrypted by the GetHashedPassword function
Performance Performance Represents access to statistical parameters of strategy.
Point double The current symbol point value in the quote currency;
Positions PositionsCollection Represents access to collection of all available positions.
ProjectName string The name of the script
SingleThreadEvents bool Returns true when events should be called in the main processing thread, otherwise returns false (default). Directly event processing is faster, but may affect application performance, use it on your own risk Always returns true in backtesting.
Version string The version of the script

Methods

Alert (object[] args) Return: void Shows all given params in message screen;
Comment (object[] args) Return: void Shows data in the chart window;
ConvertUTCTimeToSelectedTimeZone (DateTime timeUTC) Return: DateTime Convert UTC time to selected time zone;
CreateTimer (TimerCallback callback) Return: Timer Timer that will be stopped at the end of the script
CreateTimer (TimerCallback callback, object state, int dueTime, int period) Return: Timer Timer that will be stopped at the end of the script
CreateTimer (TimerCallback callback, object state, long dueTime, long period) Return: Timer Timer that will be stopped at the end of the script
CreateTimer (TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period) Return: Timer Timer that will be stopped at the end of the script
CreateTimer (TimerCallback callback, object state, uint dueTime, uint period) Return: Timer Timer that will be stopped at the end of the script
Execute () Return: void This function will be called for macros activation
GetHistoricalData (HistoricalDataRequest request) Return: HistoricalData Represent access to created historical data request.
GetLastError () Return: int Returns the last error code; then this value will be zeroized;
GetLastErrorDescription () Return: string Returns the last error code; then this value will be zeroized;
IsTesting () Return: bool Gets true if script was runned by tester;
OnPaintChart (object sender, PaintChartEventArgs args) Return: void Drawing char
PlaySound (string fileName) Return: void Plays one of the standard sounds;
Print (object[] args) Return: void Stores the string in logs;
QueueUserWorkItem (WaitCallback callBack) Return: Thread Сontrolled flow will be interrupted when the script
QueueUserWorkItem (WaitCallback callBack, object state) Return: Thread Сontrolled flow will be interrupted when the script
QueueUserWorkItem (WaitCallback callBack, object state, ApartmentState apartmentState) Return: Thread Сontrolled flow will be interrupted when the script
SendEmail (string address, string subject, string body, string filename) Return: void Sends a message via e-mail;
SendEmail (string address, string subject, string body) Return: void Sends a message via e-mail;
SendEmail (string subject, string body) Return: void Sends a message via e-mail;
PTMC is a professional trading platform that combines all the best charting and analytical tools to trade on different financial markets. It is developed by PFSOFT UK LTD, a global provider of trading technology for banks & brokers
© 2017. PTMC is based on Protrader technology
PFSOFT UK LTD
71-75, Shelton Street,
Covent Garden,
London, WC2H9SQ,
United Kingdom
Support & Development
PFSOFT Ukraine
Office #701
Mechnikova Street, 10B
49000, Dnipro, Ukraine
Contact us
Phone: +380 56 740 30 01
E-mail: info@protrader.org
Skype: PTMC_support
Find more ways to contact
Join us in social networks