I would like to run scans programatically based on certain watchlist and set range to, say, past 5 days.
From the documentation https://www.amibroker.com/guide/objects.html
it seems I have to use the Analysis object which has properties like;
Properties:
Property Filter(ByVal nType As Integer, ByVal pszCategory As String) As Long [r/w]
Properties:
RangeMode As Long
RangeN As Long
RangeFromDate As Date
RangeToDate As Date
ApplyTo As Long
However, the Analysis object is obsoleted. Is it possible to use the new AnalysisDoc to set watchlist and range? If not, I can still use the Analysis object.