Postby miltonc4 » 11 Aug 2007
Hi MC support
I have the same problem with ADE as Damageboy reports
Version 2.1.928.1050
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
Milton
[LegacyColorValue = TRUE];
Inputs:
UseFile(ADE.UseFile); // default UseFile is returned by ADE.UseFile function
Vars:
Class("OHLCV"),
Vol(0),
WriteOk(true);
// 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
end;
Plot1(0); // include a Plot statement so we can use this indicator in RadarScreen