Hi MC support
I have the same problem with ADE as Damageboy reports
The below compiles OK and loads OK,but with the message "Unspecified error".
I have changed the function UseFile(ADE.UseFile); to True,but it still gives the same error
[LegacyColorValue = TRUE];
UseFile(ADE.UseFile); // default UseFile is returned by ADE.UseFile function
// If UseFile is true, load any previously stored data from the file on the first bar.
if CurrentBar = 1 and UseFile then
Value1 = ADE.OpenMap(Class, GetSymbolName, ADE.BarInterval);
// Calculate correct total volume regardless of bar type
Vol = IFF(BarType < 2, UpTicks + DownTicks, Volume);
// Store the data for this symbol and bar interval
Value1 = ADE.PutOHLCV(GetSymbolName, ADE.BarInterval, ADE.BarID, Open, High, Low, Close, Vol);
// If UseFile is true, save the data to the file on the last bar.
if LastBarOnChart and BarStatus(1) = 2 and UseFile and WriteOk then begin
Value1 = ADE.SaveMap(Class, GetSymbolName, ADE.BarInterval);
WriteOk = false; // prevent repeated writes on new bars
Plot1(0); // include a Plot statement so we can use this indicator in RadarScreen