This is the first time that I have tried to use relative performance. I have attached a chart of the Built in Amibroker code BELOW that plots QLD vs QID.
Hopefully, there is some way that I can plot QLD vs QID in a several different CUSTOM windows. Each of these custom indicators would show all 8 lines of a CUSTOM INDICATOR THAT I HAVE DEVELOPED.
I would like to have the ability to have THREE different custom indicator chart panes that will show below my builtin candle chart.
I will always keep an Amibroker builtin candle chart displayed on top of the three desired custom indicator windows.
So, here is what I would like to display.
The top chart would be the builtin candle chart, hopefully showing BOTH, the QLD and
QID candles. The second chart would be the 8 CUSTOM INDICATOR LINES showing BOTH QLD and QID. The third CUSTOM INDICATOR chart window would show the 8 lines for QLD only, and the fourth custom indicator would show the 8 lines for QID only.
I would appreciate hearing comments regarding the feasibility of this? Ron D.
// Built-in relative performance chart
_N( TickerList = ParamStr("Tickers", "QID") );
NumBars = 20;
fvb = Status("firstvisiblebar");
Plot( 100 * ( C - C[ fvb ] ) / C[ fvb ], Name(), colorGreen );
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{
fc = Foreign( symbol, "C" );
if( ! IsNull( fc[ 0 ] ) )
{
Plot( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ],
symbol,
colorBlue + ( (2*i) % 15 ),
styleLine );
}
}
PlotGrid( 0, colorYellow );
_N( Title = "{{NAME}} - Relative Performance [%]: {{VALUES}}" );