public method IPriceHistoryManager.getPrices

Overview

Gets history prices

Declaration

function getPrices(instrument, timeframe, from, to, quotesCount, callback)
public String getPrices(String instrument, Timeframe timeframe, Date from, Date to, int quotesCount, IPriceHistoryManagerCallback callback);
public string getPrices(string instrument, Timeframe timeframe, DateTime from, DateTime to, int quotesCount, IPriceHistoryManagerCallback callback);

Parameters

Name Description
instrument The instrument required
timeframe The time frame required
from The from datetime
to The to datetime
quotesCount The maximum number of bars in history
callback The callback class instance

Returns

The method returns identity of the 'get prices' command or NIL in case of error

Details

Declared in IPriceHistoryManager