?> QuantXpress – Deliver high performance automated trading and connectivity solutions



General Strategy Indication


It is evident that most of the strategy order initiating decision is triggered from the market data event. Sometime it is required that strategy need to receive the real-time market data even if it is in stopped mode. This may be to cache and calculate some technical indicator value.
In order to receive the market data event during the strategy stop mode, override a method RequiredToSendMarketDataInStrategyStopMode and return true.
 
public virtual bool RequiredToSendMarketDataInStrategyStopMode
{
        get { return true; }
}

In order to publish output parameter during the strategy stop mode, override a method RequiredToSendMarketDataInStrategyStopMode and return true.

 
public virtual bool RequiredToPublishParameterInStrategyStopMode
{
    get { return true; }
}

The trading terminal has a default access of server based command called Refresh. Here the strategy has an opportunity to send some important state message to trading terminal based on user expliciut refresh command invocation. Strategy will receive following callback method

 
protected override void OnStrategyRefresh()
{
    string infoText = GetStrategyCurrentStateText();
    TraceLogInfo(infoText);
}