Your interactive trading laboratory!
 • 
20 users online

Quantacula Help

How-To
C# API Reference
Extensions
Development Blog
API-Extensions
Indicator Spotlights

QCommunity Extensions
The open-source GitHub repository of source code for the QCommunity Extensions library. Contains indicators and other extensions submitted by the Quantacula Community. Look for QCommunity indicators when you create a Building Block model, mark the "QCommunity" library check box to expose them.

TASC-Extensions
The open-source GitHub repository of source code for the TASCExtensions Quantacula extension. Contains indicators and other extensions adapted from the Traders' Tips articles in Technical Analysis of Stocks & Commodities magazine.
IHost Interface Reference
Published by Q Glitch on 12/3/2018

IHost is a .NET interface that contains properties and methods to obtain information about the host environment (Quantacula Studio or Quantacula.com) and communicate information back to the host. This document is mainly useful for developers building Quantacula Extensions. Extensions are typically passed an instance of IHost in their Initialize method, and this instance is also available via their Host property.

Environment-Related Properties

AppFolder

string AppFolder

Returns the folder where Quantacula Studio was installed.

DataFolder

string DataFolder

Returns the folder where Quantacula Studio application data is stored. Extensions can create sub-folders under DataFolder for their local storage needs.

LocalUserName

string LocalUserName

Returns the name that the Quantacula Studio user entered when first running the software.

IsWebSite

bool IsWebSite

Returns true if the host environment is Quantacula.com and not Quantacula Studio.

QNumber

int QNumber

Returns the Quantacula Studio "Q-Number" (version number), or 0 if the environment is Quantacula.com.

Properties and Methods for Extensions

DataUpdateCompleted

void DataUpdateCompleted(bool completedOK)

Historical Data Sources should call this method when a bulk data update operation is completed. If the update was canceled or experienced an error, pass false in the completedOK parameter.

DataUpdateMessage

void DataUpdateMessage(string msg)

Historical Data Sources should call this method during a bulk data update to communicate the state of the update operation to Quantacula Studio. The message is displayed in the bulk update log output.

DisplayErrorMessage

public void DisplayErrorMessage(string msg)

In Quantacula Studio, surfaces the message in the msg parameter as a message box presented to the user.

UpdateStreamingStatus

void UpdateStreamingStatus(string msg, Color color)

Streaming Data Sources should call this method to indicate a change in the status of the streaming data service.