CustomRatesDelete

Deletes all bars from the price history of the custom symbol in the specified time interval.

int  CustomRatesDelete(
   const string     symbol,       // symbol name
   datetime         from,         // start date
   datetime         to            // end date
   );

Parameters

symbol

[in]  Custom symbol name.

from

[in]  Time of the first bar in the price history within the specified range to be removed.

to

[in]  Time of the last bar in the price history within the specified range to be removed.

Return Value

Number of deleted bars or -1 in case of an error.

 

See also

CustomRatesReplace, CustomRatesUpdate, CopyRates