Hi all,
What I would like to achieve, if at all possible, is to create a
multi-pane chart (or perhaps a multi-chart layout) from within an .afl used in
the Automatic Analysis Backtest process.
With “Automatic Analysis” Back-testing I have
developed code that back-tests effectively and I use the AA Editor/”Apply
Indicator” buttons to display a single chart with indicators and buy/sell
arrows. I have also used Layouts to display a composite indicator of
system results created from within the .afl using the “AddToComposite”
function.
But as yet, I have found no way to either create a multi-pane
presentation or to populate a pre-existing layout with “live” data
from an .afl being used in the AA back-test process. I want to be able to
show details of a “Foreign” symbol in a separate pane and several
other .afl components, such as liquidity, also in separate panes. All of
this can be easily done in saved Layouts (.aly or .chart) using “drag-and-drop”
type code but this is quite separate to the code used in the AA window.
(I am trying to avoid having similar code in two places and so avoid potential
update errors in future).
·
Is it possible for AA .afl Plot statements (or similar) to create separate,
and sized, Panes within a blank chart?
·
Is it possible to direct AA .afl Plot statements to separate Panes
within a pre-written and/or pre-loaded layout window?
·
Is it possible to pass variable values from an AA .afl to a layout
(either already open or to be called)?
·
Is a COM object approach possible? (Joe Landry, 22 Jan 08, gave me
some script tips but I have not been able to get anything working – and the
Manual is very “brief” on this subject).
All help would be greatly appreciated, even if it is to confirm
that it is not currently possible in AmiBroker.
Regards,
Robert